|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.coyote.http11.Http11BaseProtocol
Abstract the protocol implementation, including threading, etc. Processor is single threaded and specific to stream-based protocols, will not fit Jk protocols like JNI.
Field Summary | |
protected java.util.Hashtable |
attributes
|
protected org.apache.coyote.http11.Http11BaseProtocol.Http11ConnectionHandler |
cHandler
|
protected PoolTcpEndpoint |
ep
|
protected static org.apache.commons.logging.Log |
log
|
protected boolean |
secure
|
protected static StringManager |
sm
The string manager for this package. |
protected ServerSocketFactory |
socketFactory
|
protected java.lang.String |
socketFactoryName
|
protected SSLImplementation |
sslImplementation
|
protected java.lang.String |
sslImplementationName
|
static int |
THREAD_DATA_OBJECT_NAME
|
static int |
THREAD_DATA_PROCESSOR
|
protected ThreadPool |
tp
|
Constructor Summary | |
Http11BaseProtocol()
|
Method Summary | |
protected org.apache.coyote.http11.Http11BaseProtocol.Http11ConnectionHandler |
createConnectionHandler()
|
void |
destroy()
|
Adapter |
getAdapter()
|
java.net.InetAddress |
getAddress()
|
java.lang.String |
getAlgorithm()
|
java.lang.Object |
getAttribute(java.lang.String key)
|
java.util.Iterator |
getAttributeNames()
|
int |
getBacklog()
|
java.lang.String |
getCiphers()
|
java.lang.String |
getClientauth()
|
java.lang.String |
getCompressableMimeType()
|
java.lang.String |
getCompression()
|
int |
getCompressionMinSize()
|
boolean |
getDisableUploadTimeout()
|
boolean |
getKeepAlive()
Return the Keep-Alive policy for the connection. |
java.lang.String |
getKeyAlias()
|
java.lang.String |
getKeypass()
|
java.lang.String |
getKeystore()
|
java.lang.String |
getKeytype()
|
int |
getMaxHeaderCount()
|
int |
getMaxHttpHeaderSize()
|
int |
getMaxKeepAliveRequests()
|
int |
getMaxSavePostSize()
|
int |
getMaxSpareThreads()
|
int |
getMaxThreads()
|
int |
getMinSpareThreads()
|
java.lang.String |
getName()
|
java.lang.String |
getNoCompressionUserAgents()
|
int |
getPort()
|
java.lang.String |
getProperty(java.lang.String name)
Get a property |
java.lang.String |
getProtocol()
|
java.lang.String |
getProtocols()
|
java.lang.String |
getReportedname()
|
java.lang.String |
getRestrictedUserAgents()
|
boolean |
getSecure()
|
java.lang.String |
getServer()
|
int |
getServerSoTimeout()
|
int |
getSocketBuffer()
|
int |
getSocketCloseDelay()
|
java.lang.String |
getSocketFactory()
|
int |
getSoLinger()
|
int |
getSoTimeout()
|
java.lang.String |
getSSLImplementation()
|
java.lang.String |
getStrategy()
|
boolean |
getTcpNoDelay()
|
int |
getThreadPriority()
|
int |
getTimeout()
|
void |
init()
Start the protocol |
void |
pause()
Pause the protocol (optional). |
void |
resume()
Resume the protocol (optional). |
void |
setAdapter(Adapter adapter)
The adapter, used to call the connector |
void |
setAddress(java.net.InetAddress ia)
|
void |
setAlgorithm(java.lang.String k)
|
void |
setAttribute(java.lang.String name,
java.lang.Object value)
Pass config info |
void |
setBacklog(int i)
|
void |
setCiphers(java.lang.String ciphers)
|
void |
setClientauth(java.lang.String k)
|
void |
setCompressableMimeType(java.lang.String valueS)
|
void |
setCompression(java.lang.String valueS)
|
void |
setCompressionMinSize(int valueI)
|
void |
setDisableUploadTimeout(boolean isDisabled)
|
void |
setKeepAlive(boolean keepAlive)
Set the keep-alive policy for this connection. |
void |
setKeyAlias(java.lang.String keyAlias)
|
void |
setKeypass(java.lang.String k)
|
void |
setKeystore(java.lang.String k)
|
void |
setKeytype(java.lang.String k)
|
void |
setMaxHeaderCount(int maxHeaderCount)
|
void |
setMaxHttpHeaderSize(int valueI)
|
void |
setMaxKeepAliveRequests(int mkar)
Set the maximum number of Keep-Alive requests that we will honor. |
void |
setMaxSavePostSize(int valueI)
|
void |
setMaxSpareThreads(int maxThreads)
|
void |
setMaxThreads(int maxThreads)
|
void |
setMinSpareThreads(int minSpareThreads)
|
void |
setNoCompressionUserAgents(java.lang.String valueS)
|
void |
setPort(int port)
|
void |
setProperty(java.lang.String name,
java.lang.String value)
Set a property. |
void |
setProtocol(java.lang.String k)
|
void |
setProtocols(java.lang.String k)
|
void |
setReportedname(java.lang.String reportedName)
|
void |
setRestrictedUserAgents(java.lang.String valueS)
|
void |
setSecure(boolean b)
|
void |
setServer(java.lang.String server)
|
void |
setServerSoTimeout(int i)
|
void |
setSocketBuffer(int valueI)
|
void |
setSocketCloseDelay(int d)
|
void |
setSocketFactory(java.lang.String valueS)
|
void |
setSoLinger(int i)
|
void |
setSoTimeout(int i)
|
void |
setSSLImplementation(java.lang.String valueS)
|
void |
setStrategy(java.lang.String strategy)
|
void |
setTcpNoDelay(boolean b)
|
void |
setThreadPriority(int threadPriority)
|
void |
setTimeout(int timeouts)
|
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 StringManager sm
protected ThreadPool tp
protected PoolTcpEndpoint ep
protected boolean secure
protected ServerSocketFactory socketFactory
protected SSLImplementation sslImplementation
protected java.util.Hashtable attributes
protected java.lang.String socketFactoryName
protected java.lang.String sslImplementationName
protected org.apache.coyote.http11.Http11BaseProtocol.Http11ConnectionHandler cHandler
public static final int THREAD_DATA_PROCESSOR
public static final int THREAD_DATA_OBJECT_NAME
protected static org.apache.commons.logging.Log log
Constructor Detail |
public Http11BaseProtocol()
Method Detail |
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 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 ProtocolHandler
public Adapter getAdapter()
getAdapter
in interface ProtocolHandler
protected org.apache.coyote.http11.Http11BaseProtocol.Http11ConnectionHandler createConnectionHandler()
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 int getMaxThreads()
public void setMaxThreads(int maxThreads)
public int getMaxSpareThreads()
public void setMaxSpareThreads(int maxThreads)
public int getMinSpareThreads()
public void setMinSpareThreads(int minSpareThreads)
public void setThreadPriority(int threadPriority)
public int getThreadPriority()
public void setStrategy(java.lang.String strategy)
public java.lang.String getStrategy()
public int getBacklog()
public void setBacklog(int i)
public int getPort()
public void setPort(int port)
public java.net.InetAddress getAddress()
public void setAddress(java.net.InetAddress ia)
public java.lang.String getName()
public java.lang.String getSocketFactory()
public void setSocketFactory(java.lang.String valueS)
public java.lang.String getSSLImplementation()
public void setSSLImplementation(java.lang.String valueS)
public boolean getTcpNoDelay()
public void setTcpNoDelay(boolean b)
public boolean getDisableUploadTimeout()
public void setDisableUploadTimeout(boolean isDisabled)
public int getSocketBuffer()
public void setSocketBuffer(int valueI)
public java.lang.String getCompression()
public void setCompression(java.lang.String valueS)
public int getMaxSavePostSize()
public void setMaxSavePostSize(int valueI)
public int getMaxHttpHeaderSize()
public void setMaxHttpHeaderSize(int valueI)
public int getMaxHeaderCount()
public void setMaxHeaderCount(int maxHeaderCount)
public java.lang.String getRestrictedUserAgents()
public void setRestrictedUserAgents(java.lang.String valueS)
public java.lang.String getNoCompressionUserAgents()
public void setNoCompressionUserAgents(java.lang.String valueS)
public java.lang.String getCompressableMimeType()
public void setCompressableMimeType(java.lang.String valueS)
public int getCompressionMinSize()
public void setCompressionMinSize(int valueI)
public int getSoLinger()
public void setSoLinger(int i)
public int getSoTimeout()
public void setSoTimeout(int i)
public int getServerSoTimeout()
public void setServerSoTimeout(int i)
public java.lang.String getKeystore()
public void setKeystore(java.lang.String k)
public java.lang.String getKeypass()
public void setKeypass(java.lang.String k)
public java.lang.String getKeytype()
public void setKeytype(java.lang.String k)
public java.lang.String getClientauth()
public void setClientauth(java.lang.String k)
public java.lang.String getProtocol()
public void setProtocol(java.lang.String k)
public java.lang.String getProtocols()
public void setProtocols(java.lang.String k)
public java.lang.String getAlgorithm()
public void setAlgorithm(java.lang.String k)
public boolean getSecure()
public void setSecure(boolean b)
public java.lang.String getCiphers()
public void setCiphers(java.lang.String ciphers)
public java.lang.String getKeyAlias()
public void setKeyAlias(java.lang.String keyAlias)
public int getMaxKeepAliveRequests()
public void setMaxKeepAliveRequests(int mkar)
public boolean getKeepAlive()
public void setKeepAlive(boolean keepAlive)
public int getSocketCloseDelay()
public void setSocketCloseDelay(int d)
public void setServer(java.lang.String server)
public java.lang.String getServer()
public int getTimeout()
public void setTimeout(int timeouts)
public java.lang.String getReportedname()
public void setReportedname(java.lang.String reportedName)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |