@Provider public class AtomEntityProvider extends AbstractEntityProvider
Constructor and Description |
---|
AtomEntityProvider() |
Modifier and Type | Method and Description |
---|---|
protected java.lang.String | getActionFormat()
This method returns the action format which is required for resolving the struts action of the formatting JSP.
|
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)
This method uses the helper method AbstractEntityProvider.formatResponseUsingJsp(Map) to format the response using a JSP.
|
protected java.lang.String getActionFormat()
By default, this method returns NULL. Extend this method for JAX-RS entity providers that require a JSP for formatting the response. For example, for ATOM Feed it can return "/{0}Atom/{1}", where 0 is substituted with the provided formatting group name and 1 is substituted with the resolved store id.
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