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 intgetAssociatedToStreamId(HttpMessage message) Returns the value of the"X-SPDY-Associated-To-Stream-ID"header.static bytegetPriority(HttpMessage message) Returns the value of the"X-SPDY-Priority"header.static StringgetScheme(HttpMessage message) Returns the value of the"X-SPDY-Scheme"header.static intgetStreamId(HttpMessage message) Returns the value of the"X-SPDY-Stream-ID"header.static StringgetUrl(HttpMessage message) Returns the value of the"X-SPDY-URL"header.static voidremoveAssociatedToStreamId(HttpMessage message) Removes the"X-SPDY-Associated-To-Stream-ID"header.static voidremovePriority(HttpMessage message) Removes the"X-SPDY-Priority"header.static voidremoveScheme(HttpMessage message) Removes the"X-SPDY-Scheme"header.static voidremoveStreamId(HttpMessage message) Removes the"X-SPDY-Stream-ID"header.static voidremoveUrl(HttpMessage message) Removes the"X-SPDY-URL"header.static voidsetAssociatedToStreamId(HttpMessage message, int associatedToStreamId) Sets the"X-SPDY-Associated-To-Stream-ID"header.static voidsetPriority(HttpMessage message, byte priority) Sets the"X-SPDY-Priority"header.static voidsetScheme(HttpMessage message, String scheme) Sets the"X-SPDY-Scheme"header.static voidsetStreamId(HttpMessage message, int streamId) Sets the"X-SPDY-Stream-ID"header.static voidsetUrl(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
0if 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
0if 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.
-