@Provider public class GraphNodeWriter extends Object implements javax.ws.rs.ext.MessageBodyWriter<GraphNode>
Modifier and Type | Field and Description |
---|---|
static String |
OBJ_EXP_PARAM |
static String |
SUBJ_EXP_PARAM |
Constructor and Description |
---|
GraphNodeWriter() |
Modifier and Type | Method and Description |
---|---|
long |
getSize(GraphNode n,
Class<?> type,
Type genericType,
java.lang.annotation.Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType) |
boolean |
isWriteable(Class<?> type,
Type genericType,
java.lang.annotation.Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType) |
void |
setUriInfo(javax.ws.rs.core.UriInfo uriInfo) |
void |
writeTo(GraphNode node,
Class<?> type,
Type genericType,
java.lang.annotation.Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType,
javax.ws.rs.core.MultivaluedMap<String,Object> httpHeaders,
OutputStream entityStream) |
public static final String OBJ_EXP_PARAM
public static final String SUBJ_EXP_PARAM
public boolean isWriteable(Class<?> type, Type genericType, java.lang.annotation.Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
isWriteable
in interface javax.ws.rs.ext.MessageBodyWriter<GraphNode>
public long getSize(GraphNode n, Class<?> type, Type genericType, java.lang.annotation.Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
getSize
in interface javax.ws.rs.ext.MessageBodyWriter<GraphNode>
public void writeTo(GraphNode node, Class<?> type, Type genericType, java.lang.annotation.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<GraphNode>
IOException
javax.ws.rs.WebApplicationException
@Context public void setUriInfo(javax.ws.rs.core.UriInfo uriInfo)
Copyright © 2014 The Apache Software Foundation. All Rights Reserved.