public class HttpParser
extends java.lang.Object
Constructor and Description |
---|
HttpParser(java.lang.String relaxedPathChars,
java.lang.String relaxedQueryChars) |
Modifier and Type | Method and Description |
---|---|
static boolean |
isAbsolutePath(int c) |
boolean |
isAbsolutePathRelaxed(int c) |
static boolean |
isHex(int c) |
static boolean |
isHttpProtocol(int c) |
static boolean |
isNotRequestTarget(int c) |
boolean |
isNotRequestTargetRelaxed(int c) |
static boolean |
isQuery(int c) |
boolean |
isQueryRelaxed(int c) |
static boolean |
isToken(int c) |
static boolean |
isUserInfo(int c) |
static java.util.Map<java.lang.String,java.lang.String> |
parseAuthorizationDigest(java.io.StringReader input)
Parses an HTTP Authorization header for DIGEST authentication as per RFC
2617 section 3.2.2.
|
static MediaType |
parseMediaType(java.io.StringReader input) |
static java.lang.String |
unquote(java.lang.String input) |
public HttpParser(java.lang.String relaxedPathChars, java.lang.String relaxedQueryChars)
public static java.util.Map<java.lang.String,java.lang.String> parseAuthorizationDigest(java.io.StringReader input) throws java.lang.IllegalArgumentException, java.io.IOException
input
- The header value to parseString
s or
null
if a parsing error occurs. Although the
values returned are String
s they will have been
validated to ensure that they conform to RFC 2617.java.lang.IllegalArgumentException
- If the header does not conform to RFC
2617java.io.IOException
- If an error occurs while reading the inputpublic static MediaType parseMediaType(java.io.StringReader input) throws java.io.IOException
java.io.IOException
public boolean isNotRequestTargetRelaxed(int c)
public boolean isAbsolutePathRelaxed(int c)
public boolean isQueryRelaxed(int c)
public static java.lang.String unquote(java.lang.String input)
public static boolean isToken(int c)
public static boolean isHex(int c)
public static boolean isNotRequestTarget(int c)
public static boolean isHttpProtocol(int c)
public static boolean isUserInfo(int c)
public static boolean isAbsolutePath(int c)
public static boolean isQuery(int c)
Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.