Save This Page
Home » apache-tomcat-6.0.16-src » org.apache » coyote » tomcat4 » [javadoc | source]
org.apache.coyote.tomcat4
public final class: CoyoteConnector [javadoc | source]
java.lang.Object
   org.apache.coyote.tomcat4.CoyoteConnector

All Implemented Interfaces:
    org.apache.catalina.Connector, MBeanRegistration, Lifecycle

Implementation of a Coyote connector for Tomcat 4.x.
Field Summary
protected  Container container    The Container used for processing requests received by this Connector. 
protected  LifecycleSupport lifecycle    The lifecycle event support for this component. 
protected  int minProcessors    The minimum number of processors to start at initialization time. 
protected  int maxSpareProcessors    The maximum amount of spare processors. 
protected  String domain     
protected  ObjectName oname     
protected  MBeanServer mserver     
Method from org.apache.coyote.tomcat4.CoyoteConnector Summary:
addLifecycleListener,   createRequest,   createResponse,   findLifecycleListeners,   getAcceptCount,   getAddress,   getAllowTrace,   getBufferSize,   getCompressableMimeType,   getCompression,   getConnectionLinger,   getConnectionTimeout,   getConnectionUploadTimeout,   getContainer,   getCurProcessors,   getDebug,   getDisableUploadTimeout,   getDomain,   getEnableLookups,   getFactory,   getInfo,   getMaxHttpHeaderSize,   getMaxKeepAliveRequests,   getMaxProcessors,   getMaxSpareProcessors,   getMinProcessors,   getObjectName,   getPort,   getProtocolHandlerClassName,   getProxyName,   getProxyPort,   getRedirectPort,   getScheme,   getSecure,   getServerSocketTimeout,   getService,   getTcpNoDelay,   getTomcatAuthentication,   getURIEncoding,   getUseBodyEncodingForURI,   getUseURIValidationHack,   initialize,   isAvailable,   postDeregister,   postRegister,   preDeregister,   preRegister,   removeLifecycleListener,   setAcceptCount,   setAddress,   setAllowTrace,   setBufferSize,   setCompressableMimeType,   setCompression,   setConnectionLinger,   setConnectionTimeout,   setConnectionUploadTimeout,   setContainer,   setDebug,   setDisableUploadTimeout,   setEnableLookups,   setFactory,   setMaxHttpHeaderSize,   setMaxKeepAliveRequests,   setMaxProcessors,   setMaxSpareProcessors,   setMinProcessors,   setPort,   setProtocolHandlerClassName,   setProxyName,   setProxyPort,   setRedirectPort,   setScheme,   setSecure,   setServerSocketTimeout,   setService,   setTcpNoDelay,   setTomcatAuthentication,   setURIEncoding,   setUseBodyEncodingForURI,   setUseURIValidationHack,   start,   stop
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.coyote.tomcat4.CoyoteConnector Detail:
 public  void addLifecycleListener(LifecycleListener listener) 
    Add a lifecycle event listener to this component.
 public Request createRequest() 
    Create (or allocate) and return a Request object suitable for specifying the contents of a Request to the responsible Container.
 public Response createResponse() 
    Create (or allocate) and return a Response object suitable for receiving the contents of a Response from the responsible Container.
 public LifecycleListener[] findLifecycleListeners() 
    Get the lifecycle listeners associated with this lifecycle. If this Lifecycle has no listeners registered, a zero-length array is returned.
 public int getAcceptCount() 
    Return the accept count for this Connector.
 public String getAddress() 
    Return the bind IP address for this Connector.
 public boolean getAllowTrace() 
    True if the TRACE method is allowed. Default value is "false".
 public int getBufferSize() 
    Return the input buffer size for this Connector.
 public String getCompressableMimeType() 
    Get the list of compressable MIME types.
 public String getCompression() 
    Get the value of compression.
 public int getConnectionLinger() 
    Return the connection linger for this Connector.
 public int getConnectionTimeout() 
    Return the connection timeout for this Connector.
 public int getConnectionUploadTimeout() 
    Return the connection upload timeout for this Connector.
 public Container getContainer() 
    Return the Container used for processing requests received by this Connector.
 public int getCurProcessors() 
    Return the current number of processors that have been created.
 public int getDebug() 
    Return the debugging detail level for this component.
 public boolean getDisableUploadTimeout() 
    Return the flag that specifies upload time-out behavior.
 public String getDomain() 
 public boolean getEnableLookups() 
    Return the "enable DNS lookups" flag.
 public ServerSocketFactory getFactory() 
    Return the server socket factory used by this Container.
 public String getInfo() 
    Return descriptive information about this Connector implementation.
 public int getMaxHttpHeaderSize() 
    Return the maximum permitted size of the HTTP request and response headers.
 public int getMaxKeepAliveRequests() 
    Return the maximum number of Keep-Alive requests to honor per connection.
 public int getMaxProcessors() 
    Return the maximum number of processors allowed, or <0 for unlimited.
 public int getMaxSpareProcessors() 
    Return the maximum number of spare processors allowed.
 public int getMinProcessors() 
    Return the minimum number of processors to start at initialization.
 public ObjectName getObjectName() 
 public int getPort() 
    Return the port number on which we listen for requests.
 public String getProtocolHandlerClassName() 
    Return the class name of the Coyote protocol handler in use.
 public String getProxyName() 
    Return the proxy server name for this Connector.
 public int getProxyPort() 
    Return the proxy server port for this Connector.
 public int getRedirectPort() 
    Return the port number to which a request should be redirected if it comes in on a non-SSL port and is subject to a security constraint with a transport guarantee that requires SSL.
 public String getScheme() 
    Return the scheme that will be assigned to requests received through this connector. Default value is "http".
 public boolean getSecure() 
    Return the secure connection flag that will be assigned to requests received through this connector. Default value is "false".
 public int getServerSocketTimeout() 
    Return the server socket timeout for this Connector.
 public Service getService() 
    Return the Service with which we are associated (if any).
 public boolean getTcpNoDelay() 
    Return the TCP no delay flag value.
 public boolean getTomcatAuthentication() 
 public String getURIEncoding() 
    Return the character encoding to be used for the URI.
 public boolean getUseBodyEncodingForURI() 
    Return the true if the entity body encoding should be used for the URI.
 public boolean getUseURIValidationHack() 
    Return the value of the Uri validation flag.
 public  void initialize() throws LifecycleException 
    Initialize this connector (create ServerSocket here!)
 public boolean isAvailable() 
    Is this connector available for processing requests?
 public  void postDeregister() 
 public  void postRegister(Boolean registrationDone) 
 public  void preDeregister() throws Exception 
 public ObjectName preRegister(MBeanServer server,
    ObjectName name) throws Exception 
 public  void removeLifecycleListener(LifecycleListener listener) 
    Remove a lifecycle event listener from this component.
 public  void setAcceptCount(int count) 
    Set the accept count for this Connector.
 public  void setAddress(String address) 
    Set the bind IP address for this Connector.
 public  void setAllowTrace(boolean allowTrace) 
    Set the allowTrace flag, to disable or enable the TRACE HTTP method.
 public  void setBufferSize(int bufferSize) 
    Set the input buffer size for this Connector.
 public  void setCompressableMimeType(String compressableMimeTypes) 
    Set the list of compressable MIME types.
 public  void setCompression(String compression) 
    Set the value of compression.
 public  void setConnectionLinger(int connectionLinger) 
    Set the connection linger for this Connector.
 public  void setConnectionTimeout(int connectionTimeout) 
    Set the connection timeout for this Connector.
 public  void setConnectionUploadTimeout(int connectionUploadTimeout) 
    Set the connection upload timeout for this Connector.
 public  void setContainer(Container container) 
    Set the Container used for processing requests received by this Connector.
 public  void setDebug(int debug) 
    Set the debugging detail level for this component.
 public  void setDisableUploadTimeout(boolean isDisabled) 
    Set the flag to specify upload time-out behavior.
 public  void setEnableLookups(boolean enableLookups) 
    Set the "enable DNS lookups" flag.
 public  void setFactory(ServerSocketFactory factory) 
    Set the server socket factory used by this Container.
 public  void setMaxHttpHeaderSize(int maxHttpHeaderSize) 
    Set the maximum permitted size of the HTTP request and response headers.
 public  void setMaxKeepAliveRequests(int mkar) 
    Set the maximum number of Keep-Alive requests to honor per connection.
 public  void setMaxProcessors(int maxProcessors) 
    Set the maximum number of processors allowed, or <0 for unlimited.
 public  void setMaxSpareProcessors(int maxSpareProcessors) 
    Set the maximum number of spare processors allowed.
 public  void setMinProcessors(int minProcessors) 
    Set the minimum number of processors to start at initialization.
 public  void setPort(int port) 
    Set the port number on which we listen for requests.
 public  void setProtocolHandlerClassName(String protocolHandlerClassName) 
    Set the class name of the Coyote protocol handler which will be used by the connector.
 public  void setProxyName(String proxyName) 
    Set the proxy server name for this Connector.
 public  void setProxyPort(int proxyPort) 
    Set the proxy server port for this Connector.
 public  void setRedirectPort(int redirectPort) 
    Set the redirect port number.
 public  void setScheme(String scheme) 
    Set the scheme that will be assigned to requests received through this connector.
 public  void setSecure(boolean secure) 
    Set the secure connection flag that will be assigned to requests received through this connector.
 public  void setServerSocketTimeout(int serverSocketTimeout) 
    Set the server socket timeout for this Connector.
 public  void setService(Service service) 
    Set the Service with which we are associated (if any).
 public  void setTcpNoDelay(boolean tcpNoDelay) 
    Set the TCP no delay flag which will be set on the socket after accepting a connection.
 public  void setTomcatAuthentication(boolean tomcatAuthentication) 
 public  void setURIEncoding(String URIEncoding) 
    Set the URI encoding to be used for the URI.
 public  void setUseBodyEncodingForURI(boolean useBodyEncodingForURI) 
    Set if the entity body encoding should be used for the URI.
 public  void setUseURIValidationHack(boolean useURIValidationHack) 
    Set the value of the Uri validation flag.
 public  void start() throws LifecycleException 
    Begin processing requests via this Connector.
 public  void stop() throws LifecycleException 
    Terminate processing requests via this Connector.