此内容没有您所选择的语言版本。
Chapter 16. Content Marshalling/Providers
RESTEasy can automatically marshal and unmarshal several different message body types.
| Media Types | Java Type |
|---|---|
| application/*+xml, text/*+xml, application/*+json, application/*+fastinfoset, application/atom+* | JaxB annotated classes |
| */* | java.lang.String |
| */* | java.io.InputStream |
| text/plain | primitives, java.lang.String, or any type that has a String constructor, or static valueOf(String) method for input, toString() for output |
| */* | javax.activation.DataSource |
| */* | java.io.File |
| */* | byte[] |
| application/x-www-form-urlencoded | javax.ws.rs.core.MultivaluedMap |