Package org.glassfish.jersey.message
Class MessageUtils
java.lang.Object
org.glassfish.jersey.message.MessageUtils
Utility class with message related methods.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Charset
getCharset
(javax.ws.rs.core.MediaType media) Get the character set from a media type.
-
Constructor Details
-
MessageUtils
private MessageUtils()Prevent instantiation.
-
-
Method Details
-
getCharset
Get the character set from a media type.The character set is obtained from the media type parameter "charset". If the parameter is not present the
UTF8
charset is utilized.- Parameters:
media
- the media type.- Returns:
- the character set.
-