@Provider @Produces(value="*/*") public class JsrMessageBodyWriter extends Object implements javax.ws.rs.ext.MessageBodyWriter<javax.json.JsonStructure>
Constructor and Description |
---|
JsrMessageBodyWriter() |
JsrMessageBodyWriter(javax.json.JsonWriterFactory factory,
boolean closeStreams) |
Modifier and Type | Method and Description |
---|---|
long |
getSize(javax.json.JsonStructure jsonStructure,
Class<?> aClass,
Type type,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType) |
boolean |
isWriteable(Class<?> aClass,
Type type,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType) |
void |
writeTo(javax.json.JsonStructure jsonStructure,
Class<?> aClass,
Type type,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType,
javax.ws.rs.core.MultivaluedMap<String,Object> stringObjectMultivaluedMap,
OutputStream outputStream) |
public JsrMessageBodyWriter()
public JsrMessageBodyWriter(javax.json.JsonWriterFactory factory, boolean closeStreams)
public boolean isWriteable(Class<?> aClass, Type type, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
isWriteable
in interface javax.ws.rs.ext.MessageBodyWriter<javax.json.JsonStructure>
public long getSize(javax.json.JsonStructure jsonStructure, Class<?> aClass, Type type, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
getSize
in interface javax.ws.rs.ext.MessageBodyWriter<javax.json.JsonStructure>
public void writeTo(javax.json.JsonStructure jsonStructure, Class<?> aClass, Type type, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String,Object> stringObjectMultivaluedMap, OutputStream outputStream) throws IOException, javax.ws.rs.WebApplicationException
writeTo
in interface javax.ws.rs.ext.MessageBodyWriter<javax.json.JsonStructure>
IOException
javax.ws.rs.WebApplicationException
Copyright © 2014 The Apache Software Foundation. All rights reserved.