Package org.vfny.geoserver.util.requests

Examples of org.vfny.geoserver.util.requests.CapabilitiesRequest


     *
     * @throws ServiceException DOCUMENT ME!
     */
    public Request getRequest(HttpServletRequest request)
        throws ServiceException {
        CapabilitiesRequest currentRequest = new WCSCapabilitiesRequest((WCSInfo) serviceConfig);
        currentRequest.setHttpServletRequest(request);
        currentRequest.setVersion(getValue("VERSION"));
        currentRequest.setUpdateSequence(getValue("UPDATESEQUENCE"));

        //service is set in the constructor
        //currentRequest.setService(getValue("SERVICE"));
        return currentRequest;
    }
View Full Code Here


     *
     * @throws ServiceException DOCUMENT ME!
     */
    public Request getRequest(HttpServletRequest request)
        throws ServiceException {
        CapabilitiesRequest currentRequest = new WMSCapabilitiesRequest(wms);
        currentRequest.setHttpServletRequest(request);

        String reqVersion = wms.getVersion();

        if (keyExists("VERSION")) {
            reqVersion = getValue("VERSION");
        } else if (keyExists("WMTVER")) {
            reqVersion = getValue("WMTVER");
        }

        currentRequest.setVersion(reqVersion);
       
        if (keyExists("UPDATESEQUENCE")) {
          currentRequest.setUpdateSequence(getValue("UPDATESEQUENCE"));
        }
       
        if(keyExists("NAMESPACE")) {
            currentRequest.setNamespace(getValue("NAMESPACE"));
        }

        return currentRequest;
    }
View Full Code Here

    public void execute(Request request) throws ServiceException {
        if (!(request instanceof CapabilitiesRequest)) {
            throw new IllegalArgumentException("Not a GetCapabilities Request");
        }
       
        CapabilitiesRequest capreq = (CapabilitiesRequest)request;
        long reqUS = -1;
        if (capreq.getUpdateSequence() != null) {
          try {
            reqUS = Long.parseLong(capreq.getUpdateSequence());
          } catch (NumberFormatException nfe) {
            throw new ServiceException("GeoServer only accepts numbers in the updateSequence parameter");
          }
        }
        GeoServerInfo gsInfo = request.getServiceConfig().getGeoServer().getGlobal();
View Full Code Here

     * @return Capabilities request.
     *
     * @throws ServiceException DOCUMENT ME!
     */
    public Request getRequest(HttpServletRequest request) throws ServiceException {
        CapabilitiesRequest currentRequest = new CapabilitiesRequest("WMS");
        currentRequest.setHttpServletRequest(request);
        String reqVersion = WMS.getVersion();

        if (keyExists("VERSION")) {
            reqVersion = getValue("VERSION");
        } else if (keyExists("WMTVER")) {
            reqVersion = getValue("WMTVER");
        }

        currentRequest.setVersion(reqVersion);

        return currentRequest;
    }
View Full Code Here

     * @return Capabilities request.
     *
     * @throws ServiceException DOCUMENT ME!
     */
    public Request getRequest(HttpServletRequest request) throws ServiceException {
        CapabilitiesRequest currentRequest = new CapabilitiesRequest("WFS");
        currentRequest.setHttpServletRequest(request);
        currentRequest.setVersion(getValue("VERSION"));

        //service is set in the constructor
        //currentRequest.setService(getValue("SERVICE"));
        return currentRequest;
    }
View Full Code Here

        return suite;
    }

    public void setUp() {
        baseRequest[0] = new CapabilitiesRequest("WFS");

        //baseRequest[0].setService("WFS");
        baseRequest[0].setVersion("1.0.0");

        baseRequest[1] = new CapabilitiesRequest("WFS");
        baseRequest[1].setVersion("0.0.14");
    }
View Full Code Here

    ArrayList ftList = new ArrayList();
    ArrayList bboxList = new ArrayList();
    ArrayList ftnsList = new ArrayList();
   
    // 1) get the capabilities info so we can find out our feature types
    CapabilitiesRequest capRequest = new CapabilitiesRequest("WMS");
    capRequest.setHttpServletRequest(request);
    WMS wms = capRequest.getWMS();
    Data catalog = wms.getData();
    Collection ftypes = catalog.getFeatureTypeInfos().values();
    FeatureTypeInfo layer;
   
    // 2) delete any existing generated files in the generation directory
View Full Code Here

TOP

Related Classes of org.vfny.geoserver.util.requests.CapabilitiesRequest

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.