|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.coyote.ajp.AjpAprProtocol
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 |
AjpAprProtocol.AjpConnectionHandler
|
| Field Summary | |
protected java.util.Hashtable |
attributes
Configuration attributes. |
protected java.lang.String |
domain
|
protected AprEndpoint |
ep
Associated APR endpoint. |
protected static org.apache.commons.logging.Log |
log
|
protected javax.management.MBeanServer |
mserver
|
protected javax.management.ObjectName |
oname
|
protected int |
packetSize
AJP packet size. |
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 | |
AjpAprProtocol()
|
|
| Method Summary | |
void |
destroy()
|
Adapter |
getAdapter()
|
java.net.InetAddress |
getAddress()
|
java.lang.Object |
getAttribute(java.lang.String key)
|
java.util.Iterator |
getAttributeNames()
|
int |
getBacklog()
|
java.lang.String |
getDomain()
|
int |
getFirstReadTimeout()
|
int |
getMaxThreads()
|
java.lang.String |
getName()
|
javax.management.ObjectName |
getObjectName()
|
int |
getPacketSize()
|
int |
getPollerSize()
|
int |
getPollTime()
|
int |
getPort()
|
java.lang.String |
getProperty(java.lang.String name)
Get a property |
int |
getSoLinger()
|
int |
getSoTimeout()
|
boolean |
getTcpNoDelay()
|
int |
getThreadPriority()
|
boolean |
getTomcatAuthentication()
|
boolean |
getUseSendfile()
|
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 i)
|
void |
setFirstReadTimeout(int i)
|
void |
setMaxThreads(int maxThreads)
|
void |
setPacketSize(int packetSize)
|
void |
setPollerSize(int i)
|
void |
setPollTime(int i)
|
void |
setPort(int port)
|
void |
setProperty(java.lang.String name,
java.lang.String value)
Set a property. |
void |
setRequiredSecret(java.lang.String requiredSecret)
|
void |
setSoLinger(int i)
|
void |
setSoTimeout(int i)
|
void |
setTcpNoDelay(boolean b)
|
void |
setThreadPriority(int threadPriority)
|
void |
setTomcatAuthentication(boolean tomcatAuthentication)
|
void |
setUseSendfile(boolean useSendfile)
|
void |
start()
Start the protocol. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected static org.apache.commons.logging.Log log
protected static StringManager sm
protected javax.management.ObjectName tpOname
protected javax.management.ObjectName rgOname
protected AprEndpoint ep
protected java.util.Hashtable attributes
protected boolean tomcatAuthentication
protected java.lang.String requiredSecret
protected int packetSize
protected java.lang.String domain
protected javax.management.ObjectName oname
protected javax.management.MBeanServer mserver
| Constructor Detail |
public AjpAprProtocol()
| Method Detail |
public void setAttribute(java.lang.String name,
java.lang.Object value)
setAttribute in interface ProtocolHandlerpublic java.lang.Object getAttribute(java.lang.String key)
getAttribute in interface ProtocolHandlerpublic java.util.Iterator getAttributeNames()
getAttributeNames in interface ProtocolHandler
public void setProperty(java.lang.String name,
java.lang.String value)
public java.lang.String getProperty(java.lang.String name)
public void setAdapter(Adapter adapter)
setAdapter in interface ProtocolHandlerpublic Adapter getAdapter()
getAdapter in interface ProtocolHandler
public void init()
throws java.lang.Exception
init in interface ProtocolHandlerjava.lang.Exception
public void start()
throws java.lang.Exception
ProtocolHandler
start in interface ProtocolHandlerjava.lang.Exception
public void pause()
throws java.lang.Exception
ProtocolHandler
pause in interface ProtocolHandlerjava.lang.Exception
public void resume()
throws java.lang.Exception
ProtocolHandler
resume in interface ProtocolHandlerjava.lang.Exception
public void destroy()
throws java.lang.Exception
destroy in interface ProtocolHandlerjava.lang.Exceptionpublic int getMaxThreads()
public void setMaxThreads(int maxThreads)
public void setThreadPriority(int threadPriority)
public int getThreadPriority()
public int getBacklog()
public void setBacklog(int i)
public int getPort()
public void setPort(int port)
public boolean getUseSendfile()
public void setUseSendfile(boolean useSendfile)
public java.net.InetAddress getAddress()
public void setAddress(java.net.InetAddress ia)
public java.lang.String getName()
public boolean getTcpNoDelay()
public void setTcpNoDelay(boolean b)
public boolean getTomcatAuthentication()
public void setTomcatAuthentication(boolean tomcatAuthentication)
public int getFirstReadTimeout()
public void setFirstReadTimeout(int i)
public int getPollTime()
public void setPollTime(int i)
public void setPollerSize(int i)
public int getPollerSize()
public int getSoLinger()
public void setSoLinger(int i)
public int getSoTimeout()
public void setSoTimeout(int i)
public void setRequiredSecret(java.lang.String requiredSecret)
public int getPacketSize()
public void setPacketSize(int packetSize)
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.MBeanRegistrationjava.lang.Exceptionpublic void postRegister(java.lang.Boolean registrationDone)
postRegister in interface javax.management.MBeanRegistration
public void preDeregister()
throws java.lang.Exception
preDeregister in interface javax.management.MBeanRegistrationjava.lang.Exceptionpublic void postDeregister()
postDeregister in interface javax.management.MBeanRegistration
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||