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

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


    }


    // create a test WebDriverConfiguration.
    protected WebDriverConfiguration createTestWebDriverConfig() {
        return new WebDriverConfigurationImpl() {
            // javadoc inherited
            public String getLocation() {
                return System.getProperty("java.io.tmpdir");
            }
View Full Code Here


     * process will require for testing
     * @return a WebDriverConfiguration instance
     */
    public WebDriverConfiguration createWebDriverConfiguration() {
        // create a configuration
        WebDriverConfiguration config = new WebDriverConfigurationImpl();

        // create a proxy
        DefaultProxy proxy = new DefaultProxy();
        proxy.setId("proxyRef");
        proxy.setPort(8080);
        proxy.setHost("volantis");
        config.putProxy(proxy);

        // create a script module
        SimpleScriptModule script = new SimpleScriptModule();
        script.setId("scriptRef");
        config.putScriptModule(script);

        // return the configuration
        return config;
    }
View Full Code Here

     * @return WebDriverConfiguration which can be used to configure a
     * {@link PluggableHTTPManager}.
     */
    private WebDriverConfiguration createWebDriverConfig() {

        WebDriverConfigurationImpl webdConfig =
                new WebDriverConfigurationImpl();

        // indicate that the remapping filter should automatically
        // silently follow HTTP response 302 redirects
        webdConfig.setFollowRedirects(true);

        // indicate that the webdriver should attempt to remap
        // redirected URLs. This will only work if there is a rewrite
        // manager
        webdConfig.setRemapRedirects(true);

        URLRewriteProcessConfiguration urlRewriteConfig =
                    new URLRewriteProcessConfiguration();

        webdConfig.setRedirectRewriteManager(
                urlRewriteConfig.getURLPrefixRewriteManager());

        // indicate that if a redirect url cannot be remapped, we
        // should not attempt to follow the original url.
        webdConfig.setFollowUnsuccessfulRedirectRemaps(false);
                 
        return webdConfig;
    }
View Full Code Here

TOP

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

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.