org.apache.coyote.ajp

Class AjpAprProtocol

public class AjpAprProtocol extends 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.

Author: Remy Maucherat Costin Manolache

Nested Class Summary
protected static classAjpAprProtocol.AjpConnectionHandler
Field Summary
protected Hashtableattributes
Configuration attributes.
protected Stringdomain
protected AprEndpointendpoint
Associated APR endpoint.
protected static Loglog
protected MBeanServermserver
protected ObjectNameoname
protected intpacketSize
AJP packet size.
protected intprocessorCache
Processor cache.
protected StringrequiredSecret
Required secret.
protected ObjectNamergOname
protected static StringManagersm
The string manager for this package.
protected booleantomcatAuthentication
Should authentication be done in the native webserver layer, or in the Servlet container ?
protected ObjectNametpOname
Constructor Summary
AjpAprProtocol()
Method Summary
voiddestroy()
AdaptergetAdapter()
InetAddressgetAddress()
ObjectgetAttribute(String key)
IteratorgetAttributeNames()
intgetBacklog()
StringgetDomain()
ExecutorgetExecutor()
intgetKeepAliveTimeout()
The number of seconds Tomcat will wait for a subsequent request before closing the connection.
intgetMaxThreads()
StringgetName()
ObjectNamegetObjectName()
intgetPacketSize()
intgetPollerSize()
intgetPollTime()
intgetPort()
intgetProcessorCache()
intgetSoLinger()
intgetSoTimeout()
booleangetTcpNoDelay()
intgetThreadPriority()
booleangetTomcatAuthentication()
booleangetUseSendfile()
voidinit()
Start the protocol
voidpause()
voidpostDeregister()
voidpostRegister(Boolean registrationDone)
voidpreDeregister()
ObjectNamepreRegister(MBeanServer server, ObjectName name)
voidresume()
voidsetAdapter(Adapter adapter)
The adapter, used to call the connector
voidsetAddress(InetAddress ia)
voidsetAttribute(String name, Object value)
Pass config info
voidsetBacklog(int backlog)
voidsetExecutor(Executor executor)
voidsetKeepAliveTimeout(int timeout)
voidsetMaxThreads(int maxThreads)
voidsetPacketSize(int packetSize)
voidsetPollerSize(int pollerSize)
voidsetPollTime(int pollTime)
voidsetPort(int port)
voidsetProcessorCache(int processorCache)
voidsetRequiredSecret(String requiredSecret)
voidsetSoLinger(int soLinger)
voidsetSoTimeout(int soTimeout)
voidsetTcpNoDelay(boolean tcpNoDelay)
voidsetThreadPriority(int threadPriority)
voidsetTomcatAuthentication(boolean tomcatAuthentication)
voidsetUseSendfile(boolean useSendfile)
voidstart()

Field Detail

attributes

protected Hashtable attributes
Configuration attributes.

domain

protected String domain

endpoint

protected AprEndpoint endpoint
Associated APR endpoint.

log

protected static Log log

mserver

protected MBeanServer mserver

oname

protected ObjectName oname

packetSize

protected int packetSize
AJP packet size.

processorCache

protected int processorCache
Processor cache.

requiredSecret

protected String requiredSecret
Required secret.

rgOname

protected ObjectName rgOname

sm

protected static StringManager sm
The string manager for this package.

tomcatAuthentication

protected boolean tomcatAuthentication
Should authentication be done in the native webserver layer, or in the Servlet container ?

tpOname

protected ObjectName tpOname

Constructor Detail

AjpAprProtocol

public AjpAprProtocol()

Method Detail

destroy

public void destroy()

getAdapter

public Adapter getAdapter()

getAddress

public InetAddress getAddress()

getAttribute

public Object getAttribute(String key)

getAttributeNames

public Iterator getAttributeNames()

getBacklog

public int getBacklog()

getDomain

public String getDomain()

getExecutor

public Executor getExecutor()

getKeepAliveTimeout

public int getKeepAliveTimeout()
The number of seconds Tomcat will wait for a subsequent request before closing the connection.

getMaxThreads

public int getMaxThreads()

getName

public String getName()

getObjectName

public ObjectName getObjectName()

getPacketSize

public int getPacketSize()

getPollerSize

public int getPollerSize()

getPollTime

public int getPollTime()

getPort

public int getPort()

getProcessorCache

public int getProcessorCache()

getSoLinger

public int getSoLinger()

getSoTimeout

public int getSoTimeout()

getTcpNoDelay

public boolean getTcpNoDelay()

getThreadPriority

public int getThreadPriority()

getTomcatAuthentication

public boolean getTomcatAuthentication()

getUseSendfile

public boolean getUseSendfile()

init

public void init()
Start the protocol

pause

public void pause()

postDeregister

public void postDeregister()

postRegister

public void postRegister(Boolean registrationDone)

preDeregister

public void preDeregister()

preRegister

public ObjectName preRegister(MBeanServer server, ObjectName name)

resume

public void resume()

setAdapter

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

setAddress

public void setAddress(InetAddress ia)

setAttribute

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

setBacklog

public void setBacklog(int backlog)

setExecutor

public void setExecutor(Executor executor)

setKeepAliveTimeout

public void setKeepAliveTimeout(int timeout)

setMaxThreads

public void setMaxThreads(int maxThreads)

setPacketSize

public void setPacketSize(int packetSize)

setPollerSize

public void setPollerSize(int pollerSize)

setPollTime

public void setPollTime(int pollTime)

setPort

public void setPort(int port)

setProcessorCache

public void setProcessorCache(int processorCache)

setRequiredSecret

public void setRequiredSecret(String requiredSecret)

setSoLinger

public void setSoLinger(int soLinger)

setSoTimeout

public void setSoTimeout(int soTimeout)

setTcpNoDelay

public void setTcpNoDelay(boolean tcpNoDelay)

setThreadPriority

public void setThreadPriority(int threadPriority)

setTomcatAuthentication

public void setTomcatAuthentication(boolean tomcatAuthentication)

setUseSendfile

public void setUseSendfile(boolean useSendfile)

start

public void start()
Copyright © 2000-2011 Apache Software Foundation. All Rights Reserved.