public abstract class AbstractAjpProtocol<S> extends AbstractProtocol<S>
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
Send AJP flush packet when flushing.
|
protected int |
packetSize
AJP packet size.
|
protected java.lang.String |
requiredSecret
Required secret.
|
protected static StringManager |
sm
The string manager for this package.
|
protected boolean |
tomcatAuthentication
Should authentication be done in the native web server layer,
or in the Servlet container ?
|
adapter, clientCertProvider, domain, endpoint, mserver, oname, processorCache, rgOname, tpOname
Constructor and Description |
---|
AbstractAjpProtocol() |
Modifier and Type | Method and Description |
---|---|
boolean |
getAjpFlush() |
java.lang.String |
getAllowedRequestAttributesPattern() |
protected java.util.regex.Pattern |
getAllowedRequestAttributesPatternPattern() |
int |
getPacketSize() |
protected java.lang.String |
getProtocolName()
Obtain the name of the protocol, (Http, Ajp, etc.).
|
protected java.lang.String |
getRequiredSecret()
Deprecated.
Replaced by
getSecret() .
Will be removed in Tomcat 11 onwards |
protected java.lang.String |
getSecret() |
boolean |
getSecretRequired() |
boolean |
getTomcatAuthentication() |
boolean |
getTomcatAuthorization() |
void |
setAjpFlush(boolean ajpFlush) |
void |
setAllowedRequestAttributesPattern(java.lang.String allowedRequestAttributesPattern) |
void |
setPacketSize(int packetSize) |
void |
setRequiredSecret(java.lang.String requiredSecret)
Deprecated.
Replaced by
setSecret(String) .
Will be removed in Tomcat 11 onwards |
void |
setSecret(java.lang.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 java.lang.String requiredSecret
protected int packetSize
protected java.lang.String getProtocolName()
AbstractProtocol
getProtocolName
in class AbstractProtocol<S>
public 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 setSecret(java.lang.String secret)
secret
- The required secretprotected java.lang.String getSecret()
@Deprecated public void setRequiredSecret(java.lang.String requiredSecret)
setSecret(String)
.
Will be removed in Tomcat 11 onwardsrequiredSecret
- The required secret@Deprecated protected java.lang.String getRequiredSecret()
getSecret()
.
Will be removed in Tomcat 11 onwardspublic void setSecretRequired(boolean secretRequired)
public boolean getSecretRequired()
public void setAllowedRequestAttributesPattern(java.lang.String allowedRequestAttributesPattern)
public java.lang.String getAllowedRequestAttributesPattern()
protected java.util.regex.Pattern getAllowedRequestAttributesPatternPattern()
public int getPacketSize()
public void setPacketSize(int packetSize)
public void start() throws java.lang.Exception
ProtocolHandler
start
in interface ProtocolHandler
start
in class AbstractProtocol<S>
java.lang.Exception
Copyright © 2000-2020 Apache Software Foundation. All Rights Reserved.