Class SpdyHttpHeaders

java.lang.Object
org.jboss.netty.handler.codec.spdy.SpdyHttpHeaders

public final class SpdyHttpHeaders extends Object
Provides the constants for the header names and the utility methods used by the SpdyHttpDecoder and SpdyHttpEncoder.
  • Constructor Details

    • SpdyHttpHeaders

      private SpdyHttpHeaders()
  • Method Details

    • 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 0 if 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 0 if 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 String getUrl(HttpMessage message)
      Returns the value of the "X-SPDY-URL" header.
    • setUrl

      public static void setUrl(HttpMessage message, String url)
      Sets the "X-SPDY-URL" header.
    • removeScheme

      public static void removeScheme(HttpMessage message)
      Removes the "X-SPDY-Scheme" header.
    • getScheme

      public static String getScheme(HttpMessage message)
      Returns the value of the "X-SPDY-Scheme" header.
    • setScheme

      public static void setScheme(HttpMessage message, String scheme)
      Sets the "X-SPDY-Scheme" header.