com.limegroup.gnutella.handshaking
Class HeaderNames

java.lang.Object
  extended bycom.limegroup.gnutella.handshaking.HeaderNames

public final class HeaderNames
extends java.lang.Object

Provides names for the headers used in the gnutella connection handshake


Field Summary
static java.lang.String ACCEPT_ENCODING
          Header for Accept-Encoding.
static java.lang.String CONTENT_ENCODING
          Header for Content-Encoding.
static java.lang.String CRAWLER
          Constant for the header indicating that the crawler is connecting.
static java.lang.String DEFLATE_VALUE
          The value for deflate -- the type of encoding we can read & write.
static java.lang.String FALSE
           
static java.lang.String GGEP
           
static java.lang.String LEAVES
          Constant for the header indicating the number of leaf connections to the crawler.
static java.lang.String LISTEN_IP
          The replacement for X_MY_ADDRESS
static java.lang.String PEERS
          Constant for the header indicating the number of ultrapeer connections to the crawler.
static java.lang.String REMOTE_IP
           
static java.lang.String TRUE
          The true/false values for some headers.
static java.lang.String USER_AGENT
           
static java.lang.String X_DEGREE
          Header name for the degree of intra-Ultrapeer connections the host tries to maintain.
static java.lang.String X_DOMAINS_AUTHENTICATED
           
static java.lang.String X_DYNAMIC_QUERY
          Header to indicate the version of dynamic querying in use.
static java.lang.String X_GUESS
          Header name for the GUESS version.
static java.lang.String X_MAX_TTL
          Send by new hosts using dynamic-query style searching to denote the maximum TTL that should be sent to them.
static java.lang.String X_MY_ADDRESS
          Obsolete; use X_LISTEN_IP instead
static java.lang.String X_PASSWORD
           
static java.lang.String X_PONG_CACHING
          Constant string for the header indicating support for pong caching.
static java.lang.String X_PROBE_QUERIES
          Constant for the header advertising support of extendible probe queries.
static java.lang.String X_QUERY_ROUTING
           
static java.lang.String X_TEMP_CONNECTION
           
static java.lang.String X_TRY_ULTRAPEERS
           
static java.lang.String X_ULTRAPEER
           
static java.lang.String X_ULTRAPEER_NEEDED
           
static java.lang.String X_ULTRAPEER_QUERY_ROUTING
          Header for the version of query routing supported at the Ultrapeer level.
static java.lang.String X_USERNAME
           
static java.lang.String X_VENDOR_MESSAGE
          Constant for the header advertising support for vendor messages.
static java.lang.String X_VERSION
           
 
Method Summary
static boolean isFalse(java.lang.String v)
          Returns true if v.toLowerCase().equals("false").
static boolean isTrue(java.lang.String v)
          Returns true if v.toLowerCase().equals("true").
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

X_MY_ADDRESS

public static final java.lang.String X_MY_ADDRESS
Obsolete; use X_LISTEN_IP instead

See Also:
Constant Field Values

LISTEN_IP

public static final java.lang.String LISTEN_IP
The replacement for X_MY_ADDRESS

See Also:
Constant Field Values

X_ULTRAPEER

public static final java.lang.String X_ULTRAPEER
See Also:
Constant Field Values

X_TRY_ULTRAPEERS

public static final java.lang.String X_TRY_ULTRAPEERS
See Also:
Constant Field Values

X_QUERY_ROUTING

public static final java.lang.String X_QUERY_ROUTING
See Also:
Constant Field Values

X_PONG_CACHING

public static final java.lang.String X_PONG_CACHING
Constant string for the header indicating support for pong caching.

See Also:
Constant Field Values

X_ULTRAPEER_NEEDED

public static final java.lang.String X_ULTRAPEER_NEEDED
See Also:
Constant Field Values

USER_AGENT

public static final java.lang.String USER_AGENT
See Also:
Constant Field Values

X_USERNAME

public static final java.lang.String X_USERNAME
See Also:
Constant Field Values

X_PASSWORD

public static final java.lang.String X_PASSWORD
See Also:
Constant Field Values

X_DOMAINS_AUTHENTICATED

public static final java.lang.String X_DOMAINS_AUTHENTICATED
See Also:
Constant Field Values

X_TEMP_CONNECTION

public static final java.lang.String X_TEMP_CONNECTION
See Also:
Constant Field Values

REMOTE_IP

public static final java.lang.String REMOTE_IP
See Also:
Constant Field Values

GGEP

public static final java.lang.String GGEP
See Also:
Constant Field Values

X_GUESS

public static final java.lang.String X_GUESS
Header name for the GUESS version.

See Also:
Constant Field Values

X_VERSION

public static final java.lang.String X_VERSION
See Also:
Constant Field Values

X_DEGREE

public static final java.lang.String X_DEGREE
Header name for the degree of intra-Ultrapeer connections the host tries to maintain.

See Also:
Constant Field Values

X_ULTRAPEER_QUERY_ROUTING

public static final java.lang.String X_ULTRAPEER_QUERY_ROUTING
Header for the version of query routing supported at the Ultrapeer level.

See Also:
Constant Field Values

X_VENDOR_MESSAGE

public static final java.lang.String X_VENDOR_MESSAGE
Constant for the header advertising support for vendor messages.

See Also:
Constant Field Values

X_PROBE_QUERIES

public static final java.lang.String X_PROBE_QUERIES
Constant for the header advertising support of extendible probe queries.

See Also:
Constant Field Values

X_MAX_TTL

public static final java.lang.String X_MAX_TTL
Send by new hosts using dynamic-query style searching to denote the maximum TTL that should be sent to them. This is only for queries coming directly from this host, and is affected by degree.

See Also:
Constant Field Values

X_DYNAMIC_QUERY

public static final java.lang.String X_DYNAMIC_QUERY
Header to indicate the version of dynamic querying in use.

See Also:
Constant Field Values

CONTENT_ENCODING

public static final java.lang.String CONTENT_ENCODING
Header for Content-Encoding. Useful because typing HTTPHeaderName.CONTENT_ENCODING.httpStringValue() in all handshaking classes is cumbersome.


ACCEPT_ENCODING

public static final java.lang.String ACCEPT_ENCODING
Header for Accept-Encoding. Useful because typing HTTPHeaderName.ACCEPT_ENCODING.httpStringValue() in all handshaking classes is cumbersome.


DEFLATE_VALUE

public static final java.lang.String DEFLATE_VALUE
The value for deflate -- the type of encoding we can read & write. Useful because typing ConstantHTTPHeaderValue.DEFLATE_VALUE.httpStringValue() in all handshaking classes is cumbersome.


CRAWLER

public static final java.lang.String CRAWLER
Constant for the header indicating that the crawler is connecting.

See Also:
Constant Field Values

LEAVES

public static final java.lang.String LEAVES
Constant for the header indicating the number of leaf connections to the crawler.

See Also:
Constant Field Values

PEERS

public static final java.lang.String PEERS
Constant for the header indicating the number of ultrapeer connections to the crawler.

See Also:
Constant Field Values

TRUE

public static final java.lang.String TRUE
The true/false values for some headers. Note that these are not the only legal values--case doesn't matter--and LimeWire does not always use these constants. Hopefully it will in the future.

See Also:
Constant Field Values

FALSE

public static final java.lang.String FALSE
See Also:
Constant Field Values
Method Detail

isTrue

public static boolean isTrue(java.lang.String v)
Returns true if v.toLowerCase().equals("true").


isFalse

public static boolean isFalse(java.lang.String v)
Returns true if v.toLowerCase().equals("false").