Class TokenList
java.lang.Object
org.apache.tomcat.util.http.parser.TokenList
- 
Method Summary
Modifier and TypeMethodDescriptionstatic booleanparseTokenList(Reader input, Collection<String> collection) Parses a header of the form 1#token, forcing all parsed values to lower case.static booleanparseTokenList(Enumeration<String> inputs, Collection<String> collection) Parses an enumeration of header values of the form 1#token, forcing all parsed values to lower case. 
- 
Method Details
- 
parseTokenList
public static boolean parseTokenList(Enumeration<String> inputs, Collection<String> collection) throws IOException Parses an enumeration of header values of the form 1#token, forcing all parsed values to lower case.- Parameters:
 inputs- The headers to parsecollection- The Collection (usually a list or a set) to which the parsed tokens should be added- Returns:
 trueif the header values were parsed cleanly and at least one token was found, otherwisefalse(e.g. if a non-token value was encountered)- Throws:
 IOException- If an I/O error occurs reading the header
 - 
parseTokenList
public static boolean parseTokenList(Reader input, Collection<String> collection) throws IOException Parses a header of the form 1#token, forcing all parsed values to lower case.- Parameters:
 input- The header to parsecollection- The Collection (usually a list or a set) to which the parsed tokens should be added- Returns:
 trueif the header values were parsed cleanly and at least one token was found, otherwisefalse(e.g. if a non-token value was encountered)- Throws:
 IOException- If an I/O error occurs reading the header
 
 -