E
- the real object classpublic abstract class AbstractWriter<E> extends Object implements javax.ws.rs.ext.MessageBodyWriter<List<E>>
Constructor and Description |
---|
AbstractWriter() |
Modifier and Type | Method and Description |
---|---|
long |
getSize(List<E> resource,
Class<?> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType) |
void |
setFormatters(Map<String,IFormatter<E>> mapFormatters)
Set the formatters
|
void |
writeTo(List<E> listResources,
Class<?> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType,
javax.ws.rs.core.MultivaluedMap<String,Object> httpHeaders,
OutputStream entityStream) |
public void setFormatters(Map<String,IFormatter<E>> mapFormatters)
mapFormatters
- the formatterspublic long getSize(List<E> resource, Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
public void writeTo(List<E> listResources, 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<List<E>>
IOException
javax.ws.rs.WebApplicationException
Copyright © 2021 City of Paris. All rights reserved.