public class MediaTypeParser extends Object
text/plain
and text/plain; charset=UTF-8
etcConstructor and Description |
---|
MediaTypeParser() |
Modifier and Type | Method and Description |
---|---|
static javax.ws.rs.core.MediaType |
fromString(String value)
Converts a string such as "text/plain" into a MediaType object.
|
static String |
toString(javax.ws.rs.core.MediaType mediaType)
Converts a MediaType object into a string, suitable for printing in an HTTP header.
|
public static javax.ws.rs.core.MediaType fromString(String value)
value
- The value to parsepublic static String toString(javax.ws.rs.core.MediaType mediaType)
mediaType
- The type to printCopyright © 2017–2019. All rights reserved.