org.apache.coyote.tomcat3
Class CoyoteInterceptor2
BaseInterceptor
org.apache.coyote.tomcat3.CoyoteInterceptor2
public class CoyoteInterceptor2
extends BaseInterceptor
Standalone http.
Connector properties:
- secure - will load a SSL socket factory and act as https server
Properties passed to the net layer:
- timeout
- backlog
- address
- port
Thread pool properties:
- minSpareThreads
- maxSpareThreads
- maxThreads
- poolOn
Properties for HTTPS:
- keystore - certificates - default to ~/.keystore
- keypass - password
- clientauth - true if the server should authenticate the client using certs
Properties for HTTP:
- reportedname - name of server sent back to browser (security purposes)
- compression - use gzip compression in HTTP 1.1 (on/off) - def off
- compressionMinSize - minimum size content to use gzip compression in HTTP 1.1 - def 2048
- noCompressionUserAgents - comma separated list of userAgents who didn't support gzip
- restrictedUserAgents - comma separated list of userAgents who didn't support HTTP 1.1 (use HTTP 1.0)
- compressableMimeTypes - comma separated list of mime types supported for compression - def text/html,text/xml,text/plain
void | engineInit(ContextManager cm) - Called when the ContextManger is started
|
void | engineShutdown(ContextManager cm)
|
void | engineStart(ContextManager cm) - Called when the ContextManger is started
|
Object | getInfo(Context ctx, org.apache.tomcat.core.Request request, int id, String key) - getInfo calls for SSL data
|
static boolean | isSSLAttribute(String key) - Check if a string is a reserved SSL attribute key.
|
int | postRequest(org.apache.tomcat.core.Request request, org.apache.tomcat.core.Response response)
|
int | preService(org.apache.tomcat.core.Request request, org.apache.tomcat.core.Response response) - Handle HTTP expectations.
|
void | setAttribute(String prop, Object value)
|
int | setInfo(Context ctx, org.apache.tomcat.core.Request request, int id, String key, String object)
|
void | setProcessorClassName(String pcn) - Set the class of the processor to use.
|
void | setProperty(String prop, String value)
|
CoyoteInterceptor2
public CoyoteInterceptor2()
engineInit
public void engineInit(ContextManager cm)
throws TomcatException
Called when the ContextManger is started
engineShutdown
public void engineShutdown(ContextManager cm)
throws TomcatException
engineStart
public void engineStart(ContextManager cm)
throws TomcatException
Called when the ContextManger is started
getInfo
public Object getInfo(Context ctx,
org.apache.tomcat.core.Request request,
int id,
String key)
getInfo calls for SSL data
- the requested data
isSSLAttribute
public static boolean isSSLAttribute(String key)
Check if a string is a reserved SSL attribute key.
postRequest
public int postRequest(org.apache.tomcat.core.Request request,
org.apache.tomcat.core.Response response)
preService
public int preService(org.apache.tomcat.core.Request request,
org.apache.tomcat.core.Response response)
Handle HTTP expectations.
setAttribute
public void setAttribute(String prop,
Object value)
setInfo
public int setInfo(Context ctx,
org.apache.tomcat.core.Request request,
int id,
String key,
String object)
setProcessorClassName
public void setProcessorClassName(String pcn)
Set the class of the processor to use.
setProperty
public void setProperty(String prop,
String value)
Copyright B) 2000-2003 Apache Software Foundation. All Rights Reserved.