|
Apache Tomcat 6.0.53 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.coyote.AbstractProtocol org.apache.coyote.ajp.AjpProtocol
public class AjpProtocol
Abstract the protocol implementation, including threading, etc. Processor is single threaded and specific to stream-based protocols, will not fit Jk protocols like JNI.
Nested Class Summary | |
---|---|
protected static class |
AjpProtocol.AjpConnectionHandler
|
Field Summary | |
---|---|
protected java.util.Hashtable<java.lang.String,java.lang.Object> |
attributes
Configuration attributes. |
protected java.lang.String |
clientCertProvider
When client certificate information is presented in a form other than instances of X509Certificate it needs to be
converted before it can be used and this property controls which JSSE
provider is used to perform the conversion. |
protected java.lang.String |
domain
|
protected JIoEndpoint |
endpoint
Associated java.io endpoint. |
protected int |
keepAliveTimeout
The number of seconds Tomcat will wait for a subsequent request before closing the connection. |
protected static Log |
log
|
protected javax.management.MBeanServer |
mserver
|
protected javax.management.ObjectName |
oname
|
protected int |
packetSize
AJP packet size. |
protected int |
processorCache
Processor cache. |
protected java.lang.String |
requiredSecret
Required secret. |
protected javax.management.ObjectName |
rgOname
|
protected static StringManager |
sm
The string manager for this package. |
protected boolean |
tomcatAuthentication
Should authentication be done in the native webserver layer, or in the Servlet container ? |
protected javax.management.ObjectName |
tpOname
|
Constructor Summary | |
---|---|
AjpProtocol()
|
Method Summary | |
---|---|
void |
destroy()
|
Adapter |
getAdapter()
|
java.net.InetAddress |
getAddress()
|
java.lang.Object |
getAttribute(java.lang.String key)
|
java.util.Iterator<java.lang.String> |
getAttributeNames()
|
int |
getBacklog()
|
java.lang.String |
getClientCertProvider()
|
java.lang.String |
getDomain()
|
protected AbstractEndpoint |
getEndpoint()
|
java.util.concurrent.Executor |
getExecutor()
|
int |
getKeepAliveTimeout()
|
int |
getMaxThreads()
|
java.lang.String |
getName()
|
javax.management.ObjectName |
getObjectName()
|
int |
getPacketSize()
|
int |
getPort()
|
int |
getProcessorCache()
|
int |
getSoLinger()
|
int |
getSoTimeout()
|
boolean |
getTcpNoDelay()
|
int |
getThreadPriority()
|
boolean |
getTomcatAuthentication()
|
void |
init()
Start the protocol |
void |
pause()
Pause the protocol (optional). |
void |
postDeregister()
|
void |
postRegister(java.lang.Boolean registrationDone)
|
void |
preDeregister()
|
javax.management.ObjectName |
preRegister(javax.management.MBeanServer server,
javax.management.ObjectName name)
|
void |
resume()
Resume the protocol (optional). |
void |
setAdapter(Adapter adapter)
The adapter, used to call the connector |
void |
setAddress(java.net.InetAddress ia)
|
void |
setAttribute(java.lang.String name,
java.lang.Object value)
Pass config info |
void |
setBacklog(int backlog)
|
void |
setClientCertProvider(java.lang.String s)
|
void |
setExecutor(java.util.concurrent.Executor executor)
|
void |
setKeepAliveTimeout(int timeout)
|
void |
setMaxThreads(int maxThreads)
|
void |
setPacketSize(int packetSize)
|
void |
setPort(int port)
|
void |
setProcessorCache(int processorCache)
|
void |
setRequiredSecret(java.lang.String requiredSecret)
|
void |
setSoLinger(int soLinger)
|
void |
setSoTimeout(int soTimeout)
|
void |
setTcpNoDelay(boolean tcpNoDelay)
|
void |
setThreadPriority(int threadPriority)
|
void |
setTomcatAuthentication(boolean tomcatAuthentication)
|
void |
start()
Start the protocol. |
Methods inherited from class org.apache.coyote.AbstractProtocol |
---|
createName, getLocalPort, getMaxCookieCount, getMaxHeaderCount, getNameIndex, nextNameIndex, setMaxCookieCount, setMaxHeaderCount |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static Log log
protected static StringManager sm
protected javax.management.ObjectName tpOname
protected javax.management.ObjectName rgOname
protected JIoEndpoint endpoint
protected java.util.Hashtable<java.lang.String,java.lang.Object> attributes
protected int processorCache
protected boolean tomcatAuthentication
protected java.lang.String requiredSecret
protected int packetSize
protected int keepAliveTimeout
protected java.lang.String clientCertProvider
X509Certificate
it needs to be
converted before it can be used and this property controls which JSSE
provider is used to perform the conversion. For example it is used with
the AJP connectors, the HTTP APR connector and with the
SSLValve
. If not specified, the
default provider will be used.
protected java.lang.String domain
protected javax.management.ObjectName oname
protected javax.management.MBeanServer mserver
Constructor Detail |
---|
public AjpProtocol()
Method Detail |
---|
protected final AbstractEndpoint getEndpoint()
getEndpoint
in class AbstractProtocol
public void setAttribute(java.lang.String name, java.lang.Object value)
setAttribute
in interface ProtocolHandler
public java.lang.Object getAttribute(java.lang.String key)
getAttribute
in interface ProtocolHandler
public java.util.Iterator<java.lang.String> getAttributeNames()
getAttributeNames
in interface ProtocolHandler
public void setAdapter(Adapter adapter)
setAdapter
in interface ProtocolHandler
public Adapter getAdapter()
getAdapter
in interface ProtocolHandler
public void init() throws java.lang.Exception
init
in interface ProtocolHandler
java.lang.Exception
public void start() throws java.lang.Exception
ProtocolHandler
start
in interface ProtocolHandler
java.lang.Exception
public void pause() throws java.lang.Exception
ProtocolHandler
pause
in interface ProtocolHandler
java.lang.Exception
public void resume() throws java.lang.Exception
ProtocolHandler
resume
in interface ProtocolHandler
java.lang.Exception
public void destroy() throws java.lang.Exception
destroy
in interface ProtocolHandler
java.lang.Exception
public java.lang.String getName()
public int getProcessorCache()
public void setProcessorCache(int processorCache)
public java.util.concurrent.Executor getExecutor()
public void setExecutor(java.util.concurrent.Executor executor)
public int getMaxThreads()
public void setMaxThreads(int maxThreads)
public int getThreadPriority()
public void setThreadPriority(int threadPriority)
public int getBacklog()
public void setBacklog(int backlog)
public int getPort()
public void setPort(int port)
public java.net.InetAddress getAddress()
public void setAddress(java.net.InetAddress ia)
public boolean getTcpNoDelay()
public void setTcpNoDelay(boolean tcpNoDelay)
public int getSoLinger()
public void setSoLinger(int soLinger)
public int getSoTimeout()
public void setSoTimeout(int soTimeout)
public boolean getTomcatAuthentication()
public void setTomcatAuthentication(boolean tomcatAuthentication)
public void setRequiredSecret(java.lang.String requiredSecret)
public int getPacketSize()
public void setPacketSize(int packetSize)
public int getKeepAliveTimeout()
public void setKeepAliveTimeout(int timeout)
public java.lang.String getClientCertProvider()
public void setClientCertProvider(java.lang.String s)
public javax.management.ObjectName getObjectName()
public java.lang.String getDomain()
public javax.management.ObjectName preRegister(javax.management.MBeanServer server, javax.management.ObjectName name) throws java.lang.Exception
preRegister
in interface javax.management.MBeanRegistration
java.lang.Exception
public void postRegister(java.lang.Boolean registrationDone)
postRegister
in interface javax.management.MBeanRegistration
public void preDeregister() throws java.lang.Exception
preDeregister
in interface javax.management.MBeanRegistration
java.lang.Exception
public void postDeregister()
postDeregister
in interface javax.management.MBeanRegistration
|
Apache Tomcat 6.0.53 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |