Package com.helger.http
Class RFC1945Helper
java.lang.Object
com.helger.http.RFC1945Helper
HTTP string helper. Based on RFC 1945 (HTTP/1.0) http://tools.ietf.org/html/rfc1945
- Author:
- Philip Helger
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final charComment start characterstatic final charComment end characterstatic final intMaximum index (inclusive)static final intMinimum index (inclusive)static final charQuoted text start characterstatic final charQuoted text end character -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetQuotedTextString(String sStr) static booleanisAlphaChar(int n) static booleanisChar(int n) static booleanisComment(char[] aChars) static booleanstatic booleanisCommentChar(int n) static booleanisControlChar(int n) static booleanisCRChar(int n) static booleanisDigitChar(int n) static booleanisExtraChar(int n) static booleanisHexChar(int n) static booleanisHexNotEmpty(char[] aChars) static booleanisHexNotEmpty(String sStr) static booleanisLFChar(int n) static booleanisLinearWhitespaceChar(int n) static booleanisLowerAlphaChar(int n) static booleanisLowerHexChar(int n) static booleanisLowerHexNotEmpty(char[] aChars) static booleanisLowerHexNotEmpty(String sStr) static booleanisNationalChar(int n) static booleanisNonTokenChar(int n) static booleanisOctet(int n) static booleanisQuoteChar(int n) static booleanisQuotedText(char[] aChars) static booleanisQuotedText(String sStr) static booleanisQuotedTextChar(int n) static booleanisQuotedTextContent(char[] aChars) static booleanisQuotedTextContent(String sStr) static booleanisReservedChar(int n) static booleanisSafeChar(int n) static booleanisSpaceChar(int n) static booleanisTabChar(int n) static booleanisTextChar(int n) static booleanisToken(char[] aChars) static booleanstatic booleanisTokenChar(int n) static booleanisUnreservedChar(int n) static booleanisUnsafeChar(int n) static booleanisUpperAlphaChar(int n) static booleanisWord(char[] aChars) static boolean
-
Field Details
-
MIN_INDEX
public static final int MIN_INDEXMinimum index (inclusive)- See Also:
-
MAX_INDEX
public static final int MAX_INDEXMaximum index (inclusive)- See Also:
-
COMMENT_BEGIN
public static final char COMMENT_BEGINComment start character- See Also:
-
COMMENT_END
public static final char COMMENT_ENDComment end character- See Also:
-
QUOTEDTEXT_BEGIN
public static final char QUOTEDTEXT_BEGINQuoted text start character- See Also:
-
QUOTEDTEXT_END
public static final char QUOTEDTEXT_ENDQuoted text end character- See Also:
-
CHAR_TAB
public static final int CHAR_TAB- See Also:
-
CHAR_LF
public static final int CHAR_LF- See Also:
-
CHAR_CR
public static final int CHAR_CR- See Also:
-
CHAR_SPACE
public static final int CHAR_SPACE- See Also:
-
-
Method Details
-
isChar
public static boolean isChar(int n) -
isOctet
public static boolean isOctet(int n) -
isUpperAlphaChar
public static boolean isUpperAlphaChar(int n) -
isLowerAlphaChar
public static boolean isLowerAlphaChar(int n) -
isAlphaChar
public static boolean isAlphaChar(int n) -
isDigitChar
public static boolean isDigitChar(int n) -
isControlChar
public static boolean isControlChar(int n) -
isCRChar
public static boolean isCRChar(int n) -
isLFChar
public static boolean isLFChar(int n) -
isSpaceChar
public static boolean isSpaceChar(int n) -
isTabChar
public static boolean isTabChar(int n) -
isLinearWhitespaceChar
public static boolean isLinearWhitespaceChar(int n) -
isQuoteChar
public static boolean isQuoteChar(int n) -
isHexChar
public static boolean isHexChar(int n) -
isHexNotEmpty
public static boolean isHexNotEmpty(@Nullable char[] aChars) -
isHexNotEmpty
-
isLowerHexChar
public static boolean isLowerHexChar(int n) -
isLowerHexNotEmpty
public static boolean isLowerHexNotEmpty(@Nullable char[] aChars) -
isLowerHexNotEmpty
-
isNonTokenChar
public static boolean isNonTokenChar(int n) -
isTokenChar
public static boolean isTokenChar(int n) -
isToken
public static boolean isToken(@Nullable char[] aChars) -
isToken
-
isTextChar
public static boolean isTextChar(int n) -
isCommentChar
public static boolean isCommentChar(int n) -
isComment
public static boolean isComment(@Nullable char[] aChars) -
isComment
-
isQuotedTextChar
public static boolean isQuotedTextChar(int n) -
isQuotedText
public static boolean isQuotedText(@Nullable char[] aChars) -
isQuotedText
-
getQuotedTextString
-
isQuotedTextContent
public static boolean isQuotedTextContent(@Nullable char[] aChars) -
isQuotedTextContent
-
isWord
public static boolean isWord(@Nullable char[] aChars) -
isWord
-
isReservedChar
public static boolean isReservedChar(int n) -
isExtraChar
public static boolean isExtraChar(int n) -
isSafeChar
public static boolean isSafeChar(int n) -
isUnsafeChar
public static boolean isUnsafeChar(int n) -
isNationalChar
public static boolean isNationalChar(int n) -
isUnreservedChar
public static boolean isUnreservedChar(int n)
-