@Produces(value={"application/json","application/*+json"}) @Consumes(value={"application/json","application/*+json"}) @Provider public class JsonMapObjectProvider extends Object implements javax.ws.rs.ext.MessageBodyReader<JsonMapObject>, javax.ws.rs.ext.MessageBodyWriter<JsonMapObject>
Constructor and Description |
---|
JsonMapObjectProvider() |
Modifier and Type | Method and Description |
---|---|
long |
getSize(JsonMapObject o,
Class<?> cls,
Type t,
Annotation[] anns,
javax.ws.rs.core.MediaType mt) |
boolean |
isReadable(Class<?> cls,
Type t,
Annotation[] anns,
javax.ws.rs.core.MediaType mt) |
boolean |
isWriteable(Class<?> cls,
Type t,
Annotation[] anns,
javax.ws.rs.core.MediaType mt) |
JsonMapObject |
readFrom(Class<JsonMapObject> cls,
Type t,
Annotation[] anns,
javax.ws.rs.core.MediaType mt,
javax.ws.rs.core.MultivaluedMap<String,String> headers,
InputStream is) |
void |
writeTo(JsonMapObject o,
Class<?> cls,
Type t,
Annotation[] anns,
javax.ws.rs.core.MediaType mt,
javax.ws.rs.core.MultivaluedMap<String,Object> headers,
OutputStream os) |
public long getSize(JsonMapObject o, Class<?> cls, Type t, Annotation[] anns, javax.ws.rs.core.MediaType mt)
getSize
in interface javax.ws.rs.ext.MessageBodyWriter<JsonMapObject>
public boolean isWriteable(Class<?> cls, Type t, Annotation[] anns, javax.ws.rs.core.MediaType mt)
isWriteable
in interface javax.ws.rs.ext.MessageBodyWriter<JsonMapObject>
public void writeTo(JsonMapObject o, Class<?> cls, Type t, Annotation[] anns, javax.ws.rs.core.MediaType mt, javax.ws.rs.core.MultivaluedMap<String,Object> headers, OutputStream os) throws IOException, javax.ws.rs.WebApplicationException
writeTo
in interface javax.ws.rs.ext.MessageBodyWriter<JsonMapObject>
IOException
javax.ws.rs.WebApplicationException
public boolean isReadable(Class<?> cls, Type t, Annotation[] anns, javax.ws.rs.core.MediaType mt)
isReadable
in interface javax.ws.rs.ext.MessageBodyReader<JsonMapObject>
public JsonMapObject readFrom(Class<JsonMapObject> cls, Type t, Annotation[] anns, javax.ws.rs.core.MediaType mt, javax.ws.rs.core.MultivaluedMap<String,String> headers, InputStream is) throws IOException, javax.ws.rs.WebApplicationException
readFrom
in interface javax.ws.rs.ext.MessageBodyReader<JsonMapObject>
IOException
javax.ws.rs.WebApplicationException
Apache CXF