Version 3

    Default JAX-RS Content Marshalling

     

    Resteasy can automatically marshal and unmarshal a few different message bodies.

     

    Media Types

    Java Type

    application/xml, text/xml

    JaxB annotated classes

    /

    java.lang.String

    /

    java.io.InputStream

    text/plain

    primtives, 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{FOOTNOTE DEF  }

    application/x-www-form-urlencoded

    javax.ws.rs.core.MultivaluedMap