Class SpdyHttpHeaders
- java.lang.Object
-
- org.jboss.netty.handler.codec.spdy.SpdyHttpHeaders
-
public final class SpdyHttpHeaders extends java.lang.ObjectProvides the constants for the header names and the utility methods used by theSpdyHttpDecoderandSpdyHttpEncoder.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSpdyHttpHeaders.NamesSPDY HTTP header names
-
Constructor Summary
Constructors Modifier Constructor Description privateSpdyHttpHeaders()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static 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 java.lang.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 java.lang.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, java.lang.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, java.lang.String url)Sets the"X-SPDY-URL"header.
-
-
-
Method Detail
-
removeStreamId
public static void removeStreamId(HttpMessage message)
Removes the"X-SPDY-Stream-ID"header.
-
getStreamId
public static int getStreamId(HttpMessage message)
Returns the value of the"X-SPDY-Stream-ID"header.
-
setStreamId
public static void setStreamId(HttpMessage message, int streamId)
Sets the"X-SPDY-Stream-ID"header.
-
removeAssociatedToStreamId
public static void removeAssociatedToStreamId(HttpMessage message)
Removes the"X-SPDY-Associated-To-Stream-ID"header.
-
getAssociatedToStreamId
public static int getAssociatedToStreamId(HttpMessage message)
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
public static void setAssociatedToStreamId(HttpMessage message, int associatedToStreamId)
Sets the"X-SPDY-Associated-To-Stream-ID"header.
-
removePriority
public static void removePriority(HttpMessage message)
Removes the"X-SPDY-Priority"header.
-
getPriority
public static byte getPriority(HttpMessage message)
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
public static void setPriority(HttpMessage message, byte priority)
Sets the"X-SPDY-Priority"header.
-
removeUrl
public static void removeUrl(HttpMessage message)
Removes the"X-SPDY-URL"header.
-
getUrl
public static java.lang.String getUrl(HttpMessage message)
Returns the value of the"X-SPDY-URL"header.
-
setUrl
public static void setUrl(HttpMessage message, java.lang.String url)
Sets the"X-SPDY-URL"header.
-
removeScheme
public static void removeScheme(HttpMessage message)
Removes the"X-SPDY-Scheme"header.
-
getScheme
public static java.lang.String getScheme(HttpMessage message)
Returns the value of the"X-SPDY-Scheme"header.
-
setScheme
public static void setScheme(HttpMessage message, java.lang.String scheme)
Sets the"X-SPDY-Scheme"header.
-
-