public abstract class AbstractViewBodyWriter extends Object implements javax.ws.rs.ext.MessageBodyWriter<ViewModel>
| Constructor and Description |
|---|
AbstractViewBodyWriter() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract List<javax.ws.rs.core.MediaType> |
getMediaTypes() |
long |
getSize(ViewModel 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 abstract void |
write(ViewModel t,
javax.ws.rs.core.MediaType mediaType,
OutputStream entityStream) |
void |
writeTo(ViewModel t,
Class<?> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType,
javax.ws.rs.core.MultivaluedMap<String,Object> httpHeaders,
OutputStream entityStream) |
public boolean isWriteable(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
isWriteable in interface javax.ws.rs.ext.MessageBodyWriter<ViewModel>public long getSize(ViewModel t, Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
getSize in interface javax.ws.rs.ext.MessageBodyWriter<ViewModel>public void writeTo(ViewModel t, 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<ViewModel>IOExceptionjavax.ws.rs.WebApplicationExceptionprotected abstract void write(ViewModel t, javax.ws.rs.core.MediaType mediaType, OutputStream entityStream) throws IOException, javax.ws.rs.WebApplicationException
IOExceptionjavax.ws.rs.WebApplicationExceptionprotected abstract List<javax.ws.rs.core.MediaType> getMediaTypes()
Copyright © 2012-2013 Taimos GmbH. All Rights Reserved.