Package com.helger.http
Class RFC7230Helper
java.lang.Object
com.helger.http.RFC7230Helper
Helper class for RFC 7230
- Since:
- 10.5.1
- Author:
- Philip Helger
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisBackslash(char c) static booleanisValidToken(char[] a) Check if the provided char array is a valid token.static booleanCheck if the provided String is a valid token.static booleanisValidTokenChar(char c) Check if the provided char is a valid token char.
-
Method Details
-
isValidTokenChar
public static boolean isValidTokenChar(char c) Check if the provided char is a valid token char.- Parameters:
c- character to check- Returns:
trueif it is a valid token,falseif not.
-
isValidToken
Check if the provided String is a valid token.- Parameters:
s- String to check- Returns:
trueif it is a valid token,falseif not.
-
isValidToken
public static boolean isValidToken(@Nullable char[] a) Check if the provided char array is a valid token.- Parameters:
a- Character array to check- Returns:
trueif it is a valid token,falseif not.
-
isBackslash
public static boolean isBackslash(char c)
-