org.apache.coyote.http11
Class Http11Protocol

java.lang.Object
  extended by org.apache.coyote.http11.Http11Protocol
All Implemented Interfaces:
javax.management.MBeanRegistration, ProtocolHandler

Deprecated.

public class Http11Protocol
extends java.lang.Object
implements ProtocolHandler, javax.management.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

Nested Class Summary
protected static class Http11Protocol.Http11ConnectionHandler
          Deprecated.  
 
Field Summary
protected  Adapter adapter
          Deprecated. The adapter, used to call the connector.
protected  java.util.HashMap<java.lang.String,java.lang.Object> attributes
          Deprecated.  
protected  Http11Protocol.Http11ConnectionHandler cHandler
          Deprecated.  
protected  java.lang.String compressableMimeTypes
          Deprecated.  
protected  java.lang.String compression
          Deprecated. Integrated compression support.
protected  int compressionMinSize
          Deprecated.  
protected  boolean disableUploadTimeout
          Deprecated. If true, the regular socket timeout will be used for the full duration of the connection.
protected  java.lang.String domain
          Deprecated.  
protected  JIoEndpoint endpoint
          Deprecated.  
protected  int keepAliveTimeout
          Deprecated. The number of seconds Tomcat will wait for a subsequent request before closing the connection.
protected static Log log
          Deprecated.  
protected  int maxHttpHeaderSize
          Deprecated. Maximum size of the HTTP message header.
protected  int maxKeepAliveRequests
          Deprecated. Maximum number of requests which can be performed over a keepalive connection.
protected  int maxSavePostSize
          Deprecated. Maximum size of the post which will be saved when processing certain requests, such as a POST.
protected  javax.management.MBeanServer mserver
          Deprecated.  
protected  java.lang.String noCompressionUserAgents
          Deprecated.  
protected  javax.management.ObjectName oname
          Deprecated.  
protected  java.lang.String restrictedUserAgents
          Deprecated. User agents regular expressions which should be restricted to HTTP/1.0 support.
protected  javax.management.ObjectName rgOname
          Deprecated.  
protected  boolean secure
          Deprecated. This field indicates if the protocol is secure from the perspective of the client (= https is used).
protected  java.lang.String server
          Deprecated. Server header.
protected static StringManager sm
          Deprecated. The string manager for this package.
protected  ServerSocketFactory socketFactory
          Deprecated.  
protected  java.lang.String socketFactoryName
          Deprecated. Name of the socket factory.
protected  boolean SSLEnabled
          Deprecated.  
protected  SSLImplementation sslImplementation
          Deprecated.  
protected  java.lang.String sslImplementationName
          Deprecated. Name of the SSL implementation.
protected  int timeout
          Deprecated. This timeout represents the socket timeout which will be used while the adapter execution is in progress, unless disableUploadTimeout is set to true.
protected  javax.management.ObjectName tpOname
          Deprecated.  
 
Constructor Summary
Http11Protocol()
          Deprecated.  
 
Method Summary
 void destroy()
          Deprecated.  
 Adapter getAdapter()
          Deprecated.  
 java.net.InetAddress getAddress()
          Deprecated.  
 java.lang.String getAlgorithm()
          Deprecated.  
 java.lang.Object getAttribute(java.lang.String key)
          Deprecated.  
 java.util.Iterator getAttributeNames()
          Deprecated.  
 int getBacklog()
          Deprecated.  
 java.lang.String getCiphers()
          Deprecated.  
 java.lang.String getClientauth()
          Deprecated.  
 java.lang.String getCompressableMimeType()
          Deprecated.  
 java.lang.String getCompression()
          Deprecated.  
 int getCompressionMinSize()
          Deprecated.  
 boolean getDisableUploadTimeout()
          Deprecated.  
 java.lang.String getDomain()
          Deprecated.  
 java.util.concurrent.Executor getExecutor()
          Deprecated.  
 boolean getKeepAlive()
          Deprecated. Return the Keep-Alive policy for the connection.
 int getKeepAliveTimeout()
          Deprecated.  
 java.lang.String getKeyAlias()
          Deprecated.  
 java.lang.String getKeypass()
          Deprecated.  
 java.lang.String getKeystore()
          Deprecated.  
 java.lang.String getKeytype()
          Deprecated.  
 int getMaxHttpHeaderSize()
          Deprecated.  
 int getMaxKeepAliveRequests()
          Deprecated.  
 int getMaxSavePostSize()
          Deprecated.  
 int getMaxThreads()
          Deprecated.  
 java.lang.String getName()
          Deprecated.  
 java.lang.String getNoCompressionUserAgents()
          Deprecated.  
 javax.management.ObjectName getObjectName()
          Deprecated.  
 int getPort()
          Deprecated.  
 java.lang.String getProperty(java.lang.String name)
          Deprecated. Get a property
 java.lang.String getProtocols()
          Deprecated.  
 java.lang.String getRestrictedUserAgents()
          Deprecated.  
 boolean getSecure()
          Deprecated.  
 java.lang.String getServer()
          Deprecated.  
 java.lang.String getSocketFactory()
          Deprecated.  
 int getSoLinger()
          Deprecated.  
 int getSoTimeout()
          Deprecated.  
 java.lang.String getSSLImplementation()
          Deprecated.  
 boolean getTcpNoDelay()
          Deprecated.  
 int getThreadPriority()
          Deprecated.  
 int getTimeout()
          Deprecated.  
 void init()
          Deprecated. Init the protocol.
 boolean isSSLEnabled()
          Deprecated.  
 void pause()
          Deprecated. Pause the protocol (optional).
 void postDeregister()
          Deprecated.  
 void postRegister(java.lang.Boolean registrationDone)
          Deprecated.  
 void preDeregister()
          Deprecated.  
 javax.management.ObjectName preRegister(javax.management.MBeanServer server, javax.management.ObjectName name)
          Deprecated.  
 void resume()
          Deprecated. Resume the protocol (optional).
 void setAdapter(Adapter adapter)
          Deprecated. The adapter, used to call the connector.
 void setAddress(java.net.InetAddress ia)
          Deprecated.  
 void setAlgorithm(java.lang.String k)
          Deprecated.  
 void setAttribute(java.lang.String name, java.lang.Object value)
          Deprecated. Pass config info
 void setBacklog(int i)
          Deprecated.  
 void setCiphers(java.lang.String ciphers)
          Deprecated.  
 void setClientauth(java.lang.String k)
          Deprecated.  
 void setCompressableMimeType(java.lang.String valueS)
          Deprecated.  
 void setCompression(java.lang.String valueS)
          Deprecated.  
 void setCompressionMinSize(int valueI)
          Deprecated.  
 void setDisableUploadTimeout(boolean isDisabled)
          Deprecated.  
 void setExecutor(java.util.concurrent.Executor executor)
          Deprecated.  
 void setKeepAlive(boolean keepAlive)
          Deprecated. Set the keep-alive policy for this connection.
 void setKeepAliveTimeout(int timeout)
          Deprecated.  
 void setKeyAlias(java.lang.String keyAlias)
          Deprecated.  
 void setKeypass(java.lang.String k)
          Deprecated.  
 void setKeystore(java.lang.String k)
          Deprecated.  
 void setKeytype(java.lang.String k)
          Deprecated.  
 void setMaxHttpHeaderSize(int valueI)
          Deprecated.  
 void setMaxKeepAliveRequests(int mkar)
          Deprecated.  
 void setMaxSavePostSize(int valueI)
          Deprecated.  
 void setMaxThreads(int maxThreads)
          Deprecated.  
 void setNoCompressionUserAgents(java.lang.String valueS)
          Deprecated.  
 void setPort(int port)
          Deprecated.  
 void setProperty(java.lang.String name, java.lang.String value)
          Deprecated. Set a property.
 void setProtocols(java.lang.String k)
          Deprecated.  
 void setRestrictedUserAgents(java.lang.String valueS)
          Deprecated.  
 void setSecure(boolean b)
          Deprecated.  
 void setServer(java.lang.String server)
          Deprecated.  
 void setSocketFactory(java.lang.String valueS)
          Deprecated.  
 void setSoLinger(int i)
          Deprecated.  
 void setSoTimeout(int i)
          Deprecated.  
 void setSSLEnabled(boolean SSLEnabled)
          Deprecated.  
 void setSSLImplementation(java.lang.String valueS)
          Deprecated.  
 void setTcpNoDelay(boolean b)
          Deprecated.  
 void setThreadPriority(int threadPriority)
          Deprecated.  
 void setTimeout(int timeout)
          Deprecated.  
 void start()
          Deprecated. Start the protocol.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static Log log
Deprecated. 

sm

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


cHandler

protected Http11Protocol.Http11ConnectionHandler cHandler
Deprecated. 

endpoint

protected JIoEndpoint endpoint
Deprecated. 

tpOname

protected javax.management.ObjectName tpOname
Deprecated. 

rgOname

protected javax.management.ObjectName rgOname
Deprecated. 

socketFactory

protected ServerSocketFactory socketFactory
Deprecated. 

sslImplementation

protected SSLImplementation sslImplementation
Deprecated. 

attributes

protected java.util.HashMap<java.lang.String,java.lang.Object> attributes
Deprecated. 

adapter

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


secure

protected boolean secure
Deprecated. 
This field indicates if the protocol is secure from the perspective of the client (= https is used).


SSLEnabled

protected boolean SSLEnabled
Deprecated. 

socketFactoryName

protected java.lang.String socketFactoryName
Deprecated. 
Name of the socket factory.


sslImplementationName

protected java.lang.String sslImplementationName
Deprecated. 
Name of the SSL implementation.


maxKeepAliveRequests

protected int maxKeepAliveRequests
Deprecated. 
Maximum number of requests which can be performed over a keepalive connection. The default is the same as for Apache HTTP Server.


keepAliveTimeout

protected int keepAliveTimeout
Deprecated. 
The number of seconds Tomcat will wait for a subsequent request before closing the connection. The default is the same as for Apache HTTP Server (15 000 milliseconds).


timeout

protected int timeout
Deprecated. 
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).


maxSavePostSize

protected int maxSavePostSize
Deprecated. 
Maximum size of the post which will be saved when processing certain requests, such as a POST.


maxHttpHeaderSize

protected int maxHttpHeaderSize
Deprecated. 
Maximum size of the HTTP message header.


disableUploadTimeout

protected boolean disableUploadTimeout
Deprecated. 
If true, the regular socket timeout will be used for the full duration of the connection.


compression

protected java.lang.String compression
Deprecated. 
Integrated compression support.


noCompressionUserAgents

protected java.lang.String noCompressionUserAgents
Deprecated. 

compressableMimeTypes

protected java.lang.String compressableMimeTypes
Deprecated. 

compressionMinSize

protected int compressionMinSize
Deprecated. 

restrictedUserAgents

protected java.lang.String restrictedUserAgents
Deprecated. 
User agents regular expressions which should be restricted to HTTP/1.0 support.


server

protected java.lang.String server
Deprecated. 
Server header.


domain

protected java.lang.String domain
Deprecated. 

oname

protected javax.management.ObjectName oname
Deprecated. 

mserver

protected javax.management.MBeanServer mserver
Deprecated. 
Constructor Detail

Http11Protocol

public Http11Protocol()
Deprecated. 
Method Detail

setProperty

public void setProperty(java.lang.String name,
                        java.lang.String value)
Deprecated. 
Set a property.


getProperty

public java.lang.String getProperty(java.lang.String name)
Deprecated. 
Get a property


setAttribute

public void setAttribute(java.lang.String name,
                         java.lang.Object value)
Deprecated. 
Pass config info

Specified by:
setAttribute in interface ProtocolHandler

getAttribute

public java.lang.Object getAttribute(java.lang.String key)
Deprecated. 
Specified by:
getAttribute in interface ProtocolHandler

getAttributeNames

public java.util.Iterator getAttributeNames()
Deprecated. 
Specified by:
getAttributeNames in interface ProtocolHandler

setAdapter

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

Specified by:
setAdapter in interface ProtocolHandler

getAdapter

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

init

public void init()
          throws java.lang.Exception
Deprecated. 
Description copied from interface: ProtocolHandler
Init the protocol.

Specified by:
init in interface ProtocolHandler
Throws:
java.lang.Exception

start

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

Specified by:
start in interface ProtocolHandler
Throws:
java.lang.Exception

pause

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

Specified by:
pause in interface ProtocolHandler
Throws:
java.lang.Exception

resume

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

Specified by:
resume in interface ProtocolHandler
Throws:
java.lang.Exception

destroy

public void destroy()
             throws java.lang.Exception
Deprecated. 
Specified by:
destroy in interface ProtocolHandler
Throws:
java.lang.Exception

getSecure

public boolean getSecure()
Deprecated. 

setSecure

public void setSecure(boolean b)
Deprecated. 

isSSLEnabled

public boolean isSSLEnabled()
Deprecated. 

setSSLEnabled

public void setSSLEnabled(boolean SSLEnabled)
Deprecated. 

getSocketFactory

public java.lang.String getSocketFactory()
Deprecated. 

setSocketFactory

public void setSocketFactory(java.lang.String valueS)
Deprecated. 

getSSLImplementation

public java.lang.String getSSLImplementation()
Deprecated. 

setSSLImplementation

public void setSSLImplementation(java.lang.String valueS)
Deprecated. 

getMaxKeepAliveRequests

public int getMaxKeepAliveRequests()
Deprecated. 

setMaxKeepAliveRequests

public void setMaxKeepAliveRequests(int mkar)
Deprecated. 

getKeepAliveTimeout

public int getKeepAliveTimeout()
Deprecated. 

setKeepAliveTimeout

public void setKeepAliveTimeout(int timeout)
Deprecated. 

getTimeout

public int getTimeout()
Deprecated. 

setTimeout

public void setTimeout(int timeout)
Deprecated. 

getMaxSavePostSize

public int getMaxSavePostSize()
Deprecated. 

setMaxSavePostSize

public void setMaxSavePostSize(int valueI)
Deprecated. 

getMaxHttpHeaderSize

public int getMaxHttpHeaderSize()
Deprecated. 

setMaxHttpHeaderSize

public void setMaxHttpHeaderSize(int valueI)
Deprecated. 

getDisableUploadTimeout

public boolean getDisableUploadTimeout()
Deprecated. 

setDisableUploadTimeout

public void setDisableUploadTimeout(boolean isDisabled)
Deprecated. 

getCompression

public java.lang.String getCompression()
Deprecated. 

setCompression

public void setCompression(java.lang.String valueS)
Deprecated. 

getNoCompressionUserAgents

public java.lang.String getNoCompressionUserAgents()
Deprecated. 

setNoCompressionUserAgents

public void setNoCompressionUserAgents(java.lang.String valueS)
Deprecated. 

getCompressableMimeType

public java.lang.String getCompressableMimeType()
Deprecated. 

setCompressableMimeType

public void setCompressableMimeType(java.lang.String valueS)
Deprecated. 

getCompressionMinSize

public int getCompressionMinSize()
Deprecated. 

setCompressionMinSize

public void setCompressionMinSize(int valueI)
Deprecated. 

getRestrictedUserAgents

public java.lang.String getRestrictedUserAgents()
Deprecated. 

setRestrictedUserAgents

public void setRestrictedUserAgents(java.lang.String valueS)
Deprecated. 

setServer

public void setServer(java.lang.String server)
Deprecated. 

getServer

public java.lang.String getServer()
Deprecated. 

getExecutor

public java.util.concurrent.Executor getExecutor()
Deprecated. 

setExecutor

public void setExecutor(java.util.concurrent.Executor executor)
Deprecated. 

getMaxThreads

public int getMaxThreads()
Deprecated. 

setMaxThreads

public void setMaxThreads(int maxThreads)
Deprecated. 

setThreadPriority

public void setThreadPriority(int threadPriority)
Deprecated. 

getThreadPriority

public int getThreadPriority()
Deprecated. 

getBacklog

public int getBacklog()
Deprecated. 

setBacklog

public void setBacklog(int i)
Deprecated. 

getPort

public int getPort()
Deprecated. 

setPort

public void setPort(int port)
Deprecated. 

getAddress

public java.net.InetAddress getAddress()
Deprecated. 

setAddress

public void setAddress(java.net.InetAddress ia)
Deprecated. 

getName

public java.lang.String getName()
Deprecated. 

getTcpNoDelay

public boolean getTcpNoDelay()
Deprecated. 

setTcpNoDelay

public void setTcpNoDelay(boolean b)
Deprecated. 

getSoLinger

public int getSoLinger()
Deprecated. 

setSoLinger

public void setSoLinger(int i)
Deprecated. 

getSoTimeout

public int getSoTimeout()
Deprecated. 

setSoTimeout

public void setSoTimeout(int i)
Deprecated. 

getKeepAlive

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


setKeepAlive

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


getKeystore

public java.lang.String getKeystore()
Deprecated. 

setKeystore

public void setKeystore(java.lang.String k)
Deprecated. 

getKeypass

public java.lang.String getKeypass()
Deprecated. 

setKeypass

public void setKeypass(java.lang.String k)
Deprecated. 

getKeytype

public java.lang.String getKeytype()
Deprecated. 

setKeytype

public void setKeytype(java.lang.String k)
Deprecated. 

getClientauth

public java.lang.String getClientauth()
Deprecated. 

setClientauth

public void setClientauth(java.lang.String k)
Deprecated. 

getProtocols

public java.lang.String getProtocols()
Deprecated. 

setProtocols

public void setProtocols(java.lang.String k)
Deprecated. 

getAlgorithm

public java.lang.String getAlgorithm()
Deprecated. 

setAlgorithm

public void setAlgorithm(java.lang.String k)
Deprecated. 

getCiphers

public java.lang.String getCiphers()
Deprecated. 

setCiphers

public void setCiphers(java.lang.String ciphers)
Deprecated. 

getKeyAlias

public java.lang.String getKeyAlias()
Deprecated. 

setKeyAlias

public void setKeyAlias(java.lang.String keyAlias)
Deprecated. 

getObjectName

public javax.management.ObjectName getObjectName()
Deprecated. 

getDomain

public java.lang.String getDomain()
Deprecated. 

preRegister

public javax.management.ObjectName preRegister(javax.management.MBeanServer server,
                                               javax.management.ObjectName name)
                                        throws java.lang.Exception
Deprecated. 
Specified by:
preRegister in interface javax.management.MBeanRegistration
Throws:
java.lang.Exception

postRegister

public void postRegister(java.lang.Boolean registrationDone)
Deprecated. 
Specified by:
postRegister in interface javax.management.MBeanRegistration

preDeregister

public void preDeregister()
                   throws java.lang.Exception
Deprecated. 
Specified by:
preDeregister in interface javax.management.MBeanRegistration
Throws:
java.lang.Exception

postDeregister

public void postDeregister()
Deprecated. 
Specified by:
postDeregister in interface javax.management.MBeanRegistration


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