Class WadlDocumentMessageBodyWriter

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

    @Produces({"application/json","*/json","*/*+json","*/x-json","*/javascript","*/x-javascript"})
    public class WadlDocumentMessageBodyWriter
    extends java.lang.Object
    implements jakarta.ws.rs.ext.MessageBodyWriter<org.w3c.dom.Document>
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      long getSize​(org.w3c.dom.Document document, java.lang.Class<?> aClass, java.lang.reflect.Type type, java.lang.annotation.Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType)  
      boolean isWriteable​(java.lang.Class<?> aClass, java.lang.reflect.Type type, java.lang.annotation.Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType)  
      void writeTo​(org.w3c.dom.Document document, java.lang.Class<?> aClass, java.lang.reflect.Type type, java.lang.annotation.Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType, jakarta.ws.rs.core.MultivaluedMap<java.lang.String,​java.lang.Object> stringObjectMultivaluedMap, java.io.OutputStream outputStream)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • WadlDocumentMessageBodyWriter

        public WadlDocumentMessageBodyWriter()
    • Method Detail

      • isWriteable

        public boolean isWriteable​(java.lang.Class<?> aClass,
                                   java.lang.reflect.Type type,
                                   java.lang.annotation.Annotation[] annotations,
                                   jakarta.ws.rs.core.MediaType mediaType)
        Specified by:
        isWriteable in interface jakarta.ws.rs.ext.MessageBodyWriter<org.w3c.dom.Document>
      • getSize

        public long getSize​(org.w3c.dom.Document document,
                            java.lang.Class<?> aClass,
                            java.lang.reflect.Type type,
                            java.lang.annotation.Annotation[] annotations,
                            jakarta.ws.rs.core.MediaType mediaType)
        Specified by:
        getSize in interface jakarta.ws.rs.ext.MessageBodyWriter<org.w3c.dom.Document>
      • writeTo

        public void writeTo​(org.w3c.dom.Document document,
                            java.lang.Class<?> aClass,
                            java.lang.reflect.Type type,
                            java.lang.annotation.Annotation[] annotations,
                            jakarta.ws.rs.core.MediaType mediaType,
                            jakarta.ws.rs.core.MultivaluedMap<java.lang.String,​java.lang.Object> stringObjectMultivaluedMap,
                            java.io.OutputStream outputStream)
                     throws java.io.IOException,
                            jakarta.ws.rs.WebApplicationException
        Specified by:
        writeTo in interface jakarta.ws.rs.ext.MessageBodyWriter<org.w3c.dom.Document>
        Throws:
        java.io.IOException
        jakarta.ws.rs.WebApplicationException