|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.coyote.http11.Http11Protocol
public class Http11Protocol
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 Adapter |
adapter
|
protected Hashtable |
attributes
|
protected boolean |
blocking
|
protected String |
compression
Compression value. |
protected boolean |
disableUploadTimeout
|
protected String |
domain
|
protected PoolTcpEndpoint |
ep
|
protected static com.sun.org.apache.commons.logging.Log |
log
|
protected int |
maxHttpHeaderSize
|
protected int |
maxPostSize
|
protected MBeanServer |
mserver
|
protected ObjectName |
oname
|
protected int |
requestBufferSize
The input request buffer size. |
protected boolean |
secure
|
protected String |
selectorThreadImpl
The SelectorThread implementation class. |
protected static StringManager |
sm
The string manager for this package. |
protected int |
socketCloseDelay
|
protected ServerSocketFactory |
socketFactory
|
protected String |
socketFactoryName
|
protected SSLImplementation |
sslImplementation
|
protected String |
sslImplementationName
|
static int |
THREAD_DATA_OBJECT_NAME
|
static int |
THREAD_DATA_PROCESSOR
|
protected int |
timeout
|
protected ThreadPool |
tp
|
| Constructor Summary | |
|---|---|
Http11Protocol()
|
|
Http11Protocol(boolean secure,
boolean blocking,
String selectorThreadImpl)
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected boolean blocking
protected String selectorThreadImpl
SelectorThread implementation class. Not used when
Coyote is used.
protected static final StringManager sm
protected ThreadPool tp
protected PoolTcpEndpoint ep
protected boolean secure
protected ServerSocketFactory socketFactory
protected SSLImplementation sslImplementation
protected Hashtable attributes
protected String socketFactoryName
protected String sslImplementationName
protected int timeout
protected int maxPostSize
protected int maxHttpHeaderSize
protected int socketCloseDelay
protected boolean disableUploadTimeout
protected Adapter adapter
protected int requestBufferSize
protected String compression
public static final int THREAD_DATA_PROCESSOR
public static final int THREAD_DATA_OBJECT_NAME
protected static final com.sun.org.apache.commons.logging.Log log
protected String domain
protected ObjectName oname
protected MBeanServer mserver
| Constructor Detail |
|---|
public Http11Protocol()
public Http11Protocol(boolean secure,
boolean blocking,
String selectorThreadImpl)
| Method Detail |
|---|
protected void create()
public int getMaxHttpHeaderSize()
public void setMaxHttpHeaderSize(int valueI)
public void setAttribute(String name,
Object value)
setAttribute in interface ProtocolHandlerpublic Object getAttribute(String key)
getAttribute in interface ProtocolHandler
public void setProperty(String name,
String value)
public String getProperty(String name)
public void setAdapter(Adapter adapter)
setAdapter in interface ProtocolHandlerpublic Adapter getAdapter()
getAdapter in interface ProtocolHandler
public void init()
throws Exception
init in interface ProtocolHandlerException
public void start()
throws Exception
ProtocolHandler
start in interface ProtocolHandlerException
public void destroy()
throws Exception
destroy in interface ProtocolHandlerExceptionpublic boolean getPools()
public void setPools(boolean t)
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 int getBacklog()
public void setBacklog(int i)
public int getPort()
public void setPort(int port)
public InetAddress getAddress()
public void setAddress(InetAddress ia)
public String getSocketFactory()
public void setSocketFactory(String valueS)
public String getSSLImplementation()
public void setSSLImplementation(String valueS)
public boolean getTcpNoDelay()
public void setTcpNoDelay(boolean b)
public boolean getDisableUploadTimeout()
public void setDisableUploadTimeout(boolean isDisabled)
public String getCompression()
public void setCompression(String valueS)
public int getMaxPostSize()
public void setMaxPostSize(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 String getKeystore()
public void setKeystore(String k)
public String getKeypass()
public void setKeypass(String k)
public String getKeytype()
public void setKeytype(String k)
public void setTruststore(String truststore)
public void setTruststoreType(String truststoreType)
public String getClientauth()
public void setClientauth(String k)
public String getProtocol()
public void setProtocol(String k)
public String getProtocols()
public void setProtocols(String k)
public String getAlgorithm()
public void setAlgorithm(String k)
public boolean getSecure()
public void setSecure(boolean b)
public boolean getBlocking()
public void setBlocking(boolean b)
public String getCiphers()
public void setCiphers(String ciphers)
public String getKeyAlias()
public void setKeyAlias(String keyAlias)
public int getMaxKeepAliveRequests()
public void setMaxKeepAliveRequests(int mkar)
public int getSocketCloseDelay()
public void setSocketCloseDelay(int d)
protected static ServerSocketFactory string2SocketFactory(String val)
throws ClassNotFoundException,
IllegalAccessException,
InstantiationException
ClassNotFoundException
IllegalAccessException
InstantiationExceptionpublic int getTimeout()
public void setTimeout(int timeouts)
public String getReportedname()
public void setReportedname(String reportedName)
public ObjectName getObjectName()
public String getDomain()
public ObjectName preRegister(MBeanServer server,
ObjectName name)
throws Exception
preRegister in interface MBeanRegistrationExceptionpublic void postRegister(Boolean registrationDone)
postRegister in interface MBeanRegistration
public void preDeregister()
throws Exception
preDeregister in interface MBeanRegistrationExceptionpublic void postDeregister()
postDeregister in interface MBeanRegistrationpublic void setBufferSize(int requestBufferSize)
public int getBufferSize()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||