Apache Tomcat 7.0.4

org.apache.coyote.http11
Class AbstractHttp11Protocol

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

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()
           
 Object getAttribute(String key)
           
 Iterator<String> getAttributeNames()
           
 int getBacklog()
           
 String getCompressableMimeType()
           
 String getCompressableMimeTypes()
           
 String getCompression()
           
 int getCompressionMinSize()
           
 int getConnectionTimeout()
           
 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()
           
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()
           
 int getSocketBuffer()
           
 int getSoLinger()
           
 int getSoTimeout()
           
 boolean getTcpNoDelay()
           
 int getThreadPriority()
           
 int getTimeout()
           
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 setAttribute(String name, Object value)
          Pass config info
 void setBacklog(int backlog)
           
 void setCompressableMimeType(String valueS)
           
 void setCompressableMimeTypes(String valueS)
           
 void setCompression(String valueS)
           
 void setCompressionMinSize(int valueI)
           
 void setConnectionTimeout(int timeout)
           
 void setDisableUploadTimeout(boolean isDisabled)
           
 void setExecutor(Executor executor)
           
 void setKeepAlive(boolean keepAlive)
          Set the keep-alive policy for this connection.
 void setKeepAliveTimeout(int keepAliveTimeout)
          The number of seconds Tomcat will wait for a subsequent request before closing the connection.
 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 setSocketBuffer(int socketBuffer)
           
 void setSoLinger(int soLinger)
           
 void setSoTimeout(int i)
           
 void setSSLEnabled(boolean SSLEnabled)
           
 void setTcpNoDelay(boolean tcpNoDelay)
           
 void setThreadPriority(int threadPriority)
           
 void setTimeout(int timeout)
           
 void stop()
          Stop the protocol.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.coyote.ProtocolHandler
start
 

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

stop

public void stop()
          throws Exception
Description copied from interface: ProtocolHandler
Stop the protocol.

Specified by:
stop 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)
The number of seconds Tomcat will wait for a subsequent request before closing the connection.


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)

init

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

Specified by:
init 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.4

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