|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.limegroup.gnutella.http.HTTPHeaderName
public class 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 |
BFALT_LOCATION
Header for bad alternate locations behind firewalls. |
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 |
CONTENT_URN
Header for specifying the URN of the file, as per the CAW spec at http://www.open-content.net/specs/draft-jchapweske-caw-03.html . |
static HTTPHeaderName |
CREATION_TIME
Header for creation time. |
static HTTPHeaderName |
DATE
Constant header for the date. |
static HTTPHeaderName |
FALT_LOCATION
Header for alternate locations behind firewalls. |
static HTTPHeaderName |
FEATURES
Header for submitting supported features. |
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 |
NODE
Header for sending your own " |
static HTTPHeaderName |
OLD_ALT_LOCS
Header that used to be used for alternate locations, as per HUGE v0.94. |
static HTTPHeaderName |
PROXIES
Header for updating the set of push proxies for a host. |
static HTTPHeaderName |
QUEUE
Header for queued downloads. |
static HTTPHeaderName |
QUEUE_HEADER
Custom header for upload queues. |
static HTTPHeaderName |
RETRY_AFTER
Header for retry after. |
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 FALT_LOCATION
public static final HTTPHeaderName BFALT_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_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 DATE
public static final HTTPHeaderName AVAILABLE_RANGES
X-Available-Ranges: bytes 0-10,20-30
public static final HTTPHeaderName QUEUE
public static final HTTPHeaderName RETRY_AFTER
public static final HTTPHeaderName CREATION_TIME
public static final HTTPHeaderName FEATURES
public static final HTTPHeaderName PROXIES
public static final HTTPHeaderName NODE
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()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |