S
- The type of socket used by the implementationpublic abstract class AbstractAjpProtocol<S> extends AbstractProtocol<S>
ProtocolHandler
. All of the implementations that ship with
Tomcat are implemented this way.AbstractProtocol.AsyncTimeout, AbstractProtocol.ConnectionHandler<S>, AbstractProtocol.RecycledProcessors
Modifier and Type | Field and Description |
---|---|
protected boolean |
ajpFlush
Send AJP flush packet when flushing.
|
protected static StringManager |
sm
The string manager for this package.
|
adapter, clientCertProvider, domain, mserver, oname, processorCache, rgOname, tpOname
Constructor and Description |
---|
AbstractAjpProtocol(AbstractEndpoint<S> endpoint) |
Modifier and Type | Method and Description |
---|---|
void |
addSslHostConfig(SSLHostConfig sslHostConfig) |
void |
addUpgradeProtocol(UpgradeProtocol upgradeProtocol) |
protected Processor |
createProcessor()
Create and configure a new Processor instance for the current protocol
implementation.
|
protected Processor |
createUpgradeProcessor(SocketWrapperBase<?> socket,
UpgradeToken upgradeToken) |
SSLHostConfig[] |
findSslHostConfigs() |
UpgradeProtocol[] |
findUpgradeProtocols() |
boolean |
getAjpFlush() |
protected AbstractEndpoint<S> |
getEndpoint()
Overridden to make getter accessible to other classes in this package.
|
protected UpgradeProtocol |
getNegotiatedProtocol(String name)
Find a suitable handler for the protocol negotiated
at the network layer.
|
int |
getPacketSize() |
protected String |
getProtocolName()
Obtain the name of the protocol, (Http, Ajp, etc.).
|
boolean |
getTomcatAuthentication() |
boolean |
getTomcatAuthorization() |
protected UpgradeProtocol |
getUpgradeProtocol(String name)
Find a suitable handler for the protocol upgraded name specified.
|
void |
setAjpFlush(boolean ajpFlush) |
void |
setPacketSize(int packetSize) |
void |
setRequiredSecret(String requiredSecret) |
void |
setTomcatAuthentication(boolean tomcatAuthentication) |
void |
setTomcatAuthorization(boolean tomcatAuthorization) |
addWaitingProcessor, destroy, getAcceptorThreadCount, getAcceptorThreadPriority, getAdapter, getAddress, getAsyncTimeout, getBacklog, getClientCertProvider, getConnectionCount, getConnectionTimeout, getDomain, getExecutor, getHandler, getKeepAliveTimeout, getLocalPort, getLog, getMaxConnections, getMaxHeaderCount, getMaxThreads, getMinSpareThreads, getName, getNameIndex, getNamePrefix, getObjectName, getPort, getProcessorCache, getProperty, getSoLinger, getSoTimeout, getTcpNoDelay, getThreadPriority, init, isAprRequired, isSendfileSupported, pause, postDeregister, postRegister, preDeregister, preRegister, removeWaitingProcessor, resume, setAcceptorThreadCount, setAcceptorThreadPriority, setAdapter, setAddress, setBacklog, setClientCertProvider, setConnectionTimeout, setExecutor, setHandler, setKeepAliveTimeout, setMaxConnections, setMaxHeaderCount, setMaxThreads, setMinSpareThreads, setPort, setProcessorCache, setProperty, setSoLinger, setSoTimeout, setTcpNoDelay, setThreadPriority, start, stop
protected static final StringManager sm
protected boolean ajpFlush
public AbstractAjpProtocol(AbstractEndpoint<S> endpoint)
protected String getProtocolName()
AbstractProtocol
getProtocolName
in class AbstractProtocol<S>
protected AbstractEndpoint<S> getEndpoint()
getEndpoint
in class AbstractProtocol<S>
protected UpgradeProtocol getNegotiatedProtocol(String name)
getNegotiatedProtocol
in class AbstractProtocol<S>
name
- The name of the requested negotiated protocol.UpgradeProtocol.getAlpnName()
matches
the requested protocolprotected UpgradeProtocol getUpgradeProtocol(String name)
getUpgradeProtocol
in class AbstractProtocol<S>
name
- The name of the requested negotiated protocol.UpgradeProtocol.getAlpnName()
matches
the requested protocolpublic boolean getAjpFlush()
public void setAjpFlush(boolean ajpFlush)
public boolean getTomcatAuthentication()
public void setTomcatAuthentication(boolean tomcatAuthentication)
public boolean getTomcatAuthorization()
public void setTomcatAuthorization(boolean tomcatAuthorization)
public void setRequiredSecret(String requiredSecret)
public int getPacketSize()
public void setPacketSize(int packetSize)
public void addSslHostConfig(SSLHostConfig sslHostConfig)
public SSLHostConfig[] findSslHostConfigs()
public void addUpgradeProtocol(UpgradeProtocol upgradeProtocol)
public UpgradeProtocol[] findUpgradeProtocols()
protected Processor createProcessor()
AbstractProtocol
createProcessor
in class AbstractProtocol<S>
protected Processor createUpgradeProcessor(SocketWrapperBase<?> socket, UpgradeToken upgradeToken)
createUpgradeProcessor
in class AbstractProtocol<S>
Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.