@Provider @Produces(value="multipart/form-data") public class MultipartFormAnnotationWriter extends AbstractMultipartFormDataWriter implements javax.ws.rs.ext.MessageBodyWriter<Object>
workers
Constructor and Description |
---|
MultipartFormAnnotationWriter() |
Modifier and Type | Method and Description |
---|---|
protected void |
getFields(Class<?> type,
MultipartFormDataOutput output,
Object obj) |
protected String |
getFilename(AccessibleObject method) |
long |
getSize(Object o,
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) |
void |
writeTo(Object obj,
Class<?> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType,
javax.ws.rs.core.MultivaluedMap<String,Object> httpHeaders,
OutputStream entityStream) |
writeParts
write, writePart
public boolean isWriteable(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
isWriteable
in interface javax.ws.rs.ext.MessageBodyWriter<Object>
public long getSize(Object o, Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
getSize
in interface javax.ws.rs.ext.MessageBodyWriter<Object>
public void writeTo(Object obj, 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<Object>
IOException
javax.ws.rs.WebApplicationException
protected String getFilename(AccessibleObject method)
protected void getFields(Class<?> type, MultipartFormDataOutput output, Object obj) throws IOException
IOException
Copyright © 2015 JBoss by Red Hat. All rights reserved.