com.limegroup.gnutella.http
Class ConstantHTTPHeaderValue

java.lang.Object
  extended by com.limegroup.gnutella.http.ConstantHTTPHeaderValue
All Implemented Interfaces:
HTTPHeaderValue

public class ConstantHTTPHeaderValue
extends java.lang.Object
implements HTTPHeaderValue

This class adds type safety for constant HTTP header values. If there's an HTTP header value that is constant, simply add it to this enumeration.


Field Summary
static HTTPHeaderValue BROWSE_FEATURE
          Constant for the 'browse/version' value sent.
static HTTPHeaderValue CHAT_FEATURE
          Constant for the 'chat/version' value sent.
static HTTPHeaderValue CLOSE_VALUE
          Constant for the 'close' value sent the server expects to close the connection.
static HTTPHeaderValue DEFLATE_VALUE
          Constant for accepting or encoding in deflate, in the Accept-Encoding or Content-Encoding fields.
static HTTPHeaderValue G2_FEATURE
          Constant for the g2/version' value sent.
static HTTPHeaderValue PUSH_LOCS_FEATURE
          exact meaning of this header: the host sending this header would like to receive alternate locations behind firewalls.
static HTTPHeaderValue QUEUE_FEATURE
          Constant for the 'queue/version' value sent.
static HTTPHeaderValue SERVER_VALUE
          Constant for the HTTP server, as given in the "Server: " header.
 
Method Summary
 java.lang.String httpStringValue()
          Returns a string representation of the HTTP header value for this class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SERVER_VALUE

public static final HTTPHeaderValue SERVER_VALUE
Constant for the HTTP server, as given in the "Server: " header.


DEFLATE_VALUE

public static final HTTPHeaderValue DEFLATE_VALUE
Constant for accepting or encoding in deflate, in the Accept-Encoding or Content-Encoding fields.


CLOSE_VALUE

public static final HTTPHeaderValue CLOSE_VALUE
Constant for the 'close' value sent the server expects to close the connection.


BROWSE_FEATURE

public static final HTTPHeaderValue BROWSE_FEATURE
Constant for the 'browse/version' value sent.


CHAT_FEATURE

public static final HTTPHeaderValue CHAT_FEATURE
Constant for the 'chat/version' value sent.


QUEUE_FEATURE

public static final HTTPHeaderValue QUEUE_FEATURE
Constant for the 'queue/version' value sent.


G2_FEATURE

public static final HTTPHeaderValue G2_FEATURE
Constant for the g2/version' value sent.


PUSH_LOCS_FEATURE

public static final HTTPHeaderValue PUSH_LOCS_FEATURE
exact meaning of this header: the host sending this header would like to receive alternate locations behind firewalls.

Method Detail

httpStringValue

public java.lang.String httpStringValue()
Description copied from interface: HTTPHeaderValue
Returns a string representation of the HTTP header value for this class.

Specified by:
httpStringValue in interface HTTPHeaderValue
Returns:
a string representation of the HTTP header value for this class