Search in sources :

Example 1 with MultipartFormDataOutput

use of org.jboss.resteasy.plugins.providers.multipart.MultipartFormDataOutput in project wildfly by wildfly.

the class MultipartResource method get.

@GET
@Produces("multipart/related")
public MultipartFormDataOutput get() {
    MultipartFormDataOutput output = new MultipartFormDataOutput();
    output.addPart("Hello", MediaType.TEXT_PLAIN_TYPE);
    output.addPart("World", MediaType.TEXT_PLAIN_TYPE);
    return output;
}
Also used : MultipartFormDataOutput(org.jboss.resteasy.plugins.providers.multipart.MultipartFormDataOutput) Produces(javax.ws.rs.Produces) GET(javax.ws.rs.GET)

Aggregations

GET (javax.ws.rs.GET)1 Produces (javax.ws.rs.Produces)1 MultipartFormDataOutput (org.jboss.resteasy.plugins.providers.multipart.MultipartFormDataOutput)1