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.Modifier and Type | Class and Description |
---|---|
protected static class |
AbstractAjpProtocol.AbstractAjpConnectionHandler<S,P extends AbstractAjpProcessor<S>> |
AbstractProtocol.AbstractConnectionHandler<S,P extends Processor<S>>, AbstractProtocol.RecycledProcessors<P extends Processor<S>,S>
Modifier and Type | Field and Description |
---|---|
protected boolean |
ajpFlush |
protected int |
packetSize
AJP packet size.
|
protected String |
requiredSecret |
protected static StringManager |
sm
The string manager for this package.
|
protected boolean |
tomcatAuthentication |
adapter, clientCertProvider, domain, endpoint, mserver, oname, processorCache, rgOname, tpOname
Constructor and Description |
---|
AbstractAjpProtocol() |
Modifier and Type | Method and Description |
---|---|
boolean |
getAjpFlush() |
String |
getAllowedRequestAttributesPattern() |
protected Pattern |
getAllowedRequestAttributesPatternPattern() |
int |
getPacketSize() |
protected String |
getProtocolName()
Obtain the name of the protocol, (Http, Ajp, etc.).
|
protected String |
getRequiredSecret()
Deprecated.
Replaced by
getSecret() .
Will be removed in Tomcat 11 onwards |
protected String |
getSecret() |
boolean |
getSecretRequired() |
boolean |
getTomcatAuthentication()
Should authentication be done in the native web server layer,
or in the Servlet container ?
|
boolean |
getTomcatAuthorization()
Should authentication be done in the native web server layer and
authorization in the Servlet container?
|
void |
setAjpFlush(boolean ajpFlush)
Configure whether to aend an AJP flush packet when flushing.
|
void |
setAllowedRequestAttributesPattern(String allowedRequestAttributesPattern) |
void |
setPacketSize(int packetSize) |
void |
setRequiredSecret(String requiredSecret)
Deprecated.
Replaced by
setSecret(String) .
Will be removed in Tomcat 11 onwards |
void |
setSecret(String secret)
Set the secret that must be included with every request.
|
void |
setSecretRequired(boolean secretRequired) |
void |
setTomcatAuthentication(boolean tomcatAuthentication) |
void |
setTomcatAuthorization(boolean tomcatAuthorization) |
void |
start()
Start the protocol.
|
destroy, getAdapter, getAddress, getBacklog, getClientCertProvider, getConnectionCount, getConnectionTimeout, getDomain, getExecutor, getHandler, getKeepAliveTimeout, getLocalPort, getLog, getMaxConnections, getMaxCookieCount, getMaxHeaderCount, getMaxThreads, getMinSpareThreads, getName, getNameIndex, getNamePrefix, getObjectName, getPort, getProcessorCache, getProperty, getSoLinger, getSoTimeout, getTcpNoDelay, getThreadPriority, init, isAprRequired, pause, postDeregister, postRegister, preDeregister, preRegister, resume, setAdapter, setAddress, setBacklog, setClientCertProvider, setConnectionTimeout, setExecutor, setKeepAliveTimeout, setMaxConnections, setMaxCookieCount, setMaxHeaderCount, setMaxThreads, setMinSpareThreads, setPort, setProcessorCache, setProperty, setSoLinger, setSoTimeout, setTcpNoDelay, setThreadPriority, stop
protected static final StringManager sm
protected boolean ajpFlush
protected boolean tomcatAuthentication
protected String requiredSecret
protected int packetSize
protected String getProtocolName()
AbstractProtocol
getProtocolName
in class AbstractProtocol<S>
public boolean getAjpFlush()
public void setAjpFlush(boolean ajpFlush)
ajpFlush
- The new flush settingpublic boolean getTomcatAuthentication()
true
if authentication should be performed by Tomcat,
otherwise false
public void setTomcatAuthentication(boolean tomcatAuthentication)
public boolean getTomcatAuthorization()
true
if authorization should be performed by Tomcat,
otherwise false
public void setTomcatAuthorization(boolean tomcatAuthorization)
public void setSecret(String secret)
secret
- The required secretprotected String getSecret()
@Deprecated public void setRequiredSecret(String requiredSecret)
setSecret(String)
.
Will be removed in Tomcat 11 onwardsrequiredSecret
- The required secret@Deprecated protected String getRequiredSecret()
getSecret()
.
Will be removed in Tomcat 11 onwardspublic void setSecretRequired(boolean secretRequired)
public boolean getSecretRequired()
public void setAllowedRequestAttributesPattern(String allowedRequestAttributesPattern)
public String getAllowedRequestAttributesPattern()
protected Pattern getAllowedRequestAttributesPatternPattern()
public int getPacketSize()
public void setPacketSize(int packetSize)
public void start() throws Exception
ProtocolHandler
start
in interface ProtocolHandler
start
in class AbstractProtocol<S>
Exception
- If the protocol handler fails to startCopyright © 2000-2021 Apache Software Foundation. All Rights Reserved.