|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.melati.util.HttpHeader.TokenAndQValue
public static class HttpHeader.TokenAndQValue
A token and associated qvalue.
Field Summary | |
---|---|
float |
q
Value between zero and one with at most 3 decimal places. |
String |
token
Token followed by a semicolon separator. |
Constructor Summary | |
---|---|
HttpHeader.TokenAndQValue()
Create an uninitialised instance. |
|
HttpHeader.TokenAndQValue(HttpHeader.Tokenizer t)
Create an instance and initialise it by reading the given tokenizer. |
Method Summary |
---|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public String token
public float q
q stands for "quality" but the RFC 2616 says this is not completely accurate. Values closer to 1.0 are better. Zero means completely unfit.
The default is 1.0 if not explicitly initialised and this appears to be correct for most possible uses if not all.
Constructor Detail |
---|
public HttpHeader.TokenAndQValue()
public HttpHeader.TokenAndQValue(HttpHeader.Tokenizer t) throws HttpHeader.HttpHeaderException
HttpHeader.HttpHeaderException
|
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |