Package com.volantis.xml.pipeline.sax.convert

Examples of com.volantis.xml.pipeline.sax.convert.URLConverter


                          String serverURL,
                          String baseURL,
                          String hostParam,
                          String portParam,
                          String expected) throws Exception {
        URLConverter converter = new TranscoderURLConverter(hostParam,
                                                            portParam);

        XMLPipelineContext context = new XMLPipelineContextStub() {
            URL baseURI;

            public void pushBaseURI(String s) throws MalformedURLException {
                baseURI = new URL(s);
            }

            public URL popBaseURI() {
                return null;
            }

            public URL getCurrentBaseURI() {
                return baseURI;
            }
        };

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

        String actual = converter.toURLC(context,
                                         input,
                                         serverURL);

        assertEquals("Inputs [" + input + ", " + serverURL + ", " + baseURL +
                     ", " + hostParam + ", " + portParam +
View Full Code Here

TOP

Related Classes of com.volantis.xml.pipeline.sax.convert.URLConverter

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.