|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.limegroup.gnutella.http.HTTPHeaderName
This class defines an "enum" for HTTP header names, following the typesafe enum pattern.
Field Summary | |
static HTTPHeaderName |
ACCEPT_ENCODING
Header for specifying the type of encoding we'll accept. |
static HTTPHeaderName |
ALT_LOCATION
Header for new alternate file locations, as per new spec. |
static HTTPHeaderName |
AVAILABLE_RANGES
Header for the available ranges of a file currently available, as specified in the Partial File Sharing Protocol. |
static HTTPHeaderName |
CONNECTION
Header for specifying whether the connection should be kept alive or closed when using HTTP 1.1. |
static HTTPHeaderName |
CONTENT_ENCODING
Header for specifying the type of encoding we'll send. |
static HTTPHeaderName |
CONTENT_LENGTH
Header for specifying the length of the content, in bytes. |
static HTTPHeaderName |
CONTENT_RANGE
Header for specifying the byte range of the content. |
static HTTPHeaderName |
CONTENT_TYPE
Header for specifying the type of content. |
static HTTPHeaderName |
GNUTELLA_CONTENT_URN
Header for specifying the URN of the file, as per HUGE v0.94. |
static HTTPHeaderName |
NALTS
Header for failed Alternate locations to be removed from the mesh. |
static HTTPHeaderName |
OLD_ALT_LOCS
Header that used to be used for alternate locations, as per HUGE v0.94. |
static HTTPHeaderName |
QUEUE
Header for queued downloads. |
static HTTPHeaderName |
QUEUE_HEADER
Custom header for upload queues. |
static HTTPHeaderName |
SERVER
Response header for specifying the server name and version. |
static HTTPHeaderName |
THEX_URI
Header for specifying a THEX URI. |
Method Summary | |
java.lang.String |
httpStringValue()
Accessor to obtain the string representation of the header as it should be written out to the network. |
boolean |
matchesStartOfString(java.lang.String str)
Returns whether or not the start of the passed in string matches the string representation of this HTTP header, ignoring case. |
java.lang.String |
toString()
Overrides Object.toString to give a more informative description of the header. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final HTTPHeaderName ALT_LOCATION
public static final HTTPHeaderName OLD_ALT_LOCS
public static final HTTPHeaderName NALTS
public static final HTTPHeaderName GNUTELLA_CONTENT_URN
public static final HTTPHeaderName CONTENT_RANGE
public static final HTTPHeaderName CONTENT_TYPE
public static final HTTPHeaderName CONTENT_LENGTH
public static final HTTPHeaderName ACCEPT_ENCODING
public static final HTTPHeaderName CONTENT_ENCODING
public static final HTTPHeaderName SERVER
public static final HTTPHeaderName QUEUE_HEADER
public static final HTTPHeaderName CONNECTION
public static final HTTPHeaderName THEX_URI
X-Thex-URI:
This informs the client where the full Tiger tree hash can be
retrieved.
public static final HTTPHeaderName AVAILABLE_RANGES
X-Available-Ranges: bytes 0-10,20-30
public static final HTTPHeaderName QUEUE
Method Detail |
public boolean matchesStartOfString(java.lang.String str)
str
- the string to check for a match
public java.lang.String httpStringValue()
public java.lang.String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |