Examples of pushBaseURI()


Examples of com.volantis.xml.pipeline.sax.XMLPipelineContext.pushBaseURI()

        // Set the Base URI in the pipeline's context
        URL baseURI = this.getServletContext().getResource("/");
        if (logger.isDebugEnabled()) {
            logger.debug("Setting Base URI " + baseURI.toExternalForm());
        }
        pipelineContext.pushBaseURI(baseURI.toExternalForm());

        reader.parse(new InputSource(msgStream));
    }

View Full Code Here

Examples of com.volantis.xml.pipeline.sax.XMLPipelineContext.pushBaseURI()

                URL baseURI = new URL( baseUrl );
                if( logger.isDebugEnabled() ) {
                    logger.debug( "Setting Base URI "
                                        + baseURI.toExternalForm() );
                }
                pipelineContext.pushBaseURI( baseURI.toExternalForm() );
            } catch( MalformedURLException e ) {
                throw new MessageException( e );
            }
            reader.parse( new InputSource( new StringReader( messageXML ) ) );
View Full Code Here

Examples of com.volantis.xml.pipeline.sax.XMLPipelineContext.pushBaseURI()

            if (locator != null) {
                XMLPipelineContext pipelineContext = getPipelineContext();
                // store the locator away in the XMLPipelineContext. The Locator
                // is useful when reporting errors
                pipelineContext.pushLocator(locator);
                pipelineContext.pushBaseURI(locator.getSystemId());
            } else if (!allowNullLocator) {
                warning(new XMLPipelineException("The document does not " +
                                                 "have an associated Locator.", null));
            }
        } catch (MalformedURLException e) {
View Full Code Here

Examples of com.volantis.xml.pipeline.sax.XMLPipelineContext.pushBaseURI()

        try {
            // retrieve the base uri if any
            String baseURI = atts.getValue(NamespaceSupport.XMLNS,
                                           BASE_ATTRIBUTE);
            // push the base URI onto the context - OK to push null
            pipelineContext.pushBaseURI(baseURI);

            if (baseURI != null) {
                AttributesImpl cloneAttrs = new AttributesImpl(atts);
                int index = cloneAttrs.
                        getIndex(NamespaceSupport.XMLNS, BASE_ATTRIBUTE);
View Full Code Here

Examples of com.volantis.xml.pipeline.sax.XMLPipelineContext.pushBaseURI()

            PluggableHTTPManager httpManager =
                    ((WebDriverConfigurationImpl) configuration).
                    getPluggableHTTPManager(protocolString, pipelineConfiguration);
            httpManager.initialize(configuration, timeout);
            try {
                context.pushBaseURI(getUrlString());
                httpManager.sendRequest(createRequestDetails(), context);
                webdTransaction.stop(MonitoredTransaction.SUCCESSFUL, getUrlString());
            } catch (HTTPException e) {
                webdTransaction.stop(MonitoredTransaction.FAILED, getUrlString());
                fatalError(new XMLPipelineException(
View Full Code Here

Examples of com.volantis.xml.pipeline.sax.XMLPipelineContext.pushBaseURI()

        }
       
        // ensure the pipeline context has a current base uri
        XMLPipelineContext context
                = process.getPipeline().getPipelineContext();
        context.pushBaseURI(baseURI.toExternalForm());

        String localName = "localName";
        String namespaceURI = "";
        String qName = localName;               
       
View Full Code Here

Examples of com.volantis.xml.pipeline.sax.XMLPipelineContext.pushBaseURI()

                 URL baseURI = filterConfig.getServletContext().getResource("/");
                 String baseURIAsString = baseURI.toExternalForm();
                 if (logger.isDebugEnabled()) {
                     logger.debug("Setting Base URI " + baseURIAsString);
                 }
                 pipelineContext.pushBaseURI(baseURIAsString);
             } catch (MalformedURLException e) {
                 throw new ServletException(e);
             }

            // Treat the response wrapper as an InputSource for the XML parser.
View Full Code Here

Examples of com.volantis.xml.pipeline.sax.XMLPipelineContext.pushBaseURI()

                return baseURI;
            }
        };

        if (baseURL != null) {
            context.pushBaseURI(baseURL);
        } else {
            context.pushBaseURI("http://myhost:1664/mypath");
        }

        String actual = converter.toURLC(context,
View Full Code Here

Examples of com.volantis.xml.pipeline.sax.XMLPipelineContext.pushBaseURI()

        };

        if (baseURL != null) {
            context.pushBaseURI(baseURL);
        } else {
            context.pushBaseURI("http://myhost:1664/mypath");
        }

        String actual = converter.toURLC(context,
                                         input,
                                         serverURL);
View Full Code Here

Examples of com.volantis.xml.pipeline.sax.XMLPipelineContext.pushBaseURI()

            storeRemoteProject(pipelineContext, remoteProjectName);

            // Push the URL of the resource that we need to retrieve onto
            // the context - this allows relative references in any
            // returned markup to be resolved.
            pipelineContext.pushBaseURI(remappedURL);

                // Create a pipeline
                XMLPipeline pipeline = pipelineFactory.createPipeline
                    (pipelineContext);
            XMLFilter filter = pipelineFactory.createPipelineFilter(
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.