org.apache.tomcat.core
Interface ServerConnector


public interface ServerConnector

This is the adapter between the servlet world and the protocol implementation. Tomcat.core will receive a Request/Response object - it can be either a normal HTTP request or any other protocol that can be mapped to a Request/Response model - including AJPxx, JNI, etc. If tomcat is integrated with a web server it will probably use a optimized binary protocol or JNI to communicate with the server, and in this case tomcat will be in fact a AJP or JNI server. The Request and Response can be created and should be reused by the connector. The connector must implement the get/set pattern for configuration, and may use setProperty( name, value ) pattern, but this is not under the control of the servlet engine ( and it's not part of this interface!).


Method Summary
 void setAttribute(java.lang.String s, java.lang.Object value)
          Set a config property
 void setLogger(org.apache.tomcat.logging.Logger logger)
          Set a org.apache.tomcat.logging.Logger explicitly
 void setServer(java.lang.Object cm)
          Set the entry point to tomcat.
 void start()
          Start the adapter.
 void stop()
          Stop the connector.
 

Method Detail

start

public void start()
           throws java.lang.Exception
Start the adapter. This is done by the context manager when the server is ready to accept requests.

stop

public void stop()
          throws java.lang.Exception
Stop the connector. Will be called by the context manager when the server is shut-down.

setServer

public void setServer(java.lang.Object cm)
Set the entry point to tomcat. This object will be used by the protocol implementation.

setAttribute

public void setAttribute(java.lang.String s,
                         java.lang.Object value)
Set a config property

setLogger

public void setLogger(org.apache.tomcat.logging.Logger logger)
Set a org.apache.tomcat.logging.Logger explicitly


Copyright © 2000 Apache Software Foundation. All Rights Reserved.