Package com.volantis.shared.net.url

Examples of com.volantis.shared.net.url.URLContentManager


    private InputSource acquireWSDLInputSource(Operation operation)
            throws IOException {
        String wsdlURI = operation.retrieveWSDLURI();
        InputSource wsdlInputSource = null;

        URLContentManager manager = PipelineURLContentManager.retrieve(
                getPipelineContext());

        if (configuration != null) {
            // Look in the configuration for an alternative source for the
            // wsdl...
View Full Code Here


    private Templates createTemplates(String absoluteURI, boolean isCompilable)
            throws IOException, SAXException, TransformerConfigurationException {

        // Get the URLContent manager.
        final XMLPipelineContext context = getPipelineContext();
        URLContentManager manager = PipelineURLContentManager.retrieve(context);

        // Get the content of the template, no timeout is supplied as there
        // is no way to specify an operation specific timeout so it uses the
        // default one associated with the manager.
        final URL url = new URL(absoluteURI);
        final URLConfiguration urlConfig =
            URLConfigurationFactory.getURLConfiguration(url, context);
        URLContent content = manager.getURLContent(url, null, urlConfig);

        InputStream connectionInput = null;
        try {
            connectionInput = content.getInputStream();
            StreamSource xslSource = new StreamSource(connectionInput,
View Full Code Here

        WSDLEntry entry = new WSDLEntry();
        entry.addWSDLResource(testResource);
        entry.addWSDLResource(resourceA);
        entry.addWSDLResource(resourceB);
       
        URLContentManager pipelineManager =
                PipelineURLContentManager.retrieve(pipelineContext);
//        pipelineManager.store(pipelineContext.getPipelineConfiguration());

        // Get the InputSource from the WSDLEntry
        InputSource source = entry.provideAlternativeInputSource(
View Full Code Here

    // javadoc inherited.
    public InputSource provideInputSource(XMLPipelineContext context)
            throws WSDLResourceException {

        URLContentManager manager = PipelineURLContentManager.retrieve(context);

        String path = super.getPath();
        URL url = getResourceURL(path);

        InputSource result;
View Full Code Here

        reader.setContentHandler(cup);

        // Chain the new pipeline process to the target process
        pipelineProcess.setNextProcess(target);

        URLContentManager manager = PipelineURLContentManager.retrieve(
                context);

        try {
            final URLConfiguration urlConfiguration =
                URLConfigurationFactory.getURLConfiguration(url, context);
            URLContent content =
                manager.getURLContent(url, timeout, urlConfiguration);

            // InputSource for content that we are trying to include.
            InputSource source = new InputSource(content.getInputStream());

            // Ensure that the systemID property is set for the
View Full Code Here

     */
    private void includeTextDocument(URL url)
            throws SAXException {
        String characterEncoding = null;

        URLContentManager manager = PipelineURLContentManager.retrieve(
                context);

        try {
            final URLConfiguration urlConfiguration =
                URLConfigurationFactory.getURLConfiguration(url, context);
            URLContent content =
                manager.getURLContent(url, timeout, urlConfiguration);

            // The encoding to use is determined as follows.
            //
            // 1) The document being included specifies an encoding in
            //    the header, otherwise
View Full Code Here

    // javadoc inherited
    public InputSource provideInputSource(XMLPipelineContext context)
            throws WSDLResourceException {

        URLContentManager manager = PipelineURLContentManager.retrieve(context);

        // todo look at using getPipelineContext().getCurrentBaseURI();
        ServletContext servletContext =
                (ServletContext)context.getProperty(ServletContext.class);
View Full Code Here

    // javadoc inherited
    public InputSource provideInputSource(XMLPipelineContext context)
            throws WSDLResourceException {

        URLContentManager manager = PipelineURLContentManager.retrieve(context);

        InputSource result;
        try {
            result = WSDriverUtils.createURIInputSource(uri, manager, context);
        } catch (IOException e) {
View Full Code Here

TOP

Related Classes of com.volantis.shared.net.url.URLContentManager

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.