Class WadlDocumentMessageBodyWriter

  • All Implemented Interfaces:
    jakarta.ws.rs.ext.MessageBodyWriter<Document>

    @Produces({"application/json","*/json","*/*+json","*/x-json","*/javascript","*/x-javascript"})
    public class WadlDocumentMessageBodyWriter
    extends Object
    implements jakarta.ws.rs.ext.MessageBodyWriter<Document>
    • Constructor Detail

      • WadlDocumentMessageBodyWriter

        public WadlDocumentMessageBodyWriter()
    • Method Detail

      • isWriteable

        public boolean isWriteable​(Class<?> aClass,
                                   Type type,
                                   Annotation[] annotations,
                                   jakarta.ws.rs.core.MediaType mediaType)
        Specified by:
        isWriteable in interface jakarta.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 interface jakarta.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 interface jakarta.ws.rs.ext.MessageBodyWriter<Document>
        Throws:
        IOException
        jakarta.ws.rs.WebApplicationException