Class Constants
java.lang.Object
org.apache.tomcat.websocket.Constants
Internal implementation constants.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringProperty name for abnormal session close send timeout configuration.static final StringAuthorization HTTP header name.static final StringProperty name for blocking send timeout configuration.static final StringConnection HTTP header name.static final StringConnection header upgrade value.static final longDefault abnormal session close send timeout in milliseconds (50ms).static final longDefault blocking send timeout in milliseconds (20 seconds).static final longDefault session close timeout in milliseconds (30 seconds).static final intHTTP 302 Found.static final StringHost HTTP header name.List of installed WebSocket extensions.static final longDefault I/O timeout in milliseconds for WebSocket client connections.static final StringProperty name to set to configure the timeout (in milliseconds) when establishing a WebSocket connection to server.static final StringLocation HTTP header name.static final intDefault maximum number of redirects.static final StringProperty name for maximum redirect count.static final intHTTP 301 Moved Permanently.static final intHTTP 300 Multiple Choices.static final byteBinary frame opcode.static final byteClose frame opcode.static final byteContinuation frame opcode.static final bytePing frame opcode.static final bytePong frame opcode.static final byteText frame opcode.static final StringOrigin HTTP header name.static final StringProxy-Authenticate HTTP header name.static final intHTTP 407 Proxy Authentication Required.static final StringProxy-Authorization HTTP header name.static final StringProperty name for read idle timeout in milliseconds on WebSocket sessions.static final intHTTP 303 See Other.static final StringProperty name for session close timeout configuration.static final StringDeprecated, for removal: This API element is subject to removal in a future version.This will be removed in Tomcat 11.static final StringDeprecated, for removal: This API element is subject to removal in a future version.This will be removed in Tomcat 11.static final StringDeprecated, for removal: This API element is subject to removal in a future version.static final StringDeprecated, for removal: This API element is subject to removal in a future version.static final StringDeprecated, for removal: This API element is subject to removal in a future version.static final intHTTP 307 Temporary Redirect.static final intHTTP 401 Unauthorized.static final StringUpgrade HTTP header name.static final StringUpgrade header value for WebSocket.static final intHTTP 305 Use Proxy.static final StringProperty name for write idle timeout in milliseconds on WebSocket sessions.static final StringProperty name for WebSocket authentication password.static final StringProperty name for WebSocket proxy authentication password.static final StringProperty name for WebSocket proxy authentication realm.static final StringProperty name for WebSocket proxy authentication username.static final StringProperty name for WebSocket authentication realm.static final StringProperty name for WebSocket authentication username.static final StringSec-WebSocket-Extensions HTTP header name.static final StringSec-WebSocket-Key HTTP header name.static final StringSec-WebSocket-Protocol HTTP header name.static final StringSec-WebSocket-Version HTTP header name.static final StringSec-WebSocket-Version header value.static final StringWWW-Authenticate HTTP header name. -
Method Summary
-
Field Details
-
OPCODE_CONTINUATION
public static final byte OPCODE_CONTINUATIONContinuation frame opcode.- See Also:
-
OPCODE_TEXT
public static final byte OPCODE_TEXTText frame opcode.- See Also:
-
OPCODE_BINARY
public static final byte OPCODE_BINARYBinary frame opcode.- See Also:
-
OPCODE_CLOSE
public static final byte OPCODE_CLOSEClose frame opcode.- See Also:
-
OPCODE_PING
public static final byte OPCODE_PINGPing frame opcode.- See Also:
-
OPCODE_PONG
public static final byte OPCODE_PONGPong frame opcode.- See Also:
-
SSL_PROTOCOLS_PROPERTY
@Deprecated(forRemoval=true, since="Tomcat 10.1.x") public static final String SSL_PROTOCOLS_PROPERTYDeprecated, for removal: This API element is subject to removal in a future version.This will be removed in Tomcat 11. UseClientEndpointConfig.getSSLContext()Property name to set to configure the value that is passed toSSLEngine.setEnabledProtocols(String[]). The value should be a comma separated string.- See Also:
-
SSL_TRUSTSTORE_PROPERTY
@Deprecated(forRemoval=true, since="Tomcat 10.1.x") public static final String SSL_TRUSTSTORE_PROPERTYDeprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
SSL_TRUSTSTORE_PWD_PROPERTY
@Deprecated(forRemoval=true, since="Tomcat 10.1.x") public static final String SSL_TRUSTSTORE_PWD_PROPERTYDeprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
SSL_TRUSTSTORE_PWD_DEFAULT
@Deprecated(forRemoval=true, since="Tomcat 10.1.x") public static final String SSL_TRUSTSTORE_PWD_DEFAULTDeprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
SSL_CONTEXT_PROPERTY
Deprecated, for removal: This API element is subject to removal in a future version.This will be removed in Tomcat 11. UseClientEndpointConfig.getSSLContext()Property name to set to configure used SSLContext. The value should be an instance of SSLContext. If this property is present, the SSL_TRUSTSTORE* properties are ignored.- See Also:
-
IO_TIMEOUT_MS_PROPERTY
Property name to set to configure the timeout (in milliseconds) when establishing a WebSocket connection to server. The default isIO_TIMEOUT_MS_DEFAULT.- See Also:
-
IO_TIMEOUT_MS_DEFAULT
public static final long IO_TIMEOUT_MS_DEFAULTDefault I/O timeout in milliseconds for WebSocket client connections.- See Also:
-
MAX_REDIRECTIONS_PROPERTY
Property name for maximum redirect count.- See Also:
-
MAX_REDIRECTIONS_DEFAULT
public static final int MAX_REDIRECTIONS_DEFAULTDefault maximum number of redirects.- See Also:
-
HOST_HEADER_NAME
-
UPGRADE_HEADER_NAME
-
UPGRADE_HEADER_VALUE
-
ORIGIN_HEADER_NAME
-
CONNECTION_HEADER_NAME
-
CONNECTION_HEADER_VALUE
-
LOCATION_HEADER_NAME
-
AUTHORIZATION_HEADER_NAME
-
WWW_AUTHENTICATE_HEADER_NAME
WWW-Authenticate HTTP header name.- See Also:
-
PROXY_AUTHORIZATION_HEADER_NAME
Proxy-Authorization HTTP header name.- See Also:
-
PROXY_AUTHENTICATE_HEADER_NAME
Proxy-Authenticate HTTP header name.- See Also:
-
WS_VERSION_HEADER_NAME
-
WS_VERSION_HEADER_VALUE
-
WS_KEY_HEADER_NAME
-
WS_PROTOCOL_HEADER_NAME
Sec-WebSocket-Protocol HTTP header name.- See Also:
-
WS_EXTENSIONS_HEADER_NAME
Sec-WebSocket-Extensions HTTP header name.- See Also:
-
MULTIPLE_CHOICES
public static final int MULTIPLE_CHOICESHTTP 300 Multiple Choices.- See Also:
-
MOVED_PERMANENTLY
public static final int MOVED_PERMANENTLYHTTP 301 Moved Permanently.- See Also:
-
FOUND
public static final int FOUNDHTTP 302 Found.- See Also:
-
SEE_OTHER
public static final int SEE_OTHERHTTP 303 See Other.- See Also:
-
USE_PROXY
public static final int USE_PROXYHTTP 305 Use Proxy.- See Also:
-
TEMPORARY_REDIRECT
public static final int TEMPORARY_REDIRECTHTTP 307 Temporary Redirect.- See Also:
-
UNAUTHORIZED
public static final int UNAUTHORIZEDHTTP 401 Unauthorized.- See Also:
-
PROXY_AUTHENTICATION_REQUIRED
public static final int PROXY_AUTHENTICATION_REQUIREDHTTP 407 Proxy Authentication Required.- See Also:
-
BLOCKING_SEND_TIMEOUT_PROPERTY
Property name for blocking send timeout configuration.- See Also:
-
DEFAULT_BLOCKING_SEND_TIMEOUT
public static final long DEFAULT_BLOCKING_SEND_TIMEOUTDefault blocking send timeout in milliseconds (20 seconds).- See Also:
-
SESSION_CLOSE_TIMEOUT_PROPERTY
Property name for session close timeout configuration.- See Also:
-
DEFAULT_SESSION_CLOSE_TIMEOUT
public static final long DEFAULT_SESSION_CLOSE_TIMEOUTDefault session close timeout in milliseconds (30 seconds). -
ABNORMAL_SESSION_CLOSE_SEND_TIMEOUT_PROPERTY
Property name for abnormal session close send timeout configuration.- See Also:
-
DEFAULT_ABNORMAL_SESSION_CLOSE_SEND_TIMEOUT
public static final long DEFAULT_ABNORMAL_SESSION_CLOSE_SEND_TIMEOUTDefault abnormal session close send timeout in milliseconds (50ms).- See Also:
-
READ_IDLE_TIMEOUT_MS
Property name for read idle timeout in milliseconds on WebSocket sessions.- See Also:
-
WRITE_IDLE_TIMEOUT_MS
Property name for write idle timeout in milliseconds on WebSocket sessions.- See Also:
-
WS_AUTHENTICATION_USER_NAME
Property name for WebSocket authentication username.- See Also:
-
WS_AUTHENTICATION_PASSWORD
Property name for WebSocket authentication password.- See Also:
-
WS_AUTHENTICATION_REALM
Property name for WebSocket authentication realm.- See Also:
-
WS_AUTHENTICATION_PROXY_USER_NAME
Property name for WebSocket proxy authentication username.- See Also:
-
WS_AUTHENTICATION_PROXY_PASSWORD
Property name for WebSocket proxy authentication password.- See Also:
-
WS_AUTHENTICATION_PROXY_REALM
Property name for WebSocket proxy authentication realm.- See Also:
-
INSTALLED_EXTENSIONS
-