Package org.tamacat.httpd.config

Examples of org.tamacat.httpd.config.DefaultReverseUrl


    ServerConfig config = new ServerConfig();
    ServiceUrl serviceUrl = new ServiceUrl(config);
    serviceUrl.setPath("/examples/");
    serviceUrl.setType(ServiceType.REVERSE);
    serviceUrl.setHost(new URL("http://www.example.com/examples/servlets"));
    ReverseUrl reverseUrl = new DefaultReverseUrl(serviceUrl);
    reverseUrl.setReverse(new URL("http://192.168.1.1:8080/examples/"));
   
    HttpRequest request = new BasicHttpRequest("GET", "/examples/servlets");
    request.setHeader("Host", "www.example.com");
   
    HttpResponse response = new BasicHttpResponse(
View Full Code Here


    ServiceUrl serviceUrl = new ServiceUrl(serverConfig);
   
    serviceUrl.setPath("/test/");
    serviceUrl.setType(ServiceType.REVERSE);
    serviceUrl.setHost(new URL("http://localhost/test/"));   
    DefaultReverseUrl reverseUrl = new DefaultReverseUrl(serviceUrl);
    reverseUrl.setReverse(new URL("http://localhost/test/"));
    //serviceUrl.setReverseUrl(reverseUrl);
   
    handler.setServiceUrl(serviceUrl);

    context = HttpObjectFactory.createHttpContext();
View Full Code Here

TOP

Related Classes of org.tamacat.httpd.config.DefaultReverseUrl

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.