Package com.volantis.xml.pipeline.sax.drivers.web

Examples of com.volantis.xml.pipeline.sax.drivers.web.AbstractPluggableHTTPManager


            "<TITLE>Fake response</TITLE>",
            "</HEAD>",
            "<BODY>",
            "<H1>Fake response</H1>"
        };
        AbstractPluggableHTTPManager manager = createTestInstance();
        HTTPResponseAccessor resp =
                performRequest(manager, fakeResponse,
                                HTTPRequestType.GET, "?wibble=wobble");

        HTTPResponseAccessor resp2 =
View Full Code Here


            // therefore older then the initial cache entry.
            "Date: " + getStringDate(new Date(System.currentTimeMillis() + 1000)),
            "Content-Type: text/html",
            ""
        };
        AbstractPluggableHTTPManager manager = createTestInstance();
        HTTPResponseAccessor resp =
                performRequest(manager, fakeResponse,
                                HTTPRequestType.POST, null);
        assertEquals("response should be a 400", 400, resp.getStatusCode());
View Full Code Here

        return dateFormat.format(date);
    }

    // convieniance method to create and initialize teh manager.
    private AbstractPluggableHTTPManager createTestInstance() {
        AbstractPluggableHTTPManager manager = (AbstractPluggableHTTPManager)
                createTestablePluggableHTTPManager();
        manager.initialize(createTestWebDriverConfig(), Period.INDEFINITELY);
        return manager;
    }
View Full Code Here

    }

    // javadoc inherited
    protected PluggableHTTPManager
            createTestablePluggableHTTPManager() {
        AbstractPluggableHTTPManager delegate =
                new HTTPClientPluggableHTTPManager();
        XMLPipelineConfiguration config = new XMLPipelineConfiguration() {
            public void storeConfiguration(Object key, Configuration configuration) {
            }
View Full Code Here

TOP

Related Classes of com.volantis.xml.pipeline.sax.drivers.web.AbstractPluggableHTTPManager

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.