Package org.vfny.geoserver

Examples of org.vfny.geoserver.Request


        } catch (ParserConfigurationException e) {
            throw new WfsException(e, "Some sort of issue creating parser",
                XmlRequestReader.class.getName());
        }

        Request r = contentHandler.getRequest(req);

        return r;
    }
View Full Code Here


        }

        LOGGER.finer("about to return ");
        LOGGER.finer("returning " + contentHandler.getRequest(req));

        Request r = contentHandler.getRequest(req);

        if (r.getService() != null) {
            final String service = r.getService();

            if (!service.trim().toUpperCase().startsWith("WCS")) {
                throw new WcsException("SERVICE parameter is wrong.");
            }
        } else {
            throw new WcsException("SERVICE parameter is mandatory.");
        }

        if (r.getVersion() != null) {
            final String version = r.getVersion();

            if (!version.equals("1.0.0")) {
                throw new WcsException("VERSION parameter is wrong.");
            }
        } else {
            throw new WcsException("VERSION parameter is mandatory.");
        }

        if (r.getRequest() != null) {
            final String requestType = r.getRequest();

            if (!requestType.equalsIgnoreCase("DescribeCoverage")) {
                throw new WcsException("REQUEST parameter is wrong.");
            }
        } else {
View Full Code Here

    } catch (ParserConfigurationException e) {
      throw new WcsException(e, "Some sort of issue creating parser",
          getClass().getName());
    }

    Request r = currentRequest.getRequest(req);

    if (r.getService() != null) {
      final String service = r.getService();

      if (!service.trim().toUpperCase().startsWith("WCS")) {
        throw new WcsException("SERVICE parameter is wrong.");
      }
    } else {
      throw new WcsException("SERVICE parameter is mandatory.");
    }

    if (r.getVersion() != null) {
      final String version = r.getVersion();

      if (!version.equals("1.0.0")) {
        throw new WcsException("VERSION parameter is wrong.");
      }
    } else {
View Full Code Here

        } catch (ParserConfigurationException e) {
            throw new WcsException(e, "Some sort of issue creating parser",
                XmlRequestReader.class.getName());
        }

        Request r = contentHandler.getRequest(req);

        if (r.getService() != null) {
            final String service = r.getService();

            if (!service.trim().toUpperCase().startsWith("WCS")) {
                throw new WcsException("SERVICE parameter is wrong.");
            }
        } else {
            throw new WcsException("SERVICE parameter is mandatory.");
        }

        if (r.getVersion() != null) {
            final String version = r.getVersion();

            if (!version.equals("1.0.0")) {
                throw new WcsException("VERSION parameter is wrong.");
            }
        } else {
            throw new WcsException("VERSION parameter is mandatory.");
        }

        if (r.getRequest() != null) {
            final String requestType = r.getRequest();

            if (!requestType.equalsIgnoreCase("GetCoverage")) {
                throw new WcsException("REQUEST parameter is wrong.");
            }
        } else {
View Full Code Here

        throws ServiceException {
        //get the delegate
        Response delegate = (Response) value;

        //get the requst object from the operation
        Request request = (Request) OwsUtils.parameter(operation.getParameters(), Request.class);

        //the old contract specifies that execute must be called before
        // get content type
        delegate.execute(request);
View Full Code Here

            throw new WmsException(e, "XML capabilities request input error", getClass().getName());
        } catch (ParserConfigurationException e) {
            throw new WmsException(e, "Some sort of issue creating parser", getClass().getName());
        }

        Request r = currentRequest.getRequest(req);

        return r;
    }
View Full Code Here

        throws ServiceException {
        //get the delegate
        Response delegate = (Response) value;

        //get the requst object from the operation
        Request request = (Request) OwsUtils.parameter(operation.getParameters(), Request.class);

        //the old contract specifies that execute must be called before
        // get content type
        delegate.execute(request);
View Full Code Here

            return;
        }


        //DJB: added post support
        Request serviceRequest = null;
        this.curRequest = request;

        if (!isServiceEnabled(request)) {
            response.sendError(HttpServletResponse.SC_SERVICE_UNAVAILABLE);
            return;
View Full Code Here

        } catch (ParserConfigurationException e) {
            throw new WmsException(e, "Some sort of issue creating parser",
                getClass().getName());
        }

        Request r = currentRequest.getRequest(req);
        return r;
    }
View Full Code Here

                "XML transaction request input error", getClass().getName());
        } catch (ParserConfigurationException e) {
            throw new WfsTransactionException(e,
                "Some sort of issue creating parser", getClass().getName());
        }
        Request r = contentHandler.getRequest(req);
        return r;
    }
View Full Code Here

TOP

Related Classes of org.vfny.geoserver.Request

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.