Class HttpTokens


  • @Deprecated(since="2021-05-27")
    public class HttpTokens
    extends java.lang.Object
    Deprecated.
    The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.
    HTTP constants
    • Constructor Summary

      Constructors 
      Constructor Description
      HttpTokens()
      Deprecated.
       
    • Method Summary

      All Methods Static Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      static boolean isIllegalFieldVchar​(char c)
      Deprecated.
      Checks whether this is an invalid VCHAR based on RFC9110.
      static char sanitizeFieldVchar​(char c)
      Deprecated.
      This is used when decoding to not decode illegal characters based on RFC9110.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • HttpTokens

        public HttpTokens()
        Deprecated.
    • Method Detail

      • sanitizeFieldVchar

        public static char sanitizeFieldVchar​(char c)
        Deprecated.
        This is used when decoding to not decode illegal characters based on RFC9110. CR, LF, or NUL are replaced with ' ', all other control and multibyte characters are replaced with '?'. If this is given a legal character the same value will be returned.
         field-vchar = VCHAR / obs-text
         obs-text    = %x80-FF
         VCHAR       = %x21-7E
         
        Parameters:
        c - the character to test.
        Returns:
        the original character or the replacement character ' ' or '?', the return value is guaranteed to be a valid ISO-8859-1 character.
      • isIllegalFieldVchar

        public static boolean isIllegalFieldVchar​(char c)
        Deprecated.
        Checks whether this is an invalid VCHAR based on RFC9110. If this not a valid ISO-8859-1 character or a control character we say that it is illegal.
        Parameters:
        c - the character to test.
        Returns:
        true if this is invalid VCHAR.