com.limegroup.gnutella.http
Class ConstantHTTPHeaderValue

java.lang.Object
  extended bycom.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 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 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.

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