Class SpdyHttpHeaders
java.lang.Object
org.jboss.netty.handler.codec.spdy.SpdyHttpHeaders
Provides the constants for the header names and the utility methods
used by the
SpdyHttpDecoder
and SpdyHttpEncoder
.-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic 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 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 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, 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, String url) Sets the"X-SPDY-URL"
header.
-
Constructor Details
-
SpdyHttpHeaders
private SpdyHttpHeaders()
-
-
Method Details
-
removeStreamId
Removes the"X-SPDY-Stream-ID"
header. -
getStreamId
Returns the value of the"X-SPDY-Stream-ID"
header. -
setStreamId
Sets the"X-SPDY-Stream-ID"
header. -
removeAssociatedToStreamId
Removes the"X-SPDY-Associated-To-Stream-ID"
header. -
getAssociatedToStreamId
Returns the value of the"X-SPDY-Associated-To-Stream-ID"
header.- Returns:
- the header value or
0
if there is no such header or if the header value is not a number
-
setAssociatedToStreamId
Sets the"X-SPDY-Associated-To-Stream-ID"
header. -
removePriority
Removes the"X-SPDY-Priority"
header. -
getPriority
Returns the value of the"X-SPDY-Priority"
header.- Returns:
- the header value or
0
if there is no such header or if the header value is not a number
-
setPriority
Sets the"X-SPDY-Priority"
header. -
removeUrl
Removes the"X-SPDY-URL"
header. -
getUrl
Returns the value of the"X-SPDY-URL"
header. -
setUrl
Sets the"X-SPDY-URL"
header. -
removeScheme
Removes the"X-SPDY-Scheme"
header. -
getScheme
Returns the value of the"X-SPDY-Scheme"
header. -
setScheme
Sets the"X-SPDY-Scheme"
header.
-