org.apache.cxf.jaxrs.provider
Class StreamingResponseProvider<T>
java.lang.Object
org.apache.cxf.jaxrs.provider.StreamingResponseProvider<T>
- All Implemented Interfaces:
- javax.ws.rs.ext.MessageBodyWriter<StreamingResponse<T>>
public class StreamingResponseProvider<T>
- extends Object
- implements javax.ws.rs.ext.MessageBodyWriter<StreamingResponse<T>>
Method Summary |
long |
getSize(StreamingResponse<T> arg0,
Class<?> arg1,
Type arg2,
Annotation[] arg3,
javax.ws.rs.core.MediaType arg4)
|
boolean |
isWriteable(Class<?> cls,
Type type,
Annotation[] anns,
javax.ws.rs.core.MediaType mt)
|
void |
writeTo(StreamingResponse<T> p,
Class<?> cls,
Type t,
Annotation[] anns,
javax.ws.rs.core.MediaType mt,
javax.ws.rs.core.MultivaluedMap<String,Object> headers,
OutputStream os)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StreamingResponseProvider
public StreamingResponseProvider()
isWriteable
public boolean isWriteable(Class<?> cls,
Type type,
Annotation[] anns,
javax.ws.rs.core.MediaType mt)
- Specified by:
isWriteable
in interface javax.ws.rs.ext.MessageBodyWriter<StreamingResponse<T>>
writeTo
public void writeTo(StreamingResponse<T> p,
Class<?> cls,
Type t,
Annotation[] anns,
javax.ws.rs.core.MediaType mt,
javax.ws.rs.core.MultivaluedMap<String,Object> headers,
OutputStream os)
throws IOException,
javax.ws.rs.WebApplicationException
- Specified by:
writeTo
in interface javax.ws.rs.ext.MessageBodyWriter<StreamingResponse<T>>
- Throws:
IOException
javax.ws.rs.WebApplicationException
getSize
public long getSize(StreamingResponse<T> arg0,
Class<?> arg1,
Type arg2,
Annotation[] arg3,
javax.ws.rs.core.MediaType arg4)
- Specified by:
getSize
in interface javax.ws.rs.ext.MessageBodyWriter<StreamingResponse<T>>
Apache CXF