Package org.apache.johnzon.jaxrs
Class WadlDocumentMessageBodyWriter
- java.lang.Object
-
- org.apache.johnzon.jaxrs.WadlDocumentMessageBodyWriter
-
-
Field Summary
Fields Modifier and Type Field Description private WadlDocumentToJson
converter
-
Constructor Summary
Constructors Constructor Description WadlDocumentMessageBodyWriter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getSize(Document document, 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(Document document, Class<?> aClass, Type type, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType, jakarta.ws.rs.core.MultivaluedMap<String,Object> stringObjectMultivaluedMap, OutputStream outputStream)
-
-
-
Field Detail
-
converter
private final WadlDocumentToJson converter
-
-
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<Document>
-
getSize
public long getSize(Document document, Class<?> aClass, Type type, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType)
- Specified by:
getSize
in interfacejakarta.ws.rs.ext.MessageBodyWriter<Document>
-
writeTo
public void writeTo(Document document, 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<Document>
- Throws:
IOException
jakarta.ws.rs.WebApplicationException
-
-