Class TokenList
- java.lang.Object
-
- org.apache.tomcat.util.http.parser.TokenList
-
public class TokenList extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
parseTokenList(java.io.Reader input, java.util.Collection<java.lang.String> result)
Parses a header of the form 1#token, forcing all parsed values to lower case.static void
parseTokenList(java.util.Enumeration<java.lang.String> inputs, java.util.Collection<java.lang.String> result)
Parses an enumeration of header values of the form 1#token, forcing all parsed values to lower case.
-
-
-
Method Detail
-
parseTokenList
public static void parseTokenList(java.util.Enumeration<java.lang.String> inputs, java.util.Collection<java.lang.String> result) throws java.io.IOException
Parses an enumeration of header values of the form 1#token, forcing all parsed values to lower case.- Parameters:
inputs
- The headers to parseresult
- The Collection (usually a list of a set) to which the parsed tokens should be added- Throws:
java.io.IOException
- If an I/O error occurs reading the header
-
parseTokenList
public static void parseTokenList(java.io.Reader input, java.util.Collection<java.lang.String> result) throws java.io.IOException
Parses a header of the form 1#token, forcing all parsed values to lower case. This is typically used when header values are case-insensitive.- Parameters:
input
- The header to parseresult
- The Collection (usually a list of a set) to which the parsed tokens should be added- Throws:
java.io.IOException
- If an I/O error occurs reading the header
-
-