Apache Tomcat 7.0.4

org.apache.coyote.http11
Class Http11AprProtocol

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

public class Http11AprProtocol
extends AbstractHttp11Protocol

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

Field Summary
protected static StringManager sm
          The string manager for this package.
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.
 
Fields inherited from class org.apache.coyote.http11.AbstractHttp11Protocol
adapter, attributes, domain, endpoint, mserver, oname, rgOname, sslImplementation, tpOname
 
Constructor Summary
Http11AprProtocol()
           
 
Method Summary
 void destroy()
          Destroy the protocol (optional).
 boolean getDeferAccept()
           
protected  Log getLog()
           
 int getPollerSize()
           
 int getPollerThreadCount()
           
 int getPollTime()
           
 int getSendfileSize()
           
 int getSendfileThreadCount()
           
 String getSSLCACertificateFile()
          SSL CA certificate file.
 String getSSLCACertificatePath()
          SSL CA certificate path.
 String getSSLCARevocationFile()
          SSL CA revocation file.
 String getSSLCARevocationPath()
          SSL CA revocation path.
 String getSSLCertificateChainFile()
          SSL certificate chain file.
 String getSSLCertificateFile()
          SSL certificate file.
 String getSSLCertificateKeyFile()
          SSL certificate key file.
 String getSSLCipherSuite()
          SSL cipher suite.
 String getSSLPassword()
          SSL password (if a cert is encrypted, and no password has been provided, a callback will ask for a password).
 String getSSLProtocol()
          SSL protocol.
 String getSSLVerifyClient()
          SSL verify client.
 int getSSLVerifyDepth()
          SSL verify depth.
 int getTimeout()
           
 boolean getUseSendfile()
           
 void init()
          Start the protocol
 void setDeferAccept(boolean deferAccept)
           
 void setPollerSize(int pollerSize)
           
 void setPollerThreadCount(int pollerThreadCount)
           
 void setPollTime(int pollTime)
           
 void setSendfileSize(int sendfileSize)
           
 void setSendfileThreadCount(int sendfileThreadCount)
           
 void setSSLCACertificateFile(String SSLCACertificateFile)
           
 void setSSLCACertificatePath(String SSLCACertificatePath)
           
 void setSSLCARevocationFile(String SSLCARevocationFile)
           
 void setSSLCARevocationPath(String SSLCARevocationPath)
           
 void setSSLCertificateChainFile(String SSLCertificateChainFile)
           
 void setSSLCertificateFile(String SSLCertificateFile)
           
 void setSSLCertificateKeyFile(String SSLCertificateKeyFile)
           
 void setSSLCipherSuite(String SSLCipherSuite)
           
 void setSSLPassword(String SSLPassword)
           
 void setSSLProtocol(String SSLProtocol)
           
 void setSSLVerifyClient(String SSLVerifyClient)
           
 void setSSLVerifyDepth(int SSLVerifyDepth)
           
 void setTimeout(int timeout)
           
 void setUseSendfile(boolean useSendfile)
           
 void start()
          Start the protocol.
 
Methods inherited from class org.apache.coyote.http11.AbstractHttp11Protocol
getAdapter, getAddress, getAttribute, getAttributeNames, getBacklog, getCompressableMimeType, getCompressableMimeTypes, getCompression, getCompressionMinSize, getConnectionTimeout, getDisableUploadTimeout, getDomain, getExecutor, getKeepAlive, getKeepAliveTimeout, getMaxHttpHeaderSize, getMaxKeepAliveRequests, getMaxSavePostSize, getMaxThreads, getName, getNoCompressionUserAgents, getObjectName, getPort, getProcessorCache, getProperty, getRestrictedUserAgents, getSecure, getServer, getSocketBuffer, getSoLinger, getSoTimeout, getTcpNoDelay, getThreadPriority, isSSLEnabled, pause, postDeregister, postRegister, preDeregister, preRegister, resume, setAdapter, setAddress, setAttribute, setBacklog, setCompressableMimeType, setCompressableMimeTypes, setCompression, setCompressionMinSize, setConnectionTimeout, setDisableUploadTimeout, setExecutor, setKeepAlive, setKeepAliveTimeout, setMaxHttpHeaderSize, setMaxKeepAliveRequests, setMaxSavePostSize, setMaxThreads, setNoCompressionUserAgents, setPort, setProcessorCache, setProperty, setRestrictedUserAgents, setSecure, setServer, setSocketBuffer, setSoLinger, setSoTimeout, setSSLEnabled, setTcpNoDelay, setThreadPriority, stop
 
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.


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). TODO: Make the timeout attribute names consistent across the connectors

Constructor Detail

Http11AprProtocol

public Http11AprProtocol()
Method Detail

getLog

protected Log getLog()
Specified by:
getLog in class AbstractHttp11Protocol

init

public void init()
          throws Exception
Start the protocol

Specified by:
init in interface ProtocolHandler
Specified by:
init in class AbstractHttp11Protocol
Throws:
Exception

start

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

Throws:
Exception

destroy

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

Specified by:
destroy in interface ProtocolHandler
Overrides:
destroy in class AbstractHttp11Protocol
Throws:
Exception

getUseSendfile

public boolean getUseSendfile()

setUseSendfile

public void setUseSendfile(boolean useSendfile)

getPollTime

public int getPollTime()

setPollTime

public void setPollTime(int pollTime)

setPollerSize

public void setPollerSize(int pollerSize)

getPollerSize

public int getPollerSize()

setPollerThreadCount

public void setPollerThreadCount(int pollerThreadCount)

getPollerThreadCount

public int getPollerThreadCount()

getSendfileSize

public int getSendfileSize()

setSendfileSize

public void setSendfileSize(int sendfileSize)

setSendfileThreadCount

public void setSendfileThreadCount(int sendfileThreadCount)

getSendfileThreadCount

public int getSendfileThreadCount()

getDeferAccept

public boolean getDeferAccept()

setDeferAccept

public void setDeferAccept(boolean deferAccept)

getTimeout

public int getTimeout()
Overrides:
getTimeout in class AbstractHttp11Protocol

setTimeout

public void setTimeout(int timeout)
Overrides:
setTimeout in class AbstractHttp11Protocol

getSSLProtocol

public String getSSLProtocol()
SSL protocol.


setSSLProtocol

public void setSSLProtocol(String SSLProtocol)

getSSLPassword

public String getSSLPassword()
SSL password (if a cert is encrypted, and no password has been provided, a callback will ask for a password).


setSSLPassword

public void setSSLPassword(String SSLPassword)

getSSLCipherSuite

public String getSSLCipherSuite()
SSL cipher suite.


setSSLCipherSuite

public void setSSLCipherSuite(String SSLCipherSuite)

getSSLCertificateFile

public String getSSLCertificateFile()
SSL certificate file.


setSSLCertificateFile

public void setSSLCertificateFile(String SSLCertificateFile)

getSSLCertificateKeyFile

public String getSSLCertificateKeyFile()
SSL certificate key file.


setSSLCertificateKeyFile

public void setSSLCertificateKeyFile(String SSLCertificateKeyFile)

getSSLCertificateChainFile

public String getSSLCertificateChainFile()
SSL certificate chain file.


setSSLCertificateChainFile

public void setSSLCertificateChainFile(String SSLCertificateChainFile)

getSSLCACertificatePath

public String getSSLCACertificatePath()
SSL CA certificate path.


setSSLCACertificatePath

public void setSSLCACertificatePath(String SSLCACertificatePath)

getSSLCACertificateFile

public String getSSLCACertificateFile()
SSL CA certificate file.


setSSLCACertificateFile

public void setSSLCACertificateFile(String SSLCACertificateFile)

getSSLCARevocationPath

public String getSSLCARevocationPath()
SSL CA revocation path.


setSSLCARevocationPath

public void setSSLCARevocationPath(String SSLCARevocationPath)

getSSLCARevocationFile

public String getSSLCARevocationFile()
SSL CA revocation file.


setSSLCARevocationFile

public void setSSLCARevocationFile(String SSLCARevocationFile)

getSSLVerifyClient

public String getSSLVerifyClient()
SSL verify client.


setSSLVerifyClient

public void setSSLVerifyClient(String SSLVerifyClient)

getSSLVerifyDepth

public int getSSLVerifyDepth()
SSL verify depth.


setSSLVerifyDepth

public void setSSLVerifyDepth(int SSLVerifyDepth)

Apache Tomcat 7.0.4

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