Class DocumentProvider

    • Constructor Detail

      • DocumentProvider

        public DocumentProvider()
    • Method Detail

      • isReadable

        public boolean isReadable​(Class<?> clazz,
                                  Type type,
                                  Annotation[] annotation,
                                  jakarta.ws.rs.core.MediaType mediaType)
        Specified by:
        isReadable in interface jakarta.ws.rs.ext.MessageBodyReader<Document>
      • isWriteable

        public boolean isWriteable​(Class<?> clazz,
                                   Type type,
                                   Annotation[] annotation,
                                   jakarta.ws.rs.core.MediaType mediaType)
        Specified by:
        isWriteable in interface jakarta.ws.rs.ext.MessageBodyWriter<Document>
      • writeTo

        public void writeTo​(Document document,
                            Class<?> clazz,
                            Type type,
                            Annotation[] annotation,
                            jakarta.ws.rs.core.MediaType mediaType,
                            jakarta.ws.rs.core.MultivaluedMap<String,​Object> headers,
                            OutputStream output)
                     throws IOException,
                            jakarta.ws.rs.WebApplicationException
        Specified by:
        writeTo in interface jakarta.ws.rs.ext.MessageBodyWriter<Document>
        Throws:
        IOException
        jakarta.ws.rs.WebApplicationException