/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License.
*/ package org.apache.tomcat.websocket;
// Internal OP Codes // RFC 6455 limits OP Codes to 4 bits so these should never clash // Always set bit 4 so these will be treated as control codes staticfinalbyte INTERNAL_OPCODE_FLUSH = 0x18;
// Client connection /** * Property name to set to configure the value that is passed to * {@link javax.net.ssl.SSLEngine#setEnabledProtocols(String[])}. The value should be a comma separated string. * * @deprecated This will be removed in Tomcat 11. Use {@link ClientEndpointConfig#getSSLContext()}
*/
@Deprecated(forRemoval = true, since = "Tomcat 10.1.x") publicstaticfinal String SSL_PROTOCOLS_PROPERTY = "org.apache.tomcat.websocket.SSL_PROTOCOLS";
@Deprecated(forRemoval = true, since = "Tomcat 10.1.x") publicstaticfinal String SSL_TRUSTSTORE_PROPERTY = "org.apache.tomcat.websocket.SSL_TRUSTSTORE";
@Deprecated(forRemoval = true, since = "Tomcat 10.1.x") publicstaticfinal String SSL_TRUSTSTORE_PWD_PROPERTY = "org.apache.tomcat.websocket.SSL_TRUSTSTORE_PWD";
@Deprecated(forRemoval = true, since = "Tomcat 10.1.x") publicstaticfinal String SSL_TRUSTSTORE_PWD_DEFAULT = "changeit"; /** * 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. * * @deprecated This will be removed in Tomcat 11. Use {@link ClientEndpointConfig#getSSLContext()}
*/
@Deprecated(forRemoval = true, since = "Tomcat 10.1.x") publicstaticfinal String SSL_CONTEXT_PROPERTY = "org.apache.tomcat.websocket.SSL_CONTEXT"; /** * Property name to set to configure the timeout (in milliseconds) when establishing a WebSocket connection to * server. The default is {@link #IO_TIMEOUT_MS_DEFAULT}.
*/ publicstaticfinal String IO_TIMEOUT_MS_PROPERTY = "org.apache.tomcat.websocket.IO_TIMEOUT_MS"; publicstaticfinallong IO_TIMEOUT_MS_DEFAULT = 5000;
// RFC 2068 recommended a limit of 5 // Most browsers have a default limit of 20 publicstaticfinal String MAX_REDIRECTIONS_PROPERTY = "org.apache.tomcat.websocket.MAX_REDIRECTIONS"; publicstaticfinalint MAX_REDIRECTIONS_DEFAULT = 20;
// Configuration for Origin header in client staticfinal String DEFAULT_ORIGIN_HEADER_VALUE = System
.getProperty("org.apache.tomcat.websocket.DEFAULT_ORIGIN_HEADER_VALUE");
// Configuration for blocking sends publicstaticfinal String BLOCKING_SEND_TIMEOUT_PROPERTY = "org.apache.tomcat.websocket.BLOCKING_SEND_TIMEOUT"; // Milliseconds so this is 20 seconds publicstaticfinallong DEFAULT_BLOCKING_SEND_TIMEOUT = 20 * 1000;
// Configuration for read idle timeout on WebSocket session publicstaticfinal String READ_IDLE_TIMEOUT_MS = "org.apache.tomcat.websocket.READ_IDLE_TIMEOUT_MS";
// Configuration for write idle timeout on WebSocket session publicstaticfinal String WRITE_IDLE_TIMEOUT_MS = "org.apache.tomcat.websocket.WRITE_IDLE_TIMEOUT_MS";
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.