Class AppointmentMessageBodyWriter

  • All Implemented Interfaces:
    javax.ws.rs.ext.MessageBodyWriter<org.apache.openmeetings.db.dto.calendar.AppointmentDTO>

    @Provider
    @Produces("application/json")
    public class AppointmentMessageBodyWriter
    extends java.lang.Object
    implements javax.ws.rs.ext.MessageBodyWriter<org.apache.openmeetings.db.dto.calendar.AppointmentDTO>
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      long getSize​(org.apache.openmeetings.db.dto.calendar.AppointmentDTO t, java.lang.Class<?> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)  
      boolean isWriteable​(java.lang.Class<?> clazz, java.lang.reflect.Type type, java.lang.annotation.Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)  
      void writeTo​(org.apache.openmeetings.db.dto.calendar.AppointmentDTO t, java.lang.Class<?> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<java.lang.String,​java.lang.Object> httpHeaders, java.io.OutputStream out)  
      • Methods inherited from class java.lang.Object

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

      • AppointmentMessageBodyWriter

        public AppointmentMessageBodyWriter()
    • Method Detail

      • isWriteable

        public boolean isWriteable​(java.lang.Class<?> clazz,
                                   java.lang.reflect.Type type,
                                   java.lang.annotation.Annotation[] annotations,
                                   javax.ws.rs.core.MediaType mediaType)
        Specified by:
        isWriteable in interface javax.ws.rs.ext.MessageBodyWriter<org.apache.openmeetings.db.dto.calendar.AppointmentDTO>
      • getSize

        public long getSize​(org.apache.openmeetings.db.dto.calendar.AppointmentDTO t,
                            java.lang.Class<?> type,
                            java.lang.reflect.Type genericType,
                            java.lang.annotation.Annotation[] annotations,
                            javax.ws.rs.core.MediaType mediaType)
        Specified by:
        getSize in interface javax.ws.rs.ext.MessageBodyWriter<org.apache.openmeetings.db.dto.calendar.AppointmentDTO>
      • writeTo

        public void writeTo​(org.apache.openmeetings.db.dto.calendar.AppointmentDTO t,
                            java.lang.Class<?> type,
                            java.lang.reflect.Type genericType,
                            java.lang.annotation.Annotation[] annotations,
                            javax.ws.rs.core.MediaType mediaType,
                            javax.ws.rs.core.MultivaluedMap<java.lang.String,​java.lang.Object> httpHeaders,
                            java.io.OutputStream out)
                     throws java.io.IOException
        Specified by:
        writeTo in interface javax.ws.rs.ext.MessageBodyWriter<org.apache.openmeetings.db.dto.calendar.AppointmentDTO>
        Throws:
        java.io.IOException