Package org.tamacat.httpd.config

Examples of org.tamacat.httpd.config.ServerConfig


  HttpResponse response;
  HttpContext context;
 
  @Before
  public void setUp() throws Exception {
    config = new ServerConfig();
    ServiceUrl serviceUrl = new ServiceUrl(config);
    auth = new BasicAuthProcessor();
    auth.init(serviceUrl);
   
    TestAuthComponent authComponent = new TestAuthComponent();
View Full Code Here


  HttpContext context;
  TestAuthComponent authComponent;
 
  @Before
  public void setUp() throws Exception {
    config = new ServerConfig();
    ServiceUrl serviceUrl = new ServiceUrl(config);
    auth = new FormAuthProcessor();
    auth.init(serviceUrl);

    authComponent = new TestAuthComponent();
View Full Code Here

    assertEquals("key1=value1; domain=192.168.1.1", response.getFirstHeader("Set-Cookie").getValue());
  }
 
  @Test
  public void testRewriteLocationHeader() throws Exception {
    ServerConfig config = new ServerConfig();
    ServiceUrl serviceUrl = new ServiceUrl(config);
    serviceUrl.setPath("/examples/");
    serviceUrl.setType(ServiceType.REVERSE);
    serviceUrl.setHost(new URL("http://localhost/examples/servlets"));
    ReverseUrl reverseUrl = new DefaultReverseUrl(serviceUrl);
View Full Code Here

    );
  }

  @Test
  public void testRewriteContentLocationHeader() throws Exception {
    ServerConfig config = new ServerConfig();
    ServiceUrl serviceUrl = new ServiceUrl(config);
    serviceUrl.setPath("/examples/");
    serviceUrl.setType(ServiceType.REVERSE);
    serviceUrl.setHost(new URL("http://localhost/examples/servlets"));
    ReverseUrl reverseUrl = new DefaultReverseUrl(serviceUrl);
View Full Code Here

    );
  }
 
  @Test
  public void testRewriteSetCookieHeader() throws Exception {
    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);
View Full Code Here

 
  @Before
  public void setUp() throws Exception {
    handler = new ReverseProxyHandler();

    ServerConfig serverConfig = new ServerConfig(PropertyUtils.getProperties("server.properties"));
    ServiceUrl serviceUrl = new ServiceUrl(serverConfig);
   
    serviceUrl.setPath("/test/");
    serviceUrl.setType(ServiceType.REVERSE);
    serviceUrl.setHost(new URL("http://localhost/test/"));   
View Full Code Here

TOP

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

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.