org.apache.coyote.http11
Class Http11Protocol

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

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

Field Summary
protected  java.util.Hashtable attributes
           
protected  java.lang.String domain
           
protected  PoolTcpEndpoint ep
           
protected static org.apache.commons.logging.Log log
           
protected  javax.management.MBeanServer mserver
           
protected  javax.management.ObjectName oname
           
protected  boolean secure
           
protected static StringManager sm
          The string manager for this package.
protected  ServerSocketFactory socketFactory
           
protected  java.lang.String socketFactoryName
           
protected  SSLImplementation sslImplementation
           
protected  java.lang.String sslImplementationName
           
static int THREAD_DATA_OBJECT_NAME
           
static int THREAD_DATA_PROCESSOR
           
protected  ThreadPool tp
           
 
Constructor Summary
Http11Protocol()
           
 
Method Summary
 void destroy()
           
 Adapter getAdapter()
           
 java.lang.Object getAttribute(java.lang.String key)
           
 java.lang.String getDomain()
           
 javax.management.ObjectName getObjectName()
           
 java.lang.String getProperty(java.lang.String name)
          Get a property
 void init()
          Start the protocol
 void postDeregister()
           
 void postRegister(java.lang.Boolean registrationDone)
           
 void preDeregister()
           
 javax.management.ObjectName preRegister(javax.management.MBeanServer server, javax.management.ObjectName name)
           
 void setAdapter(Adapter adapter)
          The adapter, used to call the connector
 void setAddress(java.net.InetAddress ia)
           
 void setAlgorithm(java.lang.String k)
           
 void setAttribute(java.lang.String name, java.lang.Object value)
          Pass config info
 void setBacklog(int i)
           
 void setCiphers(java.lang.String ciphers)
           
 void setClientauth(java.lang.String k)
           
 void setCompression(java.lang.String valueS)
           
 void setDisableUploadTimeout(boolean isDisabled)
           
 void setHostName(java.lang.String name)
           
 void setKeyAlias(java.lang.String keyAlias)
           
 void setKeypass(java.lang.String k)
           
 void setKeystore(java.lang.String k)
           
 void setKeytype(java.lang.String k)
           
 void setMaxKeepAliveRequests(int mkar)
          Set the maximum number of Keep-Alive requests that we will honor.
 void setMaxSpareThreads(int maxThreads)
           
 void setMaxThreads(int maxThreads)
           
 void setMinSpareThreads(int minSpareThreads)
           
 void setPools(boolean t)
           
 void setPort(int port)
           
 void setProperty(java.lang.String name, java.lang.String value)
          Set a property.
 void setProtocol(java.lang.String k)
           
 void setProtocols(java.lang.String k)
           
 void setReportedname(java.lang.String reportedName)
           
 void setSecure(boolean b)
           
 void setServerSoTimeout(int i)
           
 void setSocketCloseDelay(int d)
           
 void setSocketFactory(java.lang.String valueS)
           
 void setSoLinger(int i)
           
 void setSoTimeout(int i)
           
 void setSSLImplementation(java.lang.String valueS)
           
 void setTcpNoDelay(boolean b)
           
 void setTimeout(int timeouts)
           
 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 StringManager sm
The string manager for this package.


tp

protected ThreadPool tp

ep

protected PoolTcpEndpoint ep

secure

protected boolean secure

socketFactory

protected ServerSocketFactory socketFactory

sslImplementation

protected SSLImplementation sslImplementation

attributes

protected java.util.Hashtable attributes

socketFactoryName

protected java.lang.String socketFactoryName

sslImplementationName

protected java.lang.String sslImplementationName

THREAD_DATA_PROCESSOR

public static final int THREAD_DATA_PROCESSOR
See Also:
Constant Field Values

THREAD_DATA_OBJECT_NAME

public static final int THREAD_DATA_OBJECT_NAME
See Also:
Constant Field Values

log

protected static org.apache.commons.logging.Log log

domain

protected java.lang.String domain

oname

protected javax.management.ObjectName oname

mserver

protected javax.management.MBeanServer mserver
Constructor Detail

Http11Protocol

public Http11Protocol()
Method Detail

setAttribute

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

Specified by:
setAttribute in interface ProtocolHandler

getAttribute

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

setProperty

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


getProperty

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


setAdapter

public void setAdapter(Adapter adapter)
The adapter, used to call the connector

Specified by:
setAdapter in interface ProtocolHandler

getAdapter

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

init

public void init()
          throws java.lang.Exception
Start the protocol

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

start

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

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

destroy

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

setPools

public void setPools(boolean t)

setMaxThreads

public void setMaxThreads(int maxThreads)

setMaxSpareThreads

public void setMaxSpareThreads(int maxThreads)

setMinSpareThreads

public void setMinSpareThreads(int minSpareThreads)

setBacklog

public void setBacklog(int i)

setPort

public void setPort(int port)

setAddress

public void setAddress(java.net.InetAddress ia)

setHostName

public void setHostName(java.lang.String name)

setSocketFactory

public void setSocketFactory(java.lang.String valueS)

setSSLImplementation

public void setSSLImplementation(java.lang.String valueS)

setTcpNoDelay

public void setTcpNoDelay(boolean b)

setDisableUploadTimeout

public void setDisableUploadTimeout(boolean isDisabled)

setCompression

public void setCompression(java.lang.String valueS)

setSoLinger

public void setSoLinger(int i)

setSoTimeout

public void setSoTimeout(int i)

setServerSoTimeout

public void setServerSoTimeout(int i)

setKeystore

public void setKeystore(java.lang.String k)

setKeypass

public void setKeypass(java.lang.String k)

setKeytype

public void setKeytype(java.lang.String k)

setClientauth

public void setClientauth(java.lang.String k)

setProtocol

public void setProtocol(java.lang.String k)

setProtocols

public void setProtocols(java.lang.String k)

setAlgorithm

public void setAlgorithm(java.lang.String k)

setSecure

public void setSecure(boolean b)

setCiphers

public void setCiphers(java.lang.String ciphers)

setKeyAlias

public void setKeyAlias(java.lang.String keyAlias)

setMaxKeepAliveRequests

public void setMaxKeepAliveRequests(int mkar)
Set the maximum number of Keep-Alive requests that we will honor.


setSocketCloseDelay

public void setSocketCloseDelay(int d)

setTimeout

public void setTimeout(int timeouts)

setReportedname

public void setReportedname(java.lang.String reportedName)

getObjectName

public javax.management.ObjectName getObjectName()

getDomain

public java.lang.String getDomain()

preRegister

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

postRegister

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

preDeregister

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

postDeregister

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


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