Examples of DescribeHandler


Examples of com.hp.hpl.jena.sparql.core.describe.DescribeHandler

    // Set up a custom DescribeHandler that calls out to
    // {@link ResourceDescriber}
    DescribeHandlerRegistry.get().clear();
    DescribeHandlerRegistry.get().add(new DescribeHandlerFactory() {
      public DescribeHandler create() {
        return new DescribeHandler() {
          private BulkUpdateHandler adder;

          public void start(Model accumulateResultModel,
              Context qContext) {
            adder = accumulateResultModel.getGraph()
View Full Code Here

Examples of org.vfny.geoserver.wcs.requests.DescribeHandler

        throws WcsException {
        /** create a describe Coverage type request class to return */
        InputSource requestSource = new InputSource(reader);

        // instantiante parsers and content handlers
        DescribeHandler contentHandler = new DescribeHandler((WCSInfo)getService());

        // read in XML file and parse to content handler
        try {
            SAXParserFactory factory = SAXParserFactory.newInstance();
            SAXParser parser = factory.newSAXParser();
            ParserAdapter adapter = new ParserAdapter(parser.getParser());

            adapter.setContentHandler(contentHandler);
            adapter.parse(requestSource);
            LOGGER.finer("just parsed: " + requestSource);
        } catch (SAXException e) {
            throw new WcsException(e, "XML describe request parsing error", getClass().getName());
        } catch (IOException e) {
            throw new WcsException(e, "XML describe request input error", getClass().getName());
        } catch (ParserConfigurationException e) {
            throw new WcsException(e, "Some sort of issue creating parser", getClass().getName());
        }

        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")) {
View Full Code Here

Examples of org.vfny.geoserver.wfs.requests.DescribeHandler

    public Request read(Reader reader, HttpServletRequest req) throws WfsException {
        /** create a describe feature type request class to return */
        InputSource requestSource = new InputSource(reader);

        // instantiante parsers and content handlers
        DescribeHandler contentHandler = new DescribeHandler();

        // read in XML file and parse to content handler
        try {
            SAXParserFactory factory = SAXParserFactory.newInstance();
            SAXParser parser = factory.newSAXParser();
            ParserAdapter adapter = new ParserAdapter(parser.getParser());

            adapter.setContentHandler(contentHandler);
            adapter.parse(requestSource);
            LOGGER.finer("just parsed: " + requestSource);
        } catch (SAXException e) {
            throw new WfsException(e, "XML describe request parsing error",
                getClass().getName());
        } catch (IOException e) {
            throw new WfsException(e, "XML describe request input error",
                getClass().getName());
        } catch (ParserConfigurationException e) {
            throw new WfsException(e, "Some sort of issue creating parser",
                getClass().getName());
        }

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

        Request r = contentHandler.getRequest(req);
        return r;
    }
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.