org.apache.coyote.http11

Class Http11Protocol

Implemented Interfaces:
MBeanRegistration, ProtocolHandler

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

Authors:
Remy Maucherat
Costin Manolache

Field Summary

static int
THREAD_DATA_OBJECT_NAME
static int
THREAD_DATA_PROCESSOR
protected Hashtable
attributes
protected String
domain
protected PoolTcpEndpoint
ep
protected static org.apache.commons.logging.Log
log
protected MBeanServer
mserver
protected ObjectName
oname
protected boolean
secure
protected static StringManager
sm
The string manager for this package.
protected ServerSocketFactory
socketFactory
protected String
socketFactoryName
protected SSLImplementation
sslImplementation
protected String
sslImplementationName
protected ThreadPool
tp

Constructor Summary

Http11Protocol()

Method Summary

void
destroy()
Adapter
getAdapter()
InetAddress
getAddress()
String
getAlgorithm()
Object
getAttribute(String key)
int
getBacklog()
String
getCiphers()
String
getClientauth()
String
getCompressableMimeType()
String
getCompression()
int
getCompressionMinSize()
boolean
getDisableUploadTimeout()
String
getDomain()
String
getKeyAlias()
String
getKeypass()
String
getKeystore()
String
getKeytype()
int
getMaxHttpHeaderSize()
int
getMaxKeepAliveRequests()
int
getMaxPostSize()
int
getMaxSpareThreads()
int
getMaxThreads()
int
getMinSpareThreads()
String
getName()
String
getNoCompressionUserAgents()
ObjectName
getObjectName()
boolean
getPools()
int
getPort()
String
getProperty(String name)
Get a property
String
getProtocol()
String
getProtocols()
String
getReportedname()
String
getRestrictedUserAgents()
String
getSSLImplementation()
boolean
getSecure()
int
getServerSoTimeout()
int
getSoLinger()
int
getSoTimeout()
int
getSocketBuffer()
int
getSocketCloseDelay()
String
getSocketFactory()
boolean
getTcpNoDelay()
int
getThreadPriority()
int
getTimeout()
void
init()
Start the protocol
void
pause()
void
postDeregister()
void
postRegister(Boolean registrationDone)
void
preDeregister()
ObjectName
preRegister(MBeanServer server, ObjectName name)
void
resume()
void
setAdapter(Adapter adapter)
The adapter, used to call the connector
void
setAddress(InetAddress ia)
void
setAlgorithm(String k)
void
setAttribute(String name, Object value)
Pass config info
void
setBacklog(int i)
void
setCiphers(String ciphers)
void
setClientauth(String k)
void
setCompressableMimeType(String valueS)
void
setCompression(String valueS)
void
setCompressionMinSize(int valueI)
void
setDisableUploadTimeout(boolean isDisabled)
void
setKeyAlias(String keyAlias)
void
setKeypass(String k)
void
setKeystore(String k)
void
setKeytype(String k)
void
setMaxHttpHeaderSize(int valueI)
void
setMaxKeepAliveRequests(int mkar)
Set the maximum number of Keep-Alive requests that we will honor.
void
setMaxPostSize(int valueI)
void
setMaxSpareThreads(int maxThreads)
void
setMaxThreads(int maxThreads)
void
setMinSpareThreads(int minSpareThreads)
void
setNoCompressionUserAgents(String valueS)
void
setPools(boolean t)
void
setPort(int port)
void
setProperty(String name, String value)
Set a property.
void
setProtocol(String k)
void
setProtocols(String k)
void
setReportedname(String reportedName)
void
setRestrictedUserAgents(String valueS)
void
setSSLImplementation(String valueS)
void
setSecure(boolean b)
void
setServerSoTimeout(int i)
void
setSoLinger(int i)
void
setSoTimeout(int i)
void
setSocketBuffer(int valueI)
void
setSocketCloseDelay(int d)
void
setSocketFactory(String valueS)
void
setTcpNoDelay(boolean b)
void
setThreadPriority(int threadPriority)
void
setTimeout(int timeouts)
void
start()

Field Details

THREAD_DATA_OBJECT_NAME

public static final int THREAD_DATA_OBJECT_NAME

Field Value:
2


THREAD_DATA_PROCESSOR

public static final int THREAD_DATA_PROCESSOR

Field Value:
1


attributes

protected Hashtable attributes


domain

protected String domain


ep

protected PoolTcpEndpoint ep


log

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


mserver

protected MBeanServer mserver


oname

protected ObjectName oname


secure

protected boolean secure


sm

protected static StringManager sm
The string manager for this package.


socketFactory

protected ServerSocketFactory socketFactory


socketFactoryName

protected String socketFactoryName


sslImplementation

protected SSLImplementation sslImplementation


sslImplementationName

protected String sslImplementationName


tp

protected ThreadPool tp

Constructor Details

Http11Protocol

public Http11Protocol()

Method Details

destroy

public void destroy()
            throws Exception
Specified by:
destroy in interface ProtocolHandler


getAdapter

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


getAddress

public InetAddress getAddress()


getAlgorithm

public String getAlgorithm()


getAttribute

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


getBacklog

public int getBacklog()


getCiphers

public String getCiphers()


getClientauth

public String getClientauth()


getCompressableMimeType

public String getCompressableMimeType()


getCompression

public String getCompression()


getCompressionMinSize

public int getCompressionMinSize()


getDisableUploadTimeout

public boolean getDisableUploadTimeout()


getDomain

public String getDomain()


getKeyAlias

public String getKeyAlias()


getKeypass

public String getKeypass()


getKeystore

public String getKeystore()


getKeytype

public String getKeytype()


getMaxHttpHeaderSize

public int getMaxHttpHeaderSize()


getMaxKeepAliveRequests

public int getMaxKeepAliveRequests()


getMaxPostSize

public int getMaxPostSize()


getMaxSpareThreads

public int getMaxSpareThreads()


getMaxThreads

public int getMaxThreads()


getMinSpareThreads

public int getMinSpareThreads()


getName

public String getName()


getNoCompressionUserAgents

public String getNoCompressionUserAgents()


getObjectName

public ObjectName getObjectName()


getPools

public boolean getPools()


getPort

public int getPort()


getProperty

public String getProperty(String name)
Get a property


getProtocol

public String getProtocol()


getProtocols

public String getProtocols()


getReportedname

public String getReportedname()


getRestrictedUserAgents

public String getRestrictedUserAgents()


getSSLImplementation

public String getSSLImplementation()


getSecure

public boolean getSecure()


getServerSoTimeout

public int getServerSoTimeout()


getSoLinger

public int getSoLinger()


getSoTimeout

public int getSoTimeout()


getSocketBuffer

public int getSocketBuffer()


getSocketCloseDelay

public int getSocketCloseDelay()


getSocketFactory

public String getSocketFactory()


getTcpNoDelay

public boolean getTcpNoDelay()


getThreadPriority

public int getThreadPriority()


getTimeout

public int getTimeout()


init

public void init()
            throws Exception
Start the protocol
Specified by:
init in interface ProtocolHandler


pause

public void pause()
            throws Exception
Specified by:
pause in interface ProtocolHandler


postDeregister

public void postDeregister()


postRegister

public void postRegister(Boolean registrationDone)


preDeregister

public void preDeregister()
            throws Exception


preRegister

public ObjectName preRegister(MBeanServer server,
                              ObjectName name)
            throws Exception


resume

public void resume()
            throws Exception
Specified by:
resume in interface ProtocolHandler


setAdapter

public void setAdapter(Adapter adapter)
The adapter, used to call the connector
Specified by:
setAdapter in interface ProtocolHandler


setAddress

public void setAddress(InetAddress ia)


setAlgorithm

public void setAlgorithm(String k)


setAttribute

public void setAttribute(String name,
                         Object value)
Pass config info
Specified by:
setAttribute in interface ProtocolHandler


setBacklog

public void setBacklog(int i)


setCiphers

public void setCiphers(String ciphers)


setClientauth

public void setClientauth(String k)


setCompressableMimeType

public void setCompressableMimeType(String valueS)


setCompression

public void setCompression(String valueS)


setCompressionMinSize

public void setCompressionMinSize(int valueI)


setDisableUploadTimeout

public void setDisableUploadTimeout(boolean isDisabled)


setKeyAlias

public void setKeyAlias(String keyAlias)


setKeypass

public void setKeypass(String k)


setKeystore

public void setKeystore(String k)


setKeytype

public void setKeytype(String k)


setMaxHttpHeaderSize

public void setMaxHttpHeaderSize(int valueI)


setMaxKeepAliveRequests

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


setMaxPostSize

public void setMaxPostSize(int valueI)


setMaxSpareThreads

public void setMaxSpareThreads(int maxThreads)


setMaxThreads

public void setMaxThreads(int maxThreads)


setMinSpareThreads

public void setMinSpareThreads(int minSpareThreads)


setNoCompressionUserAgents

public void setNoCompressionUserAgents(String valueS)


setPools

public void setPools(boolean t)


setPort

public void setPort(int port)


setProperty

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


setProtocol

public void setProtocol(String k)


setProtocols

public void setProtocols(String k)


setReportedname

public void setReportedname(String reportedName)


setRestrictedUserAgents

public void setRestrictedUserAgents(String valueS)


setSSLImplementation

public void setSSLImplementation(String valueS)


setSecure

public void setSecure(boolean b)


setServerSoTimeout

public void setServerSoTimeout(int i)


setSoLinger

public void setSoLinger(int i)


setSoTimeout

public void setSoTimeout(int i)


setSocketBuffer

public void setSocketBuffer(int valueI)


setSocketCloseDelay

public void setSocketCloseDelay(int d)


setSocketFactory

public void setSocketFactory(String valueS)


setTcpNoDelay

public void setTcpNoDelay(boolean b)


setThreadPriority

public void setThreadPriority(int threadPriority)


setTimeout

public void setTimeout(int timeouts)


start

public void start()
            throws Exception
Specified by:
start in interface ProtocolHandler


Copyright B) 2000-2003 Apache Software Foundation. All Rights Reserved.