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) Check if the provided char is a backslash character.static booleanisValidToken(char @Nullable [] a) Check if the provided char array is a valid token.static booleanisValidToken(@Nullable String s) Check 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(char @Nullable [] 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) Check if the provided char is a backslash character.- Parameters:
c- The character to check.- Returns:
trueif the character is a backslash,falseif not.
-