@Provider public class NioMessageBodyWriter extends Object implements javax.ws.rs.ext.MessageBodyWriter<NioWriteEntity>
| Constructor and Description |
|---|
NioMessageBodyWriter() |
| Modifier and Type | Method and Description |
|---|---|
long |
getSize(NioWriteEntity t,
Class<?> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType) |
boolean |
isWriteable(Class<?> cls,
Type type,
Annotation[] anns,
javax.ws.rs.core.MediaType mt) |
void |
writeTo(NioWriteEntity entity,
Class<?> cls,
Type t,
Annotation[] anns,
javax.ws.rs.core.MediaType mt,
javax.ws.rs.core.MultivaluedMap<String,Object> headers,
OutputStream os) |
public boolean isWriteable(Class<?> cls, Type type, Annotation[] anns, javax.ws.rs.core.MediaType mt)
isWriteable in interface javax.ws.rs.ext.MessageBodyWriter<NioWriteEntity>public void writeTo(NioWriteEntity entity, 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
writeTo in interface javax.ws.rs.ext.MessageBodyWriter<NioWriteEntity>IOExceptionjavax.ws.rs.WebApplicationExceptionpublic long getSize(NioWriteEntity t, Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
getSize in interface javax.ws.rs.ext.MessageBodyWriter<NioWriteEntity>Apache CXF