Apache Tomcat 7.0.2

org.apache.coyote.http11
Class AbstractHttp11Protocol

java.lang.Object
  extended by org.apache.coyote.http11.AbstractHttp11Protocol
All Implemented Interfaces:
MBeanRegistration, ProtocolHandler
Direct Known Subclasses:
Http11NioProtocol, Http11Protocol

public abstract class AbstractHttp11Protocol
extends Object
implements ProtocolHandler, MBeanRegistration


Field Summary
protected  Adapter adapter
          The adapter, used to call the connector.
protected  HashMap<String,Object> attributes
           
protected  String domain
           
protected  AbstractEndpoint endpoint
           
protected  MBeanServer mserver
           
protected  ObjectName oname
           
protected  ObjectName rgOname
           
protected static StringManager sm
          The string manager for this package.
protected  SSLImplementation sslImplementation
           
protected  ObjectName tpOname
           
 
Constructor Summary
AbstractHttp11Protocol()
           
 
Method Summary
 void destroy()
          Destroy the protocol (optional).
 Adapter getAdapter()
           
 InetAddress getAddress()
           
 String getAlgorithm()
           
 String getAllowUnsafeLegacyRenegotiation()
           
 Object getAttribute(String key)
           
 Iterator<String> getAttributeNames()
           
 int getBacklog()
           
 String getCiphers()
           
 String getClientAuth()
           
 String getCompressableMimeType()
           
 String getCompressableMimeTypes()
           
 String getCompression()
           
 int getCompressionMinSize()
           
 int getConnectionTimeout()
           
 String getCrlFile()
           
 boolean getDisableUploadTimeout()
           
 String getDomain()
           
 Executor getExecutor()
          The executor, provide access to the underlying thread pool.
 boolean getKeepAlive()
          Return the Keep-Alive policy for the connection.
 int getKeepAliveTimeout()
           
 String getKeyAlias()
           
 String getKeyPass()
           
 String getKeystoreFile()
           
 String getKeystorePass()
           
 String getKeystoreProvider()
           
 String getKeystoreType()
           
protected abstract  Log getLog()
           
 int getMaxHttpHeaderSize()
           
 int getMaxKeepAliveRequests()
          Maximum number of requests which can be performed over a keepalive connection.
 int getMaxSavePostSize()
           
 int getMaxThreads()
           
 String getName()
           
 String getNoCompressionUserAgents()
           
 ObjectName getObjectName()
           
 int getPort()
           
 int getProcessorCache()
           
 String getProperty(String name)
          Get a property
 String getRestrictedUserAgents()
           
 boolean getSecure()
           
 String getServer()
           
 String getSessionCacheSize()
           
 String getSessionTimeout()
           
 int getSocketBuffer()
           
 int getSoLinger()
           
 int getSoTimeout()
           
 String getSslProtocol()
           
 boolean getTcpNoDelay()
           
 int getThreadPriority()
           
 int getTimeout()
           
 String getTrustMaxCertLength()
           
 String getTruststoreAlgorithm()
           
 String getTruststoreFile()
           
 String getTruststorePass()
           
 String getTruststoreProvider()
           
 String getTruststoreType()
           
abstract  void init()
          Initialise the protocol.
 boolean isSSLEnabled()
           
 void pause()
          Pause the protocol (optional).
 void postDeregister()
           
 void postRegister(Boolean registrationDone)
           
 void preDeregister()
           
 ObjectName preRegister(MBeanServer server, ObjectName name)
           
 void resume()
          Resume the protocol (optional).
 void setAdapter(Adapter adapter)
          The adapter, used to call the connector.
 void setAddress(InetAddress ia)
           
 void setAlgorithm(String s)
           
 void setAllowUnsafeLegacyRenegotiation(String s)
           
 void setAttribute(String name, Object value)
          Pass config info
 void setBacklog(int backlog)
           
 void setCiphers(String s)
           
 void setClientAuth(String s)
           
 void setCompressableMimeType(String valueS)
           
 void setCompressableMimeTypes(String valueS)
           
 void setCompression(String valueS)
           
 void setCompressionMinSize(int valueI)
           
 void setConnectionTimeout(int timeout)
           
 void setCrlFile(String s)
           
 void setDisableUploadTimeout(boolean isDisabled)
           
 void setExecutor(Executor executor)
           
 void setKeepAlive(boolean keepAlive)
          Set the keep-alive policy for this connection.
 void setKeepAliveTimeout(int keepAliveTimeout)
           
 void setKeyAlias(String s)
           
 void setKeyPass(String s)
           
 void setKeystoreFile(String s)
           
 void setKeystorePass(String s)
           
 void setKeystoreProvider(String s)
           
 void setKeystoreType(String s)
           
 void setMaxHttpHeaderSize(int valueI)
           
 void setMaxKeepAliveRequests(int mkar)
           
 void setMaxSavePostSize(int valueI)
           
 void setMaxThreads(int maxThreads)
           
 void setNoCompressionUserAgents(String valueS)
           
 void setPort(int port)
           
 void setProcessorCache(int processorCache)
           
 boolean setProperty(String name, String value)
          Set a property.
 void setRestrictedUserAgents(String valueS)
           
 void setSecure(boolean b)
           
 void setServer(String server)
           
 void setSessionCacheSize(String s)
           
 void setSessionTimeout(String s)
           
 void setSocketBuffer(int socketBuffer)
           
 void setSoLinger(int soLinger)
           
 void setSoTimeout(int i)
           
 void setSSLEnabled(boolean SSLEnabled)
           
 void setSslProtocol(String s)
           
 void setTcpNoDelay(boolean tcpNoDelay)
           
 void setThreadPriority(int threadPriority)
           
 void setTimeout(int timeout)
           
 void setTrustMaxCertLength(String s)
           
 void setTruststoreAlgorithm(String a)
           
 void setTruststoreFile(String f)
           
 void setTruststorePass(String p)
           
 void setTruststoreProvider(String t)
           
 void setTruststoreType(String t)
           
abstract  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

sm

protected static final StringManager sm
The string manager for this package.


tpOname

protected ObjectName tpOname

rgOname

protected ObjectName rgOname

endpoint

protected AbstractEndpoint endpoint

sslImplementation

protected SSLImplementation sslImplementation

adapter

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


attributes

protected HashMap<String,Object> attributes

domain

protected String domain

oname

protected ObjectName oname

mserver

protected MBeanServer mserver
Constructor Detail

AbstractHttp11Protocol

public AbstractHttp11Protocol()
Method Detail

getLog

protected abstract Log getLog()

setAdapter

public void setAdapter(Adapter adapter)
Description copied from interface: ProtocolHandler
The adapter, used to call the connector.

Specified by:
setAdapter in interface ProtocolHandler

getAdapter

public Adapter getAdapter()
Specified by:
getAdapter in interface ProtocolHandler

setAttribute

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

Specified by:
setAttribute in interface ProtocolHandler

getAttribute

public Object getAttribute(String key)
Specified by:
getAttribute in interface ProtocolHandler

getAttributeNames

public Iterator<String> getAttributeNames()
Specified by:
getAttributeNames in interface ProtocolHandler

setProperty

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


getProperty

public String getProperty(String name)
Get a property


getAddress

public InetAddress getAddress()

setAddress

public void setAddress(InetAddress ia)

getName

public String getName()

pause

public void pause()
           throws Exception
Description copied from interface: ProtocolHandler
Pause the protocol (optional).

Specified by:
pause in interface ProtocolHandler
Throws:
Exception

resume

public void resume()
            throws Exception
Description copied from interface: ProtocolHandler
Resume the protocol (optional).

Specified by:
resume in interface ProtocolHandler
Throws:
Exception

destroy

public void destroy()
             throws Exception
Description copied from interface: ProtocolHandler
Destroy the protocol (optional).

Specified by:
destroy in interface ProtocolHandler
Throws:
Exception

isSSLEnabled

public boolean isSSLEnabled()

setSSLEnabled

public void setSSLEnabled(boolean SSLEnabled)

getSecure

public boolean getSecure()

setSecure

public void setSecure(boolean b)

getProcessorCache

public int getProcessorCache()

setProcessorCache

public void setProcessorCache(int processorCache)

getSocketBuffer

public int getSocketBuffer()

setSocketBuffer

public void setSocketBuffer(int socketBuffer)

getMaxKeepAliveRequests

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


setMaxKeepAliveRequests

public void setMaxKeepAliveRequests(int mkar)

getKeepAlive

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


setKeepAlive

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


setKeepAliveTimeout

public void setKeepAliveTimeout(int keepAliveTimeout)

getKeepAliveTimeout

public int getKeepAliveTimeout()

getTimeout

public int getTimeout()

setTimeout

public void setTimeout(int timeout)

getConnectionTimeout

public int getConnectionTimeout()

setConnectionTimeout

public void setConnectionTimeout(int timeout)

getSoTimeout

public int getSoTimeout()

setSoTimeout

public void setSoTimeout(int i)

getMaxSavePostSize

public int getMaxSavePostSize()

setMaxSavePostSize

public void setMaxSavePostSize(int valueI)

getMaxHttpHeaderSize

public int getMaxHttpHeaderSize()

setMaxHttpHeaderSize

public void setMaxHttpHeaderSize(int valueI)

getDisableUploadTimeout

public boolean getDisableUploadTimeout()

setDisableUploadTimeout

public void setDisableUploadTimeout(boolean isDisabled)

getCompression

public String getCompression()

setCompression

public void setCompression(String valueS)

getNoCompressionUserAgents

public String getNoCompressionUserAgents()

setNoCompressionUserAgents

public void setNoCompressionUserAgents(String valueS)

getCompressableMimeType

public String getCompressableMimeType()

setCompressableMimeType

public void setCompressableMimeType(String valueS)

getCompressableMimeTypes

public String getCompressableMimeTypes()

setCompressableMimeTypes

public void setCompressableMimeTypes(String valueS)

getCompressionMinSize

public int getCompressionMinSize()

setCompressionMinSize

public void setCompressionMinSize(int valueI)

getRestrictedUserAgents

public String getRestrictedUserAgents()

setRestrictedUserAgents

public void setRestrictedUserAgents(String valueS)

setServer

public void setServer(String server)

getServer

public String getServer()

getExecutor

public Executor getExecutor()
Description copied from interface: ProtocolHandler
The executor, provide access to the underlying thread pool.

Specified by:
getExecutor in interface ProtocolHandler

setExecutor

public void setExecutor(Executor executor)

getMaxThreads

public int getMaxThreads()

setMaxThreads

public void setMaxThreads(int maxThreads)

getThreadPriority

public int getThreadPriority()

setThreadPriority

public void setThreadPriority(int threadPriority)

getPort

public int getPort()

setPort

public void setPort(int port)

getBacklog

public int getBacklog()

setBacklog

public void setBacklog(int backlog)

getTcpNoDelay

public boolean getTcpNoDelay()

setTcpNoDelay

public void setTcpNoDelay(boolean tcpNoDelay)

getSoLinger

public int getSoLinger()

setSoLinger

public void setSoLinger(int soLinger)

getAlgorithm

public String getAlgorithm()

setAlgorithm

public void setAlgorithm(String s)

getClientAuth

public String getClientAuth()

setClientAuth

public void setClientAuth(String s)

getKeystoreFile

public String getKeystoreFile()

setKeystoreFile

public void setKeystoreFile(String s)

getKeystorePass

public String getKeystorePass()

setKeystorePass

public void setKeystorePass(String s)

getKeystoreType

public String getKeystoreType()

setKeystoreType

public void setKeystoreType(String s)

getKeystoreProvider

public String getKeystoreProvider()

setKeystoreProvider

public void setKeystoreProvider(String s)

getSslProtocol

public String getSslProtocol()

setSslProtocol

public void setSslProtocol(String s)

getCiphers

public String getCiphers()

setCiphers

public void setCiphers(String s)

getKeyAlias

public String getKeyAlias()

setKeyAlias

public void setKeyAlias(String s)

getKeyPass

public String getKeyPass()

setKeyPass

public void setKeyPass(String s)

setTruststoreFile

public void setTruststoreFile(String f)

getTruststoreFile

public String getTruststoreFile()

setTruststorePass

public void setTruststorePass(String p)

getTruststorePass

public String getTruststorePass()

setTruststoreType

public void setTruststoreType(String t)

getTruststoreType

public String getTruststoreType()

setTruststoreProvider

public void setTruststoreProvider(String t)

getTruststoreProvider

public String getTruststoreProvider()

setTruststoreAlgorithm

public void setTruststoreAlgorithm(String a)

getTruststoreAlgorithm

public String getTruststoreAlgorithm()

setTrustMaxCertLength

public void setTrustMaxCertLength(String s)

getTrustMaxCertLength

public String getTrustMaxCertLength()

setCrlFile

public void setCrlFile(String s)

getCrlFile

public String getCrlFile()

setSessionCacheSize

public void setSessionCacheSize(String s)

getSessionCacheSize

public String getSessionCacheSize()

setSessionTimeout

public void setSessionTimeout(String s)

getSessionTimeout

public String getSessionTimeout()

setAllowUnsafeLegacyRenegotiation

public void setAllowUnsafeLegacyRenegotiation(String s)

getAllowUnsafeLegacyRenegotiation

public String getAllowUnsafeLegacyRenegotiation()

init

public abstract void init()
                   throws Exception
Description copied from interface: ProtocolHandler
Initialise the protocol.

Specified by:
init in interface ProtocolHandler
Throws:
Exception

start

public abstract void start()
                    throws Exception
Description copied from interface: ProtocolHandler
Start the protocol.

Specified by:
start in interface ProtocolHandler
Throws:
Exception

getObjectName

public ObjectName getObjectName()

getDomain

public String getDomain()

preRegister

public ObjectName preRegister(MBeanServer server,
                              ObjectName name)
                       throws Exception
Specified by:
preRegister in interface MBeanRegistration
Throws:
Exception

postRegister

public void postRegister(Boolean registrationDone)
Specified by:
postRegister in interface MBeanRegistration

preDeregister

public void preDeregister()
                   throws Exception
Specified by:
preDeregister in interface MBeanRegistration
Throws:
Exception

postDeregister

public void postDeregister()
Specified by:
postDeregister in interface MBeanRegistration

Apache Tomcat 7.0.2

Copyright © 2000-2010 Apache Software Foundation. All Rights Reserved.