Class AMQPContentTypeSupport
- java.lang.Object
-
- org.apache.activemq.artemis.protocol.amqp.converter.AMQPContentTypeSupport
-
public final class AMQPContentTypeSupport extends Object
-
-
Constructor Summary
Constructors Constructor Description AMQPContentTypeSupport()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CharsetparseContentTypeForTextualCharset(String contentType)
-
-
-
Method Detail
-
parseContentTypeForTextualCharset
public static Charset parseContentTypeForTextualCharset(String contentType) throws ActiveMQAMQPInvalidContentTypeException
- 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:
ActiveMQAMQPInvalidContentTypeException- if the content-type is invalid in some way.
-
-