Package org.apache.johnzon.jaxrs
Class JsrMessageBodyWriter
- java.lang.Object
-
- org.apache.johnzon.jaxrs.JsrMessageBodyWriter
-
- All Implemented Interfaces:
jakarta.ws.rs.ext.MessageBodyWriter<jakarta.json.JsonStructure>
@Produces({"application/json","*/json","*/*+json","*/x-json","*/javascript","*/x-javascript"}) public class JsrMessageBodyWriter extends Object implements jakarta.ws.rs.ext.MessageBodyWriter<jakarta.json.JsonStructure>
-
-
Constructor Summary
Constructors Constructor Description JsrMessageBodyWriter()
JsrMessageBodyWriter(jakarta.json.JsonWriterFactory factory, boolean closeStreams)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getSize(jakarta.json.JsonStructure jsonStructure, Class<?> aClass, Type type, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType)
boolean
isWriteable(Class<?> aClass, Type type, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType)
void
writeTo(jakarta.json.JsonStructure jsonStructure, Class<?> aClass, Type type, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType, jakarta.ws.rs.core.MultivaluedMap<String,Object> stringObjectMultivaluedMap, OutputStream outputStream)
-
-
-
Method Detail
-
isWriteable
public boolean isWriteable(Class<?> aClass, Type type, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType)
- Specified by:
isWriteable
in interfacejakarta.ws.rs.ext.MessageBodyWriter<jakarta.json.JsonStructure>
-
getSize
public long getSize(jakarta.json.JsonStructure jsonStructure, Class<?> aClass, Type type, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType)
- Specified by:
getSize
in interfacejakarta.ws.rs.ext.MessageBodyWriter<jakarta.json.JsonStructure>
-
writeTo
public void writeTo(jakarta.json.JsonStructure jsonStructure, Class<?> aClass, Type type, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType, jakarta.ws.rs.core.MultivaluedMap<String,Object> stringObjectMultivaluedMap, OutputStream outputStream) throws IOException, jakarta.ws.rs.WebApplicationException
- Specified by:
writeTo
in interfacejakarta.ws.rs.ext.MessageBodyWriter<jakarta.json.JsonStructure>
- Throws:
IOException
jakarta.ws.rs.WebApplicationException
-
-