Apache Tomcat 7.0.4

org.apache.coyote.http11
Class Http11NioProtocol

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

public class Http11NioProtocol
extends AbstractHttp11JsseProtocol

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
 
Fields inherited from class org.apache.coyote.http11.AbstractHttp11Protocol
adapter, attributes, domain, endpoint, mserver, oname, rgOname, sm, sslImplementation, tpOname
 
Constructor Summary
Http11NioProtocol()
           
 
Method Summary
 int getAcceptorThreadPriority()
           
 NioEndpoint getEndpoint()
           
protected  Log getLog()
           
 int getPollerThreadCount()
           
 int getPollerThreadPriority()
           
 String getProtocol()
           
 long getSelectorTimeout()
           
 int getSocketCloseDelay()
           
 boolean getUseSendfile()
           
 void init()
          Start the protocol
 void setAcceptorThreadPriority(int threadPriority)
           
 void setOomParachute(int oomParachute)
           
 void setPollerThreadCount(int count)
           
 void setPollerThreadPriority(int threadPriority)
           
 void setProtocol(String k)
           
 void setSelectorTimeout(long timeout)
           
 void setSocketCloseDelay(int d)
           
 void setUseSendfile(boolean useSendfile)
           
 void start()
          Start the protocol.
 
Methods inherited from class org.apache.coyote.http11.AbstractHttp11JsseProtocol
getAlgorithm, getAllowUnsafeLegacyRenegotiation, getCiphers, getClientAuth, getCrlFile, getKeyAlias, getKeyPass, getKeystoreFile, getKeystorePass, getKeystoreProvider, getKeystoreType, getSessionCacheSize, getSessionTimeout, getSslProtocol, getTrustMaxCertLength, getTruststoreAlgorithm, getTruststoreFile, getTruststorePass, getTruststoreProvider, getTruststoreType, setAlgorithm, setAllowUnsafeLegacyRenegotiation, setCiphers, setClientAuth, setCrlFile, setKeyAlias, setKeyPass, setKeystoreFile, setKeystorePass, setKeystoreProvider, setKeystoreType, setSessionCacheSize, setSessionTimeout, setSslProtocol, setTrustMaxCertLength, setTruststoreAlgorithm, setTruststoreFile, setTruststorePass, setTruststoreProvider, setTruststoreType
 
Methods inherited from class org.apache.coyote.http11.AbstractHttp11Protocol
destroy, 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, getTimeout, 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, setTimeout, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Http11NioProtocol

public Http11NioProtocol()
Method Detail

getLog

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

getEndpoint

public NioEndpoint getEndpoint()

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

setPollerThreadCount

public void setPollerThreadCount(int count)

getPollerThreadCount

public int getPollerThreadCount()

setSelectorTimeout

public void setSelectorTimeout(long timeout)

getSelectorTimeout

public long getSelectorTimeout()

setAcceptorThreadPriority

public void setAcceptorThreadPriority(int threadPriority)

setPollerThreadPriority

public void setPollerThreadPriority(int threadPriority)

getAcceptorThreadPriority

public int getAcceptorThreadPriority()

getPollerThreadPriority

public int getPollerThreadPriority()

getUseSendfile

public boolean getUseSendfile()

setUseSendfile

public void setUseSendfile(boolean useSendfile)

getProtocol

public String getProtocol()

setProtocol

public void setProtocol(String k)

getSocketCloseDelay

public int getSocketCloseDelay()

setSocketCloseDelay

public void setSocketCloseDelay(int d)

setOomParachute

public void setOomParachute(int oomParachute)

Apache Tomcat 7.0.4

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