public class HttpParser extends Object
| Constructor and Description |
|---|
HttpParser() |
| Modifier and Type | Method and Description |
|---|---|
static Map<String,String> |
parseAuthorizationDigest(StringReader input)
Parses an HTTP Authorization header for DIGEST authentication as per RFC
2617 section 3.2.2.
|
static MediaType |
parseMediaType(StringReader input) |
static String |
unquote(String input) |
public static Map<String,String> parseAuthorizationDigest(StringReader input) throws IllegalArgumentException, IOException
input - The header value to parseStrings or
null if a parsing error occurs. Although the
values returned are Strings they will have been
validated to ensure that they conform to RFC 2617.IllegalArgumentException - If the header does not conform to RFC
2617IOException - If an error occurs while reading the inputpublic static MediaType parseMediaType(StringReader input) throws IOException
IOExceptionCopyright © 2000-2013 Apache Software Foundation. All Rights Reserved.