
org.glassfish.grizzly.websockets.Constants Maven / Gradle / Ivy
The newest version!
/*
* Copyright (c) 2013, 2017 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
* http://www.eclipse.org/legal/epl-2.0.
*
* This Source Code may also be made available under the following Secondary
* Licenses when the conditions for such availability set forth in the
* Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
* version 2 with the GNU Classpath Exception, which is available at
* https://www.gnu.org/software/classpath/license.html.
*
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
*/
package org.glassfish.grizzly.websockets;
public final class Constants {
public static final String SEC_WS_ACCEPT = "Sec-WebSocket-Accept";
public static final String SEC_WS_KEY_HEADER = "Sec-WebSocket-Key";
public static final String SEC_WS_ORIGIN_HEADER = "Sec-WebSocket-Origin";
public static final String ORIGIN_HEADER = "Origin";
public static final String SEC_WS_PROTOCOL_HEADER = "Sec-WebSocket-Protocol";
public static final String SEC_WS_EXTENSIONS_HEADER = "Sec-WebSocket-Extensions";
public static final String SEC_WS_VERSION = "Sec-WebSocket-Version";
public static final String WEBSOCKET = "websocket";
public static final String RESPONSE_CODE_MESSAGE = "Switching Protocols";
public static final String RESPONSE_CODE_HEADER = "Response Code";
public static final int RESPONSE_CODE_VALUE = 101;
public static final String UPGRADE = "upgrade";
public static final String CONNECTION = "connection";
public static final String CLIENT_WS_ORIGIN_HEADER = "Origin";
public static final String SERVER_KEY_HASH = "258EAFA5-E914-47DA-95CA-C5AB0DC85B11";
public static final int MASK_SIZE = 4;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy