- Timestamp:
- 08/22/08 19:27:36 (5 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/geowebcache/src/main/java/org/geowebcache/layer/wms/WMSLayer.java
r338 r346 56 56 public class WMSLayer extends TileLayer { 57 57 // needed in configuration object written to xml 58 private String WMSurl = null; 59 58 59 private String[] wmsUrl = null; 60 61 private String wmsLayers = null; 62 63 private String wmsStyles = null; 64 60 65 private int[] metaWidthHeight = null; 61 66 … … 88 93 private transient String vendorParameters; 89 94 90 protected transient String[] wmsURL;95 //protected transient String[] wmsURL; 91 96 92 97 private transient int curWmsURL; … … 94 99 //private transient String wmsLayers; 95 100 96 private transient String wmsStyles;101 //private transient String wmsStyles; 97 102 98 103 //private transient WMSParameters wmsparams; … … 138 143 139 144 public WMSLayer(String layerName, CacheFactory cacheFactory, 140 String wmsURL, List<String> mimeFormats,141 Hashtable<SRS,Grid> grids, int[] metaWidthHeight,142 String vendorParams) {145 String[] wmsURL, String wmsLayers, String wmsStyles, 146 List<String> mimeFormats, Hashtable<SRS,Grid> grids, 147 int[] metaWidthHeight, String vendorParams) { 143 148 144 149 name = layerName; 145 150 initCacheFactory = cacheFactory; 146 this.WMSurl = wmsURL; 151 this.wmsUrl = wmsURL; 152 this.wmsLayers = wmsLayers; 153 this.wmsStyles = wmsStyles; 147 154 this.mimeFormats = mimeFormats; 148 155 this.grids = grids; … … 578 585 } 579 586 // wms urls 580 wmsURL = WMSurl.split(",");587 //wmsUrl = wmsUrl.split(","); 581 588 582 589 // mimetypes … … 668 675 wmsparams.setRequest(request); 669 676 wmsparams.setVersion(version); 670 wmsparams.setLayer(this.name); 677 if(this.wmsLayers != null && this.wmsLayers.length() > 0) { 678 wmsparams.setLayer(this.wmsLayers); 679 } else { 680 wmsparams.setLayer(this.name); 681 } 682 671 683 wmsparams.setErrorMime(errormime); 672 684 … … 697 709 */ 698 710 protected String nextWmsURL() { 699 curWmsURL = (curWmsURL + 1) % wmsU RL.length;700 return wmsU RL[curWmsURL];711 curWmsURL = (curWmsURL + 1) % wmsUrl.length; 712 return wmsUrl[curWmsURL]; 701 713 } 702 714 … … 919 931 } 920 932 921 public void setWMSurl(String wmsurl) {922 this. WMSurl = wmsurl;923 } 924 925 public String getWMSurl() {926 return this. WMSurl;933 public void setWMSurl(String[] wmsurl) { 934 this.wmsUrl = wmsurl; 935 } 936 937 public String[] getWMSurl() { 938 return this.wmsUrl; 927 939 } 928 940
