org.apache.coyote.http11

Class Http11Protocol

public class Http11Protocol extends Object implements ProtocolHandler, MBeanRegistration

Abstract the protocol implementation, including threading, etc. Processor is single threaded and specific to stream-based protocols, will not fit Jk protocols like JNI.

Author: Remy Maucherat Costin Manolache

Nested Class Summary
protected static classHttp11Protocol.Http11ConnectionHandler
Field Summary
protected Adapteradapter
The adapter, used to call the connector.
protected HashMap<String,Object>attributes
protected Http11Protocol.Http11ConnectionHandlercHandler
protected StringcompressableMimeTypes
protected Stringcompression
Integrated compression support.
protected intcompressionMinSize
protected booleandisableUploadTimeout
If true, the regular socket timeout will be used for the full duration of the connection.
protected Stringdomain
protected JIoEndpointendpoint
protected intkeepAliveTimeout
The number of seconds Tomcat will wait for a subsequent request before closing the connection.
protected static Loglog
protected intmaxHttpHeaderSize
Maximum size of the HTTP message header.
protected intmaxKeepAliveRequests
Maximum number of requests which can be performed over a keepalive connection.
protected intmaxSavePostSize
Maximum size of the post which will be saved when processing certain requests, such as a POST.
protected MBeanServermserver
protected StringnoCompressionUserAgents
protected ObjectNameoname
protected intprocessorCache
Processor cache.
protected StringrestrictedUserAgents
User agents regular expressions which should be restricted to HTTP/1.0 support.
protected ObjectNamergOname
protected booleansecure
This field indicates if the protocol is secure from the perspective of the client (= https is used).
protected Stringserver
Server header.
protected static StringManagersm
The string manager for this package.
protected intsocketBuffer
protected ServerSocketFactorysocketFactory
protected StringsocketFactoryName
Name of the socket factory.
protected SSLImplementationsslImplementation
protected StringsslImplementationName
Name of the SSL implementation.
protected booleanSSLEnabled
protected inttimeout
This timeout represents the socket timeout which will be used while the adapter execution is in progress, unless disableUploadTimeout is set to true.
protected ObjectNametpOname
Constructor Summary
Http11Protocol()
Method Summary
voiddestroy()
AdaptergetAdapter()
InetAddressgetAddress()
StringgetAlgorithm()
ObjectgetAttribute(String key)
IteratorgetAttributeNames()
intgetBacklog()
StringgetCiphers()
StringgetClientauth()
StringgetCompressableMimeType()
StringgetCompression()
intgetCompressionMinSize()
booleangetDisableUploadTimeout()
StringgetDomain()
ExecutorgetExecutor()
booleangetKeepAlive()
Return the Keep-Alive policy for the connection.
intgetKeepAliveTimeout()
StringgetKeyAlias()
StringgetKeypass()
StringgetKeystore()
StringgetKeytype()
intgetMaxHttpHeaderSize()
intgetMaxKeepAliveRequests()
intgetMaxSavePostSize()
intgetMaxThreads()
StringgetName()
StringgetNoCompressionUserAgents()
ObjectNamegetObjectName()
intgetPort()
intgetProcessorCache()
StringgetProperty(String name)
Get a property
StringgetProtocols()
StringgetRestrictedUserAgents()
booleangetSecure()
StringgetServer()
intgetSocketBuffer()
StringgetSocketFactory()
intgetSoLinger()
intgetSoTimeout()
StringgetSSLImplementation()
booleangetTcpNoDelay()
intgetThreadPriority()
intgetTimeout()
intgetUnlockTimeout()
voidinit()
booleanisSSLEnabled()
voidpause()
voidpostDeregister()
voidpostRegister(Boolean registrationDone)
voidpreDeregister()
ObjectNamepreRegister(MBeanServer server, ObjectName name)
voidresume()
voidsetAdapter(Adapter adapter)
voidsetAddress(InetAddress ia)
voidsetAlgorithm(String k)
voidsetAttribute(String name, Object value)
Pass config info
voidsetBacklog(int backlog)
voidsetCiphers(String ciphers)
voidsetClientauth(String k)
voidsetCompressableMimeType(String valueS)
voidsetCompression(String valueS)
voidsetCompressionMinSize(int valueI)
voidsetDisableUploadTimeout(boolean isDisabled)
voidsetExecutor(Executor executor)
voidsetKeepAlive(boolean keepAlive)
Set the keep-alive policy for this connection.
voidsetKeepAliveTimeout(int timeout)
voidsetKeyAlias(String keyAlias)
voidsetKeypass(String k)
voidsetKeystore(String k)
voidsetKeytype(String k)
voidsetMaxHttpHeaderSize(int valueI)
voidsetMaxKeepAliveRequests(int mkar)
voidsetMaxSavePostSize(int valueI)
voidsetMaxThreads(int maxThreads)
voidsetNoCompressionUserAgents(String valueS)
voidsetPort(int port)
voidsetProcessorCache(int processorCache)
voidsetProperty(String name, String value)
Set a property.
voidsetProtocols(String k)
voidsetRestrictedUserAgents(String valueS)
voidsetSecure(boolean b)
voidsetServer(String server)
voidsetSocketBuffer(int socketBuffer)
voidsetSocketFactory(String valueS)
voidsetSoLinger(int soLinger)
voidsetSoTimeout(int soTimeout)
voidsetSSLEnabled(boolean SSLEnabled)
voidsetSSLImplementation(String valueS)
voidsetTcpNoDelay(boolean tcpNoDelay)
voidsetThreadPriority(int threadPriority)
voidsetTimeout(int timeout)
voidsetUnlockTimeout(int unlockTimeout)
voidstart()

Field Detail

adapter

protected Adapter adapter
The adapter, used to call the connector.

attributes

protected HashMap<String,Object> attributes

cHandler

protected Http11Protocol.Http11ConnectionHandler cHandler

compressableMimeTypes

protected String compressableMimeTypes

compression

protected String compression
Integrated compression support.

compressionMinSize

protected int compressionMinSize

disableUploadTimeout

protected boolean disableUploadTimeout
If true, the regular socket timeout will be used for the full duration of the connection.

domain

protected String domain

endpoint

protected JIoEndpoint endpoint

keepAliveTimeout

protected int keepAliveTimeout
The number of seconds Tomcat will wait for a subsequent request before closing the connection. The default is the same as for Apache HTTP Server (15 000 milliseconds).

log

protected static Log log

maxHttpHeaderSize

protected int maxHttpHeaderSize
Maximum size of the HTTP message header.

maxKeepAliveRequests

protected int maxKeepAliveRequests
Maximum number of requests which can be performed over a keepalive connection. The default is the same as for Apache HTTP Server.

maxSavePostSize

protected int maxSavePostSize
Maximum size of the post which will be saved when processing certain requests, such as a POST.

mserver

protected MBeanServer mserver

noCompressionUserAgents

protected String noCompressionUserAgents

oname

protected ObjectName oname

processorCache

protected int processorCache
Processor cache.

restrictedUserAgents

protected String restrictedUserAgents
User agents regular expressions which should be restricted to HTTP/1.0 support.

rgOname

protected ObjectName rgOname

secure

protected boolean secure
This field indicates if the protocol is secure from the perspective of the client (= https is used).

server

protected String server
Server header.

sm

protected static StringManager sm
The string manager for this package.

socketBuffer

protected int socketBuffer

socketFactory

protected ServerSocketFactory socketFactory

socketFactoryName

protected String socketFactoryName
Name of the socket factory.

sslImplementation

protected SSLImplementation sslImplementation

sslImplementationName

protected String sslImplementationName
Name of the SSL implementation.

SSLEnabled

protected boolean SSLEnabled

timeout

protected int timeout
This timeout represents the socket timeout which will be used while the adapter execution is in progress, unless disableUploadTimeout is set to true. The default is the same as for Apache HTTP Server (300 000 milliseconds).

tpOname

protected ObjectName tpOname

Constructor Detail

Http11Protocol

public Http11Protocol()

Method Detail

destroy

public void destroy()

getAdapter

public Adapter getAdapter()

getAddress

public InetAddress getAddress()

getAlgorithm

public String getAlgorithm()

getAttribute

public Object getAttribute(String key)

getAttributeNames

public Iterator getAttributeNames()

getBacklog

public int getBacklog()

getCiphers

public String getCiphers()

getClientauth

public String getClientauth()

getCompressableMimeType

public String getCompressableMimeType()

getCompression

public String getCompression()

getCompressionMinSize

public int getCompressionMinSize()

getDisableUploadTimeout

public boolean getDisableUploadTimeout()

getDomain

public String getDomain()

getExecutor

public Executor getExecutor()

getKeepAlive

public boolean getKeepAlive()
Return the Keep-Alive policy for the connection.

getKeepAliveTimeout

public int getKeepAliveTimeout()

getKeyAlias

public String getKeyAlias()

getKeypass

public String getKeypass()

getKeystore

public String getKeystore()

getKeytype

public String getKeytype()

getMaxHttpHeaderSize

public int getMaxHttpHeaderSize()

getMaxKeepAliveRequests

public int getMaxKeepAliveRequests()

getMaxSavePostSize

public int getMaxSavePostSize()

getMaxThreads

public int getMaxThreads()

getName

public String getName()

getNoCompressionUserAgents

public String getNoCompressionUserAgents()

getObjectName

public ObjectName getObjectName()

getPort

public int getPort()

getProcessorCache

public int getProcessorCache()

getProperty

public String getProperty(String name)
Get a property

getProtocols

public String getProtocols()

getRestrictedUserAgents

public String getRestrictedUserAgents()

getSecure

public boolean getSecure()

getServer

public String getServer()

getSocketBuffer

public int getSocketBuffer()

getSocketFactory

public String getSocketFactory()

getSoLinger

public int getSoLinger()

getSoTimeout

public int getSoTimeout()

getSSLImplementation

public String getSSLImplementation()

getTcpNoDelay

public boolean getTcpNoDelay()

getThreadPriority

public int getThreadPriority()

getTimeout

public int getTimeout()

getUnlockTimeout

public int getUnlockTimeout()

init

public void init()

isSSLEnabled

public boolean isSSLEnabled()

pause

public void pause()

postDeregister

public void postDeregister()

postRegister

public void postRegister(Boolean registrationDone)

preDeregister

public void preDeregister()

preRegister

public ObjectName preRegister(MBeanServer server, ObjectName name)

resume

public void resume()

setAdapter

public void setAdapter(Adapter adapter)

setAddress

public void setAddress(InetAddress ia)

setAlgorithm

public void setAlgorithm(String k)

setAttribute

public void setAttribute(String name, Object value)
Pass config info

setBacklog

public void setBacklog(int backlog)

setCiphers

public void setCiphers(String ciphers)

setClientauth

public void setClientauth(String k)

setCompressableMimeType

public void setCompressableMimeType(String valueS)

setCompression

public void setCompression(String valueS)

setCompressionMinSize

public void setCompressionMinSize(int valueI)

setDisableUploadTimeout

public void setDisableUploadTimeout(boolean isDisabled)

setExecutor

public void setExecutor(Executor executor)

setKeepAlive

public void setKeepAlive(boolean keepAlive)
Set the keep-alive policy for this connection.

setKeepAliveTimeout

public void setKeepAliveTimeout(int timeout)

setKeyAlias

public void setKeyAlias(String keyAlias)

setKeypass

public void setKeypass(String k)

setKeystore

public void setKeystore(String k)

setKeytype

public void setKeytype(String k)

setMaxHttpHeaderSize

public void setMaxHttpHeaderSize(int valueI)

setMaxKeepAliveRequests

public void setMaxKeepAliveRequests(int mkar)

setMaxSavePostSize

public void setMaxSavePostSize(int valueI)

setMaxThreads

public void setMaxThreads(int maxThreads)

setNoCompressionUserAgents

public void setNoCompressionUserAgents(String valueS)

setPort

public void setPort(int port)

setProcessorCache

public void setProcessorCache(int processorCache)

setProperty

public void setProperty(String name, String value)
Set a property.

setProtocols

public void setProtocols(String k)

setRestrictedUserAgents

public void setRestrictedUserAgents(String valueS)

setSecure

public void setSecure(boolean b)

setServer

public void setServer(String server)

setSocketBuffer

public void setSocketBuffer(int socketBuffer)

setSocketFactory

public void setSocketFactory(String valueS)

setSoLinger

public void setSoLinger(int soLinger)

setSoTimeout

public void setSoTimeout(int soTimeout)

setSSLEnabled

public void setSSLEnabled(boolean SSLEnabled)

setSSLImplementation

public void setSSLImplementation(String valueS)

setTcpNoDelay

public void setTcpNoDelay(boolean tcpNoDelay)

setThreadPriority

public void setThreadPriority(int threadPriority)

setTimeout

public void setTimeout(int timeout)

setUnlockTimeout

public void setUnlockTimeout(int unlockTimeout)

start

public void start()
Copyright © 2000-2011 Apache Software Foundation. All Rights Reserved.