Class TokenList
- java.lang.Object
- 
- org.apache.tomcat.util.http.parser.TokenList
 
- 
 public class TokenList extends java.lang.Object
- 
- 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanparseTokenList(java.io.Reader input, java.util.Collection<java.lang.String> collection)Parses a header of the form 1#token, forcing all parsed values to lower case.static booleanparseTokenList(java.util.Enumeration<java.lang.String> inputs, java.util.Collection<java.lang.String> collection)Parses an enumeration of header values of the form 1#token, forcing all parsed values to lower case.
 
- 
- 
- 
Method Detail- 
parseTokenListpublic static boolean parseTokenList(java.util.Enumeration<java.lang.String> inputs, java.util.Collection<java.lang.String> collection) throws java.io.IOExceptionParses an enumeration of header values of the form 1#token, forcing all parsed values to lower case.- Parameters:
- inputs- The headers to parse
- collection- 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, otherwise- false(e.g. if a non-token value was encountered)
- Throws:
- java.io.IOException- If an I/O error occurs reading the header
 
 - 
parseTokenListpublic static boolean parseTokenList(java.io.Reader input, java.util.Collection<java.lang.String> collection) throws java.io.IOExceptionParses a header of the form 1#token, forcing all parsed values to lower case.- Parameters:
- input- The header to parse
- collection- 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, otherwise- false(e.g. if a non-token value was encountered)
- Throws:
- java.io.IOException- If an I/O error occurs reading the header
 
 
- 
 
-