Package org.tamacat.httpd.config

Examples of org.tamacat.httpd.config.ServerConfig


     * <p>This method called by {@link #start}.
     */
  protected void init() {
    if (serverConfig == null) {
      Properties props = PropertyUtils.getProperties(propertiesName);
      serverConfig = new ServerConfig(props);
    }
    paramsBuilder = new HttpParamsBuilder();
      paramsBuilder.socketTimeout(serverConfig.getSocketTimeout())
            .socketBufferSize(serverConfig.getSocketBufferSize())
            .originServer(serverConfig.getParam("ServerName"));
View Full Code Here


   
    context = new BasicHttpContext();
    item = new DiskFileItemFactory().createItem("test", "text/plain", false, "test.txt");
    this.item.getOutputStream();
   
    ServerConfig config = new ServerConfig();
    ServiceUrl serviceUrl = new ServiceUrl(config);
    filter.init(serviceUrl);
  }
View Full Code Here

  public void setUp() throws Exception {
    filter = new VelocityActionFilter();
    filter.setBase("org.tamacat.httpd.action");
    filter.setSuffix("Action");
   
    ServerConfig config = new ServerConfig();
    ServiceUrl serviceUrl = new ServiceUrl(config);
    filter.init(serviceUrl);
  }
View Full Code Here

  ServiceUrl url;
  ServerConfig config;
 
  @Before
  public void setUp() throws Exception {
    config = new ServerConfig();
    ServiceConfig serviceConfig  = new ServiceConfig();
   
    ServiceUrl serviceUrl = new ServiceUrl(config);
    serviceUrl.setHandlerName("ReverseHandler");
    serviceUrl.setPath("/test2/");
View Full Code Here

  ClientIPAccessControlFilter filter;
 
  @Before
  public void setUp() throws Exception {
    ServerConfig config = new ServerConfig();
    ServiceUrl serviceUrl = new ServiceUrl(config);

    filter = new ClientIPAccessControlFilter();
    filter.init(serviceUrl);
  }
View Full Code Here

  ReverseUrl reverseUrl;
  ServerConfig config;
 
  @Before
  public void setUp() throws Exception {
    config = new ServerConfig();
    ServiceConfig serviceConfig = new ServiceConfig();
   
    ServiceUrl serviceUrl = new ServiceUrl(config);
    serviceUrl.setHandlerName("ReverseHandler");
    serviceUrl.setPath("/test2/");
View Full Code Here

  DefaultHttpHandlerFactory factory;
  ServiceUrl serviceUrl;
 
  @Before
  public void setUp() throws Exception {
    serverConfig = new ServerConfig();
    serviceConfig = new ServiceConfig();
    serviceUrl = new ServiceUrl(serverConfig);
    serviceUrl.setHandlerName("DocsHandler");
    serviceUrl.setPath("/docs/");
    serviceUrl.setType(ServiceType.NORMAL);
View Full Code Here

  private SessionCookieFilter filter;
 
  @Before
  public void setUp() throws Exception {
    filter = new SessionCookieFilter();
    ServerConfig config = new ServerConfig();
    ServiceUrl serviceUrl = new ServiceUrl(config);
    filter.init(serviceUrl);
  }
View Full Code Here

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

 
  WorkerThread thread;

  public void testWorkerThread() throws Exception {
    Properties props = PropertyUtils.getProperties("server.properties");
    ServerConfig serverConfig = new ServerConfig(props);
    HttpParamsBuilder paramsBuilder = new HttpParamsBuilder();
      paramsBuilder.socketTimeout(serverConfig.getSocketTimeout())
            .socketBufferSize(serverConfig.getSocketBufferSize())
            .originServer(serverConfig.getParam("ServerName"));
     
      HttpProcessorBuilder procBuilder = new HttpProcessorBuilder();
   
    //default interceptors
    procBuilder.addInterceptor(new ResponseDate());
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.