Class ContentTypeSupport


  • public final class ContentTypeSupport
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.nio.charset.Charset parseContentTypeForTextualCharset​(java.lang.String contentType)  
      • Methods inherited from class java.lang.Object

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

      • ContentTypeSupport

        public ContentTypeSupport()
    • Method Detail

      • parseContentTypeForTextualCharset

        public static java.nio.charset.Charset parseContentTypeForTextualCharset​(java.lang.String contentType)
                                                                          throws InvalidContentTypeException
        Parameters:
        contentType - the contentType of the received message
        Returns:
        the character set to use, or null if not to treat the message as text
        Throws:
        InvalidContentTypeException - if the content-type is invalid in some way.