Show
Ignore:
Timestamp:
08/22/08 19:27:36 (5 months ago)
Author:
arneke
Message:

Removing old cruft, started reenabling old fields on layer object

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/geowebcache/src/main/java/org/geowebcache/util/GetCapabilitiesConfiguration.java

    r338 r346  
    146146            Layer layer = layerIter.next(); 
    147147            String name = layer.getName(); 
     148            String stylesStr = ""; 
    148149             
    149150            if (name != null) { 
    150151                List styles = layer.getStyles(); 
    151                 String stylesStr = ""; 
     152                 
    152153                StringBuffer buf = new StringBuffer(); 
    153154                if(styles != null) { 
     
    161162                        hasOne = true; 
    162163                    } 
    163                 }     
    164                 //TODO styles are not currently forwarded 
     164                    stylesStr = buf.toString(); 
     165                } 
    165166                 
    166167                double minX = layer.getLatLonBoundingBox().getMinX(); 
     
    180181                        latToSphericalMercatorY(maxY)); 
    181182                
     183                String[] wmsUrls = {wmsUrl}; 
     184                 
    182185                WMSLayer wmsLayer = null; 
    183186                try { 
    184                     wmsLayer = getLayer(name, wmsUrl, bounds4326,  
     187                    wmsLayer = getLayer(name, wmsUrls, bounds4326,  
    185188                            bounds900913, stylesStr); 
    186189                } catch (GeoWebCacheException gwc) { 
     
    198201    } 
    199202 
    200     private WMSLayer getLayer(String name, String wmsurl,  
     203    private WMSLayer getLayer(String name, String[] wmsurl,  
    201204            BBOX bounds4326, BBOX bounds900913, String stylesStr) 
    202205            throws GeoWebCacheException { 
     
    230233        // TODO We're dropping the styles now... 
    231234        return new WMSLayer(name, this.cacheFactory, 
    232                 wmsurl, mimeFormats, grids, metaWidthHeight, this.vendorParameters); 
     235                wmsurl, stylesStr, name, mimeFormats, grids,  
     236                metaWidthHeight, this.vendorParameters); 
    233237    } 
    234238