public class MessageUtils extends Object
| Constructor and Description |
|---|
MessageUtils() |
| Modifier and Type | Method and Description |
|---|---|
static Charset |
getCharset(javax.ws.rs.core.MediaType m)
Get the character set from a media type.
|
public static Charset getCharset(javax.ws.rs.core.MediaType m)
The character set is obtained from the media type parameter "charset".
If the parameter is not present the UTF8 charset is utilized.
m - the media type.Copyright © 2007-2014, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.