writeTo
public void writeTo(java.util.Map dataMap,
java.lang.Class<?> dataObjectClass,
java.lang.reflect.Type dataObjectType,
java.lang.annotation.Annotation[] resourceAnnotations,
javax.ws.rs.core.MediaType responseMediaType,
javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.Object> responseHttpHeaders,
java.io.OutputStream responseOutputStream)
throws java.io.IOException,
javax.ws.rs.WebApplicationException
This method uses the helper method AbstractEntityProvider.formatResponseUsingJsp(Map)
to format
the response using a JSP. It gets the byte array returned by formatResponseUsingJsp
and passes it to
AtomFeed
to marshal the response.
- Throws:
java.io.IOException
javax.ws.rs.WebApplicationException
- See Also:
MessageBodyWriter.writeTo(Object, Class, Type, Annotation[], javax.ws.rs.core.MediaType, MultivaluedMap, OutputStream)