@Provider @Produces(value="multipart/mixed") public class ParamsWithPayloadMultipartWriter extends MultipartProprietaryWriter implements javax.ws.rs.ext.MessageBodyWriter<ParamsWithPayload>
MultipartProprietaryWriter.ContentTypeWriterBOUNDARY_BASE, boundary_int, BOUNDERY_DELIMIT, EOL| Constructor and Description |
|---|
ParamsWithPayloadMultipartWriter() |
| Modifier and Type | Method and Description |
|---|---|
long |
getSize(ParamsWithPayload t,
Class<?> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType) |
boolean |
isWriteable(Class<?> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType) |
protected void |
writeActionReport(Writer writer,
OutputStream underOS,
String boundary,
ActionReport ar) |
void |
writeTo(ParamsWithPayload proxy,
Class<?> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType,
javax.ws.rs.core.MultivaluedMap<String,Object> httpHeaders,
OutputStream entityStream) |
isWriteable, multiWrite, writeParam, writePayloadPart, writeTo, writeTopublic boolean isWriteable(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
isWriteable in interface javax.ws.rs.ext.MessageBodyWriter<ParamsWithPayload>public void writeTo(ParamsWithPayload proxy, Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String,Object> httpHeaders, OutputStream entityStream) throws IOException, javax.ws.rs.WebApplicationException
writeTo in interface javax.ws.rs.ext.MessageBodyWriter<ParamsWithPayload>IOExceptionjavax.ws.rs.WebApplicationExceptionprotected void writeActionReport(Writer writer, OutputStream underOS, String boundary, ActionReport ar) throws IOException
writeActionReport in class MultipartProprietaryWriterIOExceptionpublic long getSize(ParamsWithPayload t, Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
getSize in interface javax.ws.rs.ext.MessageBodyWriter<ParamsWithPayload>Copyright © 2019. All rights reserved.