Examples of CapabilitiesRequest


Examples of gov.nasa.worldwind.wms.CapabilitiesRequest

    public static WMSCapabilities retrieve(URI uri) throws Exception
    {
        try
        {
            CapabilitiesRequest request = new CapabilitiesRequest(uri);

            return new WMSCapabilities(request);
        }
        catch (URISyntaxException e)
        {
View Full Code Here

Examples of gov.nasa.worldwind.wms.CapabilitiesRequest

           IOException,
           XMLStreamException,
           IllegalArgumentException,
           URISyntaxException
    {
        CapabilitiesRequest request = new CapabilitiesRequest(uri);
        return new GfrWMSCapabilities(request);
    }
View Full Code Here

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

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

     *
     * @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

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

    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

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

     * @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

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

     * @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

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

        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

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

    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
Copyright © 2018 www.massapi.com. 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.