public final class SpdyHttpHeaders
extends java.lang.Object
SpdyHttpDecoder
and SpdyHttpEncoder
.限定符和类型 | 类和说明 |
---|---|
static class |
SpdyHttpHeaders.Names
SPDY HTTP header names
|
限定符和类型 | 方法和说明 |
---|---|
static int |
getAssociatedToStreamId(HttpMessage message)
Returns the value of the
"X-SPDY-Associated-To-Stream-ID" header. |
static byte |
getPriority(HttpMessage message)
Returns the value of the
"X-SPDY-Priority" header. |
static java.lang.String |
getScheme(HttpMessage message)
Returns the value of the
"X-SPDY-Scheme" header. |
static int |
getStreamId(HttpMessage message)
Returns the value of the
"X-SPDY-Stream-ID" header. |
static java.lang.String |
getUrl(HttpMessage message)
Returns the value of the
"X-SPDY-URL" header. |
static void |
removeAssociatedToStreamId(HttpMessage message)
Removes the
"X-SPDY-Associated-To-Stream-ID" header. |
static void |
removePriority(HttpMessage message)
Removes the
"X-SPDY-Priority" header. |
static void |
removeScheme(HttpMessage message)
Removes the
"X-SPDY-Scheme" header. |
static void |
removeStreamId(HttpMessage message)
Removes the
"X-SPDY-Stream-ID" header. |
static void |
removeUrl(HttpMessage message)
Removes the
"X-SPDY-URL" header. |
static void |
setAssociatedToStreamId(HttpMessage message,
int associatedToStreamId)
Sets the
"X-SPDY-Associated-To-Stream-ID" header. |
static void |
setPriority(HttpMessage message,
byte priority)
Sets the
"X-SPDY-Priority" header. |
static void |
setScheme(HttpMessage message,
java.lang.String scheme)
Sets the
"X-SPDY-Scheme" header. |
static void |
setStreamId(HttpMessage message,
int streamId)
Sets the
"X-SPDY-Stream-ID" header. |
static void |
setUrl(HttpMessage message,
java.lang.String url)
Sets the
"X-SPDY-URL" header. |
public static void removeStreamId(HttpMessage message)
"X-SPDY-Stream-ID"
header.public static int getStreamId(HttpMessage message)
"X-SPDY-Stream-ID"
header.public static void setStreamId(HttpMessage message, int streamId)
"X-SPDY-Stream-ID"
header.public static void removeAssociatedToStreamId(HttpMessage message)
"X-SPDY-Associated-To-Stream-ID"
header.public static int getAssociatedToStreamId(HttpMessage message)
"X-SPDY-Associated-To-Stream-ID"
header.0
if there is no such header or
if the header value is not a numberpublic static void setAssociatedToStreamId(HttpMessage message, int associatedToStreamId)
"X-SPDY-Associated-To-Stream-ID"
header.public static void removePriority(HttpMessage message)
"X-SPDY-Priority"
header.public static byte getPriority(HttpMessage message)
"X-SPDY-Priority"
header.0
if there is no such header or
if the header value is not a numberpublic static void setPriority(HttpMessage message, byte priority)
"X-SPDY-Priority"
header.public static void removeUrl(HttpMessage message)
"X-SPDY-URL"
header.public static java.lang.String getUrl(HttpMessage message)
"X-SPDY-URL"
header.public static void setUrl(HttpMessage message, java.lang.String url)
"X-SPDY-URL"
header.public static void removeScheme(HttpMessage message)
"X-SPDY-Scheme"
header.public static java.lang.String getScheme(HttpMessage message)
"X-SPDY-Scheme"
header.public static void setScheme(HttpMessage message, java.lang.String scheme)
"X-SPDY-Scheme"
header.