org.apache.coyote.ajp

Class AjpProtocol

public class AjpProtocol 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 classAjpProtocol.AjpConnectionHandler
Field Summary
protected Hashtableattributes
Configuration attributes.
protected Stringdomain
protected JIoEndpointendpoint
Associated java.io endpoint.
protected intkeepAliveTimeout
The number of seconds Tomcat will wait for a subsequent request before closing the connection.
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
AjpProtocol()
Method Summary
voiddestroy()
AdaptergetAdapter()
InetAddressgetAddress()
ObjectgetAttribute(String key)
IteratorgetAttributeNames()
intgetBacklog()
StringgetDomain()
ExecutorgetExecutor()
intgetKeepAliveTimeout()
intgetMaxThreads()
StringgetName()
ObjectNamegetObjectName()
intgetPacketSize()
intgetPort()
intgetProcessorCache()
intgetSoLinger()
intgetSoTimeout()
booleangetTcpNoDelay()
intgetThreadPriority()
booleangetTomcatAuthentication()
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)
voidsetPort(int port)
voidsetProcessorCache(int processorCache)
voidsetRequiredSecret(String requiredSecret)
voidsetSoLinger(int soLinger)
voidsetSoTimeout(int soTimeout)
voidsetTcpNoDelay(boolean tcpNoDelay)
voidsetThreadPriority(int threadPriority)
voidsetTomcatAuthentication(boolean tomcatAuthentication)
voidstart()

Field Detail

attributes

protected Hashtable attributes
Configuration attributes.

domain

protected String domain

endpoint

protected JIoEndpoint endpoint
Associated java.io endpoint.

keepAliveTimeout

protected int keepAliveTimeout
The number of seconds Tomcat will wait for a subsequent request before closing the connection.

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

AjpProtocol

public AjpProtocol()

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()

getMaxThreads

public int getMaxThreads()

getName

public String getName()

getObjectName

public ObjectName getObjectName()

getPacketSize

public int getPacketSize()

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()

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)

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)

start

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