org.apache.coyote.ProtocolHandler . All of the implementations that ship with Tomcat are
implemented this way.
| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private Pattern | |
| private int | packetSize
AJP packet size. |
| private String | |
| private boolean | |
| protected static final StringManager | sm
The string manager for this package.
|
| private boolean | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | addSslHostConfig(SSLHostConfig
the configuration sslHostConfig)Implements org. Add a new SSL configuration for a virtual host. |
| public void | addSslHostConfig(SSLHostConfig
the configuration sslHostConfig, boolean If replace)true replacement of an existing configuration is permitted, otherwise any such
attempted replacement will trigger an exceptionImplements org. Add a new SSL configuration for a virtual host. |
| public void | addUpgradeProtocol(UpgradeProtocol
the protocol upgradeProtocol)Implements org. Add a new protocol for used by HTTP/1.1 upgrade or ALPN. |
| protected Processor | createProcessor()
Implements abstract org. Create and configure a new Processor instance for the current protocol implementation. |
| protected Processor | createUpgradeProcessor(SocketWrapperBase<?> socket, UpgradeToken upgradeToken)
Implements abstract org.
|
| public SSLHostConfig[] | findSslHostConfigs()
Implements org. Find all configured SSL virtual host configurations which will be used by SNI. |
| public UpgradeProtocol[] | findUpgradeProtocols()
Implements org. Return all configured upgrade protocols. |
| public boolean | |
| public String | |
| protected Pattern | |
| public int | getDesiredBufferSize()
Overrides default org. Some protocols, like AJP, have a packet length that shouldn't be exceeded, and this can be used to adjust the buffering used by the application layer. |
| protected AbstractEndpoint | getEndpoint()
Overrides org. Overridden to make getter accessible to other classes in this package. |
| protected UpgradeProtocol | getNegotiatedProtocol(String
The name of the requested negotiated protocol. name)Implements abstract org. Find a suitable handler for the protocol negotiated at the network layer. |
| public int | |
| protected String | getProtocolName()
Implements abstract org. Obtain the name of the protocol, (Http, Ajp, etc.). |
| protected String | Returns: The current secret
Deprecated
Replaced by
getSecret(). Will be removed in Tomcat 11 onwards
|
| protected String | |
| public boolean | |
| public boolean | Returns: true if authentication should be performed by Tomcat, otherwise falseShould authentication be done in the native web server layer, or in the Servlet container ? |
| public boolean | Returns: true if authorization should be performed by Tomcat, otherwise falseShould authentication be done in the native web server layer and authorization in the Servlet container? |
| protected UpgradeProtocol | getUpgradeProtocol(String
The name of the requested negotiated protocol. name)Implements abstract org. Find a suitable handler for the protocol upgraded name specified. |
| public void | setAjpFlush(boolean
The new flush setting ajpFlush)Configure whether to aend an AJP flush packet when flushing. |
| public void | |
| public void | |
| public void | setRequiredSecret(String
The required secret requiredSecret)
Deprecated
Replaced by
setSecret(String). Will be removed in Tomcat 11 onwards
Set the required secret that must be included with every request. |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | start()
Overrides org. Implements org. Start the protocol. |
| ajpFlush | back to summary |
|---|---|
| private boolean ajpFlush | |
| allowedRequestAttributesPattern | back to summary |
|---|---|
| private Pattern allowedRequestAttributesPattern | |
| packetSize | back to summary |
|---|---|
| private int packetSize AJP packet size. | |
| secret | back to summary |
|---|---|
| private String secret | |
| secretRequired | back to summary |
|---|---|
| private boolean secretRequired | |
| sm | back to summary |
|---|---|
| protected static final StringManager sm Hides org. The string manager for this package. | |
| tomcatAuthentication | back to summary |
|---|---|
| private boolean tomcatAuthentication | |
| tomcatAuthorization | back to summary |
|---|---|
| private boolean tomcatAuthorization | |
| AbstractAjpProtocol | back to summary |
|---|---|
| public AbstractAjpProtocol(AbstractEndpoint<S, ?> endpoint) | |
| addSslHostConfig | back to summary |
|---|---|
| public void addSslHostConfig(SSLHostConfig sslHostConfig) Implements org. Doc from org. Add a new SSL configuration for a virtual host.
| |
| addSslHostConfig | back to summary |
|---|---|
| public void addSslHostConfig(SSLHostConfig sslHostConfig, boolean replace) Implements org. Doc from org. Add a new SSL configuration for a virtual host.
| |
| addUpgradeProtocol | back to summary |
|---|---|
| public void addUpgradeProtocol(UpgradeProtocol upgradeProtocol) Implements org. Doc from org. Add a new protocol for used by HTTP/1.1 upgrade or ALPN.
| |
| createProcessor | back to summary |
|---|---|
| protected Processor createProcessor() Implements abstract org. Doc from org. Create and configure a new Processor instance for the current protocol implementation. | |
| createUpgradeProcessor | back to summary |
|---|---|
| protected Processor createUpgradeProcessor(SocketWrapperBase<?> socket, UpgradeToken upgradeToken) Implements abstract org.
| |
| findSslHostConfigs | back to summary |
|---|---|
| public SSLHostConfig[] findSslHostConfigs() Implements org. Doc from org. Find all configured SSL virtual host configurations which will be used by SNI.
| |
| findUpgradeProtocols | back to summary |
|---|---|
| public UpgradeProtocol[] findUpgradeProtocols() Implements org. Doc from org. Return all configured upgrade protocols.
| |
| getAjpFlush | back to summary |
|---|---|
| public boolean getAjpFlush() | |
| getAllowedRequestAttributesPattern | back to summary |
|---|---|
| public String getAllowedRequestAttributesPattern() | |
| getAllowedRequestAttributesPatternInternal | back to summary |
|---|---|
| protected Pattern getAllowedRequestAttributesPatternInternal() | |
| getDesiredBufferSize | back to summary |
|---|---|
| public int getDesiredBufferSize() Overrides default org. Doc from org. Some protocols, like AJP, have a packet length that shouldn't be exceeded, and this can be used to adjust the buffering used by the application layer.
| |
| getEndpoint | back to summary |
|---|---|
| protected AbstractEndpoint Overrides org. Overridden to make getter accessible to other classes in this package.
| |
| getNegotiatedProtocol | back to summary |
|---|---|
| protected UpgradeProtocol getNegotiatedProtocol(String name) Implements abstract org. Doc from org. Find a suitable handler for the protocol negotiated at the network layer. AJP does not support protocol negotiation so this always returns null.
| |
| getPacketSize | back to summary |
|---|---|
| public int getPacketSize() | |
| getProtocolName | back to summary |
|---|---|
| protected String getProtocolName() Implements abstract org. Doc from org. Obtain the name of the protocol, (Http, Ajp, etc.). Used with JMX. | |
| getRequiredSecret | back to summary |
|---|---|
| protected String getRequiredSecret()
Deprecated Replaced by
| |
| getSecret | back to summary |
|---|---|
| protected String getSecret() | |
| getSecretRequired | back to summary |
|---|---|
| public boolean getSecretRequired() | |
| getTomcatAuthentication | back to summary |
|---|---|
| public boolean getTomcatAuthentication() Should authentication be done in the native web server layer, or in the Servlet container ?
| |
| getTomcatAuthorization | back to summary |
|---|---|
| public boolean getTomcatAuthorization() Should authentication be done in the native web server layer and authorization in the Servlet container?
| |
| getUpgradeProtocol | back to summary |
|---|---|
| protected UpgradeProtocol getUpgradeProtocol(String name) Implements abstract org. Doc from org. Find a suitable handler for the protocol upgraded name specified. This is used for direct connection protocol selection. AJP does not support protocol upgrade so this always returns null.
| |
| setAjpFlush | back to summary |
|---|---|
| public void setAjpFlush(boolean ajpFlush) Configure whether to aend an AJP flush packet when flushing. A flush packet is a zero byte AJP13 SEND_BODY_CHUNK packet. mod_jk and mod_proxy_ajp interpret this as a request to flush data to the client. AJP always does flush at the and of the response, so if it is not important, that the packets get streamed up to the client, do not use extra flush packets. For compatibility and to stay on the safe side, flush packets are enabled by default.
| |
| setAllowedRequestAttributesPattern | back to summary |
|---|---|
| public void setAllowedRequestAttributesPattern(String allowedRequestAttributesPattern) | |
| setPacketSize | back to summary |
|---|---|
| public void setPacketSize(int packetSize) | |
| setRequiredSecret | back to summary |
|---|---|
| public void setRequiredSecret(String requiredSecret)
Deprecated Replaced by Set the required secret that must be included with every request.
| |
| setSecret | back to summary |
|---|---|
| public void setSecret(String secret) Set the secret that must be included with every request.
| |
| setSecretRequired | back to summary |
|---|---|
| public void setSecretRequired(boolean secretRequired) | |
| setTomcatAuthentication | back to summary |
|---|---|
| public void setTomcatAuthentication(boolean tomcatAuthentication) | |
| setTomcatAuthorization | back to summary |
|---|---|
| public void setTomcatAuthorization(boolean tomcatAuthorization) | |
| start | back to summary |
|---|---|
| public void start() throws Exception Overrides org. Implements org. Doc from org. Start the protocol. | |