public class BinaryDataProvider<T> extends AbstractConfigurableProvider implements javax.ws.rs.ext.MessageBodyReader<T>, javax.ws.rs.ext.MessageBodyWriter<T>
BUNDLE
Constructor and Description |
---|
BinaryDataProvider() |
Modifier and Type | Method and Description |
---|---|
protected void |
copyInputToOutput(InputStream is,
OutputStream os,
javax.ws.rs.core.MultivaluedMap<String,Object> outHeaders) |
long |
getSize(T t,
Class<?> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mt) |
protected void |
handleRangeRequest(InputStream is,
OutputStream os,
javax.ws.rs.core.HttpHeaders inHeaders,
javax.ws.rs.core.MultivaluedMap<String,Object> outHeaders) |
protected boolean |
isRangeSupported() |
boolean |
isReadable(Class<?> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mt) |
boolean |
isWriteable(Class<?> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mt) |
T |
readFrom(Class<T> clazz,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType type,
javax.ws.rs.core.MultivaluedMap<String,String> headers,
InputStream is) |
void |
setBufferSize(int bufferSize) |
void |
setCloseResponseInputStream(boolean closeResponseInputStream) |
void |
setReportByteArraySize(boolean report) |
void |
writeTo(T o,
Class<?> clazz,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType type,
javax.ws.rs.core.MultivaluedMap<String,Object> headers,
OutputStream os) |
getBus, getConsumeMediaTypes, getEnableBuffering, getEnableStreaming, getProduceMediaTypes, init, isPayloadEmpty, isPayloadEmpty, reportEmptyContentLength, setBus, setConsumeMediaTypes, setEnableBuffering, setEnableStreaming, setProduceMediaTypes
public boolean isReadable(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mt)
isReadable
in interface javax.ws.rs.ext.MessageBodyReader<T>
public T readFrom(Class<T> clazz, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType type, javax.ws.rs.core.MultivaluedMap<String,String> headers, InputStream is) throws IOException
readFrom
in interface javax.ws.rs.ext.MessageBodyReader<T>
IOException
public long getSize(T t, Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mt)
getSize
in interface javax.ws.rs.ext.MessageBodyWriter<T>
public boolean isWriteable(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mt)
isWriteable
in interface javax.ws.rs.ext.MessageBodyWriter<T>
public void writeTo(T o, Class<?> clazz, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType type, javax.ws.rs.core.MultivaluedMap<String,Object> headers, OutputStream os) throws IOException
writeTo
in interface javax.ws.rs.ext.MessageBodyWriter<T>
IOException
protected void copyInputToOutput(InputStream is, OutputStream os, javax.ws.rs.core.MultivaluedMap<String,Object> outHeaders) throws IOException
IOException
protected void handleRangeRequest(InputStream is, OutputStream os, javax.ws.rs.core.HttpHeaders inHeaders, javax.ws.rs.core.MultivaluedMap<String,Object> outHeaders) throws IOException
IOException
protected boolean isRangeSupported()
public void setReportByteArraySize(boolean report)
public void setCloseResponseInputStream(boolean closeResponseInputStream)
public void setBufferSize(int bufferSize)
Apache CXF