public class HttpParser extends Object
Constructor and Description |
---|
HttpParser(String relaxedPathChars,
String relaxedQueryChars) |
Modifier and Type | Method and Description |
---|---|
static boolean |
isAbsolutePath(int c) |
boolean |
isAbsolutePathRelaxed(int c) |
static boolean |
isAlpha(int c) |
static boolean |
isControl(int c) |
static boolean |
isHex(int c) |
static boolean |
isHttpProtocol(int c) |
static boolean |
isNotRequestTarget(int c) |
boolean |
isNotRequestTargetRelaxed(int c) |
static boolean |
isNumeric(int c) |
static boolean |
isQuery(int c) |
boolean |
isQueryRelaxed(int c) |
static boolean |
isToken(int c) |
static boolean |
isToken(String s)
Is the provided String a token as per RFC 7230?
|
static boolean |
isUserInfo(int c) |
static String |
unquote(String input) |
public boolean isNotRequestTargetRelaxed(int c)
public boolean isAbsolutePathRelaxed(int c)
public boolean isQueryRelaxed(int c)
public static boolean isToken(int c)
public static boolean isToken(String s)
null
and the empty
string (""
) are not considered to be valid tokens.s
- The string to testtrue
if the string is a valid token, otherwise
false
public static boolean isHex(int c)
public static boolean isNotRequestTarget(int c)
public static boolean isHttpProtocol(int c)
public static boolean isAlpha(int c)
public static boolean isNumeric(int c)
public static boolean isUserInfo(int c)
public static boolean isAbsolutePath(int c)
public static boolean isQuery(int c)
public static boolean isControl(int c)
Copyright © 2000-2022 Apache Software Foundation. All Rights Reserved.