Added the header constants related with WebSocket

This commit is contained in:
Trustin Lee 2010-01-07 07:57:14 +00:00
parent bda5887238
commit 491baa0c7b

View File

@ -172,6 +172,10 @@ public final class HttpHeaders {
* {@code "Max-Forwards"} * {@code "Max-Forwards"}
*/ */
public static final String MAX_FORWARDS = "Max-Forwards"; public static final String MAX_FORWARDS = "Max-Forwards";
/**
* {@code "Origin"}
*/
public static final String ORIGIN = "Origin";
/** /**
* {@code "Pragma"} * {@code "Pragma"}
*/ */
@ -240,6 +244,18 @@ public final class HttpHeaders {
* {@code "Warning"} * {@code "Warning"}
*/ */
public static final String WARNING = "Warning"; public static final String WARNING = "Warning";
/**
* {@code "WebSocket-Location"}
*/
public static final String WEBSOCKET_LOCATION = "WebSocket-Location";
/**
* {@code "WebSocket-Origin"}
*/
public static final String WEBSOCKET_ORIGIN = "WebSocket-Origin";
/**
* {@code "WebSocket-Protocol"}
*/
public static final String WEBSOCKET_PROTOCOL = "WebSocket-Protocol";
/** /**
* {@code "WWW-Authenticate"} * {@code "WWW-Authenticate"}
*/ */
@ -368,6 +384,10 @@ public final class HttpHeaders {
* {@code "trailers"} * {@code "trailers"}
*/ */
public static final String TRAILERS = "trailers"; public static final String TRAILERS = "trailers";
/**
* {@code "WebSocket"}
*/
public static final String WEBSOCKET = "WebSocket";
private Values() { private Values() {
super(); super();