Class AmqpContentTypeSupport
java.lang.Object
org.apache.activemq.transport.amqp.message.AmqpContentTypeSupport
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CharsetparseContentTypeForTextualCharset(String contentType)
-
Constructor Details
-
AmqpContentTypeSupport
public AmqpContentTypeSupport()
-
-
Method Details
-
parseContentTypeForTextualCharset
public static Charset parseContentTypeForTextualCharset(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.
-