Package org.vfny.geoserver.wms.requests

Examples of org.vfny.geoserver.wms.requests.WMSCapabilitiesRequest


        geosConfig.add(wmsInfo);

        catalog = new CatalogImpl();
        geosConfig.setCatalog(catalog);

        req = new WMSCapabilitiesRequest(new WMS(geosConfig));
        req.setBaseUrl(baseUrl);

        Map<String, String> namespaces = new HashMap<String, String>();
        namespaces.put("xlink", "http://www.w3.org/1999/xlink");
        XMLUnit.setXpathNamespaceContext(new SimpleNamespaceContext(namespaces));
View Full Code Here


        if (!(request instanceof CapabilitiesRequest)) {
            throw new IllegalArgumentException("Not a GetCapabilities Request");
        }
       
        //UpdateSequence handling for WMS:  see WMS 1.1.1 page 23
        final WMSCapabilitiesRequest capreq = (WMSCapabilitiesRequest)request;
        final WMS wmsConfig = capreq.getWMS();
       
        long reqUS = -1;
        if (capreq.getUpdateSequence() != null && !"".equals(capreq.getUpdateSequence().trim())) {
          try {
            reqUS = Long.parseLong(capreq.getUpdateSequence());
          } catch (NumberFormatException nfe) {
            throw new ServiceException("GeoServer only accepts numbers in the updateSequence parameter");
          }
        }
        long geoUS = wmsConfig.getUpdateSequence();
View Full Code Here

TOP

Related Classes of org.vfny.geoserver.wms.requests.WMSCapabilitiesRequest

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.