public class SpdyHeaders extends Object
SpdyHeaderBlock
.Modifier and Type | Class and Description |
---|---|
static class |
SpdyHeaders.HttpNames
SPDY HTTP header names
|
static class |
SpdyHeaders.Spdy2HttpNames
SPDY/2 HTTP header names
|
Modifier and Type | Method and Description |
---|---|
static void |
addHeader(SpdyHeaderBlock block,
String name,
Object value)
Adds a new header with the specified name and value.
|
static String |
getHeader(SpdyHeaderBlock block,
String name)
Returns the header value with the specified header name.
|
static String |
getHeader(SpdyHeaderBlock block,
String name,
String defaultValue)
Returns the header value with the specified header name.
|
static String |
getHost(SpdyHeaderBlock block)
Returns the SPDY host header.
|
static HttpMethod |
getMethod(int spdyVersion,
SpdyHeaderBlock block)
Returns the
HttpMethod represented by the HTTP method header. |
static HttpMethod |
getMethod(SpdyHeaderBlock block)
Deprecated.
|
static String |
getScheme(int spdyVersion,
SpdyHeaderBlock block)
Returns the value of the URL scheme header.
|
static String |
getScheme(SpdyHeaderBlock block)
Deprecated.
|
static HttpResponseStatus |
getStatus(int spdyVersion,
SpdyHeaderBlock block)
Returns the
HttpResponseStatus represented by the HTTP response status header. |
static HttpResponseStatus |
getStatus(SpdyHeaderBlock block)
Deprecated.
|
static String |
getUrl(int spdyVersion,
SpdyHeaderBlock block)
Returns the value of the URL path header.
|
static String |
getUrl(SpdyHeaderBlock block)
Deprecated.
|
static HttpVersion |
getVersion(int spdyVersion,
SpdyHeaderBlock block)
Returns the
HttpVersion represented by the HTTP version header. |
static HttpVersion |
getVersion(SpdyHeaderBlock block)
Deprecated.
|
static void |
removeHost(SpdyHeaderBlock block)
Removes the SPDY host header.
|
static void |
removeMethod(int spdyVersion,
SpdyHeaderBlock block)
Removes the HTTP method header.
|
static void |
removeMethod(SpdyHeaderBlock block)
Deprecated.
|
static void |
removeScheme(int spdyVersion,
SpdyHeaderBlock block)
Removes the URL scheme header.
|
static void |
removeScheme(SpdyHeaderBlock block)
Deprecated.
|
static void |
removeStatus(int spdyVersion,
SpdyHeaderBlock block)
Removes the HTTP response status header.
|
static void |
removeStatus(SpdyHeaderBlock block)
Deprecated.
|
static void |
removeUrl(int spdyVersion,
SpdyHeaderBlock block)
Removes the URL path header.
|
static void |
removeUrl(SpdyHeaderBlock block)
Deprecated.
|
static void |
removeVersion(int spdyVersion,
SpdyHeaderBlock block)
Removes the HTTP version header.
|
static void |
removeVersion(SpdyHeaderBlock block)
Deprecated.
|
static void |
setHeader(SpdyHeaderBlock block,
String name,
Iterable<?> values)
Sets a new header with the specified name and values.
|
static void |
setHeader(SpdyHeaderBlock block,
String name,
Object value)
Sets a new header with the specified name and value.
|
static void |
setHost(SpdyHeaderBlock block,
String host)
Set the SPDY host header.
|
static void |
setMethod(int spdyVersion,
SpdyHeaderBlock block,
HttpMethod method)
Sets the HTTP method header.
|
static void |
setMethod(SpdyHeaderBlock block,
HttpMethod method)
Deprecated.
|
static void |
setScheme(int spdyVersion,
SpdyHeaderBlock block,
String scheme)
Sets the URL scheme header.
|
static void |
setScheme(SpdyHeaderBlock block,
String scheme)
Deprecated.
|
static void |
setStatus(int spdyVersion,
SpdyHeaderBlock block,
HttpResponseStatus status)
Sets the HTTP response status header.
|
static void |
setStatus(SpdyHeaderBlock block,
HttpResponseStatus status)
Deprecated.
|
static void |
setUrl(int spdyVersion,
SpdyHeaderBlock block,
String path)
Sets the URL path header.
|
static void |
setUrl(SpdyHeaderBlock block,
String path)
Deprecated.
|
static void |
setVersion(int spdyVersion,
SpdyHeaderBlock block,
HttpVersion httpVersion)
Sets the HTTP version header.
|
static void |
setVersion(SpdyHeaderBlock block,
HttpVersion httpVersion)
Deprecated.
|
public static String getHeader(SpdyHeaderBlock block, String name)
null
if there is no such headerpublic static String getHeader(SpdyHeaderBlock block, String name, String defaultValue)
defaultValue
if there is no such
headerpublic static void setHeader(SpdyHeaderBlock block, String name, Object value)
public static void setHeader(SpdyHeaderBlock block, String name, Iterable<?> values)
public static void addHeader(SpdyHeaderBlock block, String name, Object value)
public static void removeHost(SpdyHeaderBlock block)
public static String getHost(SpdyHeaderBlock block)
public static void setHost(SpdyHeaderBlock block, String host)
@Deprecated public static void removeMethod(SpdyHeaderBlock block)
public static void removeMethod(int spdyVersion, SpdyHeaderBlock block)
@Deprecated public static HttpMethod getMethod(SpdyHeaderBlock block)
HttpMethod
represented by the HTTP method header.public static HttpMethod getMethod(int spdyVersion, SpdyHeaderBlock block)
HttpMethod
represented by the HTTP method header.@Deprecated public static void setMethod(SpdyHeaderBlock block, HttpMethod method)
public static void setMethod(int spdyVersion, SpdyHeaderBlock block, HttpMethod method)
@Deprecated public static void removeScheme(SpdyHeaderBlock block)
public static void removeScheme(int spdyVersion, SpdyHeaderBlock block)
@Deprecated public static String getScheme(SpdyHeaderBlock block)
public static String getScheme(int spdyVersion, SpdyHeaderBlock block)
@Deprecated public static void setScheme(SpdyHeaderBlock block, String scheme)
public static void setScheme(int spdyVersion, SpdyHeaderBlock block, String scheme)
@Deprecated public static void removeStatus(SpdyHeaderBlock block)
public static void removeStatus(int spdyVersion, SpdyHeaderBlock block)
@Deprecated public static HttpResponseStatus getStatus(SpdyHeaderBlock block)
HttpResponseStatus
represented by the HTTP response status header.public static HttpResponseStatus getStatus(int spdyVersion, SpdyHeaderBlock block)
HttpResponseStatus
represented by the HTTP response status header.@Deprecated public static void setStatus(SpdyHeaderBlock block, HttpResponseStatus status)
public static void setStatus(int spdyVersion, SpdyHeaderBlock block, HttpResponseStatus status)
@Deprecated public static void removeUrl(SpdyHeaderBlock block)
public static void removeUrl(int spdyVersion, SpdyHeaderBlock block)
@Deprecated public static String getUrl(SpdyHeaderBlock block)
public static String getUrl(int spdyVersion, SpdyHeaderBlock block)
@Deprecated public static void setUrl(SpdyHeaderBlock block, String path)
public static void setUrl(int spdyVersion, SpdyHeaderBlock block, String path)
@Deprecated public static void removeVersion(SpdyHeaderBlock block)
public static void removeVersion(int spdyVersion, SpdyHeaderBlock block)
@Deprecated public static HttpVersion getVersion(SpdyHeaderBlock block)
HttpVersion
represented by the HTTP version header.public static HttpVersion getVersion(int spdyVersion, SpdyHeaderBlock block)
HttpVersion
represented by the HTTP version header.@Deprecated public static void setVersion(SpdyHeaderBlock block, HttpVersion httpVersion)
public static void setVersion(int spdyVersion, SpdyHeaderBlock block, HttpVersion httpVersion)
Copyright © 2008-2013 The Netty Project. All Rights Reserved.