| java.lang.Object org.w3c.www.http.BasicValue org.w3c.www.http.HttpTokenList
All known Subclasses: org.w3c.www.http.HttpCaseTokenList, org.w3c.www.http.HttpUpperTokenList,
HttpTokenList | public class HttpTokenList extends BasicValue (Code) | | Parse a comma separated list of tokens.
|
Field Summary | |
final protected static int | CASE_ASIS Don't touch cases of tokens. | final protected static int | CASE_LOWER Convert tokens to lower case. | final protected static int | CASE_UPPER Convert case to upper case. | protected int | casemode | protected String | tokens |
Constructor Summary | |
protected | HttpTokenList(String tokens) Create a parsed token list, for emitting. | protected | HttpTokenList(String tokens) Create a token list from a comma separated list of tokens. | protected | HttpTokenList() Create an empty token list for parsing. |
Method Summary | |
public void | addToken(String token, boolean always) Add a token to this token list. | public Object | getValue() Get this token list value. | public boolean | hasToken(String token, boolean caseSensitive) Does this token list includes that token ?
Parameters: token - The token to look for. | protected void | parse() Parse the byte buffer to build the token list. | public void | setValue(String tokens) | protected void | updateByteValue() |
CASE_ASIS | final protected static int CASE_ASIS(Code) | | Don't touch cases of tokens.
|
CASE_LOWER | final protected static int CASE_LOWER(Code) | | Convert tokens to lower case.
|
CASE_UPPER | final protected static int CASE_UPPER(Code) | | Convert case to upper case.
|
casemode | protected int casemode(Code) | | |
HttpTokenList | protected HttpTokenList(String tokens)(Code) | | Create a parsed token list, for emitting.
|
HttpTokenList | protected HttpTokenList(String tokens)(Code) | | Create a token list from a comma separated list of tokens.
|
HttpTokenList | protected HttpTokenList()(Code) | | Create an empty token list for parsing.
|
addToken | public void addToken(String token, boolean always)(Code) | | Add a token to this token list.
Parameters: token - The token to add. Parameters: always - Always add to the list, even if the token us already present in the list. |
getValue | public Object getValue()(Code) | | Get this token list value.
A list of tokens, encoded as a String array, or null if undefined. |
hasToken | public boolean hasToken(String token, boolean caseSensitive)(Code) | | Does this token list includes that token ?
Parameters: token - The token to look for. A boolean, true if found, false otherwise. |
parse | protected void parse()(Code) | | Parse the byte buffer to build the token list.
|
updateByteValue | protected void updateByteValue()(Code) | | |
|
|