org.apache.coyote.http11

Class Http11NioProtocol

public class Http11NioProtocol 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 Filip Hanik

Field Summary
protected Hashtableattributes
protected Stringdomain
protected NioEndpointep
protected static Loglog
protected MBeanServermserver
protected ObjectNameoname
protected intprocessorCache
protected booleansecure
protected static StringManagersm
The string manager for this package.
protected JSSEImplementationsslImplementation
Constructor Summary
Http11NioProtocol()
Method Summary
voiddestroy()
intgetAcceptorThreadPriority()
AdaptergetAdapter()
InetAddressgetAddress()
StringgetAlgorithm()
ObjectgetAttribute(String key)
IteratorgetAttributeNames()
intgetBacklog()
StringgetCiphers()
StringgetClientAuth()
StringgetClientauth()
StringgetCompressableMimeType()
StringgetCompression()
intgetCompressionMinSize()
booleangetDisableUploadTimeout()
StringgetDomain()
ExecutorgetExecutor()
booleangetKeepAlive()
Return the Keep-Alive policy for the connection.
StringgetKeyAlias()
StringgetKeypass()
StringgetKeystore()
StringgetKeystoreFile()
StringgetKeystorePass()
StringgetKeystoreType()
StringgetKeytype()
intgetMaxHttpHeaderSize()
intgetMaxKeepAliveRequests()
intgetMaxSavePostSize()
intgetMaxThreads()
StringgetName()
StringgetNoCompressionUserAgents()
ObjectNamegetObjectName()
intgetOomParachute()
intgetPollerThreadCount()
intgetPollerThreadPriority()
intgetPort()
intgetProcessorCache()
StringgetProperty(String name)
Get a property
StringgetProtocol()
StringgetRestrictedUserAgents()
booleangetSecure()
longgetSelectorTimeout()
StringgetServer()
intgetSocketBuffer()
intgetSocketCloseDelay()
intgetSoLinger()
intgetSoTimeout()
StringgetSslProtocol()
booleangetSSLEnabled()
booleangetTcpNoDelay()
intgetThreadPriority()
intgetTimeout()
StringgetTruststoreFile()
StringgetTruststorePass()
StringgetTruststoreType()
booleangetUseSendfile()
voidinit()
Start the protocol
voidpause()
voidpostDeregister()
voidpostRegister(Boolean registrationDone)
voidpreDeregister()
ObjectNamepreRegister(MBeanServer server, ObjectName name)
voidresume()
voidsetAcceptorThreadPriority(int threadPriority)
voidsetAdapter(Adapter adapter)
The adapter, used to call the connector
voidsetAddress(InetAddress ia)
voidsetAlgorithm(String s)
voidsetAttribute(String name, Object value)
Pass config info
voidsetBacklog(int i)
voidsetCiphers(String s)
voidsetClientAuth(String s)
voidsetClientauth(String s)
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.
voidsetKeyAlias(String s)
voidsetKeypass(String s)
voidsetKeystore(String s)
voidsetKeystoreFile(String s)
voidsetKeystorePass(String s)
voidsetKeystoreType(String s)
voidsetKeytype(String s)
voidsetMaxHttpHeaderSize(int valueI)
voidsetMaxKeepAliveRequests(int mkar)
Set the maximum number of Keep-Alive requests that we will honor.
voidsetMaxSavePostSize(int valueI)
voidsetMaxThreads(int maxThreads)
voidsetNoCompressionUserAgents(String valueS)
voidsetOomParachute(int oomParachute)
voidsetPollerThreadCount(int count)
voidsetPollerThreadPriority(int threadPriority)
voidsetPort(int port)
voidsetProcessorCache(int processorCache)
booleansetProperty(String name, String value)
Set a property.
voidsetProtocol(String k)
voidsetRestrictedUserAgents(String valueS)
voidsetSecure(boolean b)
voidsetSelectorTimeout(long timeout)
voidsetServer(String server)
voidsetSocketBuffer(int valueI)
voidsetSocketCloseDelay(int d)
voidsetSoLinger(int i)
voidsetSoTimeout(int i)
voidsetSslProtocol(String s)
voidsetSSLEnabled(boolean SSLEnabled)
voidsetTcpNoDelay(boolean b)
voidsetThreadPriority(int threadPriority)
voidsetTimeout(int timeouts)
voidsetTruststoreFile(String f)
voidsetTruststorePass(String p)
voidsetTruststoreType(String t)
voidsetUseExecutor(boolean useexec)
voidsetUseSendfile(boolean useSendfile)
voidstart()

Field Detail

attributes

protected Hashtable attributes

domain

protected String domain

ep

protected NioEndpoint ep

log

protected static Log log

mserver

protected MBeanServer mserver

oname

protected ObjectName oname

processorCache

protected int processorCache

secure

protected boolean secure

sm

protected static StringManager sm
The string manager for this package.

sslImplementation

protected JSSEImplementation sslImplementation

Constructor Detail

Http11NioProtocol

public Http11NioProtocol()

Method Detail

destroy

public void destroy()

getAcceptorThreadPriority

public int getAcceptorThreadPriority()

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()

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.

getKeyAlias

public String getKeyAlias()

getKeypass

public String getKeypass()

getKeystore

public String getKeystore()

getKeystoreFile

public String getKeystoreFile()

getKeystorePass

public String getKeystorePass()

getKeystoreType

public String getKeystoreType()

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()

getOomParachute

public int getOomParachute()

getPollerThreadCount

public int getPollerThreadCount()

getPollerThreadPriority

public int getPollerThreadPriority()

getPort

public int getPort()

getProcessorCache

public int getProcessorCache()

getProperty

public String getProperty(String name)
Get a property

getProtocol

public String getProtocol()

getRestrictedUserAgents

public String getRestrictedUserAgents()

getSecure

public boolean getSecure()

getSelectorTimeout

public long getSelectorTimeout()

getServer

public String getServer()

getSocketBuffer

public int getSocketBuffer()

getSocketCloseDelay

public int getSocketCloseDelay()

getSoLinger

public int getSoLinger()

getSoTimeout

public int getSoTimeout()

getSslProtocol

public String getSslProtocol()

getSSLEnabled

public boolean getSSLEnabled()

getTcpNoDelay

public boolean getTcpNoDelay()

getThreadPriority

public int getThreadPriority()

getTimeout

public int getTimeout()

getTruststoreFile

public String getTruststoreFile()

getTruststorePass

public String getTruststorePass()

getTruststoreType

public String getTruststoreType()

getUseSendfile

public boolean getUseSendfile()

init

public void init()
Start the protocol

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()

setAcceptorThreadPriority

public void setAcceptorThreadPriority(int threadPriority)

setAdapter

public void setAdapter(Adapter adapter)
The adapter, used to call the connector

setAddress

public void setAddress(InetAddress ia)

setAlgorithm

public void setAlgorithm(String s)

setAttribute

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

setBacklog

public void setBacklog(int i)

setCiphers

public void setCiphers(String s)

setClientAuth

public void setClientAuth(String s)

setClientauth

public void setClientauth(String s)

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.

setKeyAlias

public void setKeyAlias(String s)

setKeypass

public void setKeypass(String s)

setKeystore

public void setKeystore(String s)

setKeystoreFile

public void setKeystoreFile(String s)

setKeystorePass

public void setKeystorePass(String s)

setKeystoreType

public void setKeystoreType(String s)

setKeytype

public void setKeytype(String s)

setMaxHttpHeaderSize

public void setMaxHttpHeaderSize(int valueI)

setMaxKeepAliveRequests

public void setMaxKeepAliveRequests(int mkar)
Set the maximum number of Keep-Alive requests that we will honor.

setMaxSavePostSize

public void setMaxSavePostSize(int valueI)

setMaxThreads

public void setMaxThreads(int maxThreads)

setNoCompressionUserAgents

public void setNoCompressionUserAgents(String valueS)

setOomParachute

public void setOomParachute(int oomParachute)

setPollerThreadCount

public void setPollerThreadCount(int count)

setPollerThreadPriority

public void setPollerThreadPriority(int threadPriority)

setPort

public void setPort(int port)

setProcessorCache

public void setProcessorCache(int processorCache)

setProperty

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

setProtocol

public void setProtocol(String k)

setRestrictedUserAgents

public void setRestrictedUserAgents(String valueS)

setSecure

public void setSecure(boolean b)

setSelectorTimeout

public void setSelectorTimeout(long timeout)

setServer

public void setServer(String server)

setSocketBuffer

public void setSocketBuffer(int valueI)

setSocketCloseDelay

public void setSocketCloseDelay(int d)

setSoLinger

public void setSoLinger(int i)

setSoTimeout

public void setSoTimeout(int i)

setSslProtocol

public void setSslProtocol(String s)

setSSLEnabled

public void setSSLEnabled(boolean SSLEnabled)

setTcpNoDelay

public void setTcpNoDelay(boolean b)

setThreadPriority

public void setThreadPriority(int threadPriority)

setTimeout

public void setTimeout(int timeouts)

setTruststoreFile

public void setTruststoreFile(String f)

setTruststorePass

public void setTruststorePass(String p)

setTruststoreType

public void setTruststoreType(String t)

setUseExecutor

public void setUseExecutor(boolean useexec)

setUseSendfile

public void setUseSendfile(boolean useSendfile)

start

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