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 |
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 |
isScheme(int c) |
static boolean |
isScheme(java.lang.String s)
Is the provided String a scheme as per RFC 3986?
|
static boolean |
isToken(int c) |
static boolean |
isToken(java.lang.String s)
Is the provided String a token as per RFC 7230?
|
static boolean |
isUserInfo(int c) |
static java.lang.String |
unquote(java.lang.String input) |
public HttpParser(java.lang.String relaxedPathChars,
java.lang.String relaxedQueryChars)
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 isToken(java.lang.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 falsepublic 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 isScheme(int c)
public static boolean isScheme(java.lang.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 scheme, otherwise falsepublic 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-2024 Apache Software Foundation.
Apache Tomcat, Tomcat, Apache, the Apache Tomcat logo and the Apache logo are either registered trademarks or trademarks of the Apache Software Foundation.