Class AMQPContentTypeSupport
java.lang.Object
org.apache.activemq.artemis.protocol.amqp.converter.AMQPContentTypeSupport
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CharsetparseContentTypeForTextualCharset(String contentType) Parse the content type from a message and determine theCharset.
-
Constructor Details
-
AMQPContentTypeSupport
public AMQPContentTypeSupport()
-
-
Method Details
-
parseContentTypeForTextualCharset
public static Charset parseContentTypeForTextualCharset(String contentType) throws ActiveMQAMQPInvalidContentTypeException Parse the content type from a message and determine theCharset.- 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.
-