Class JSONObjWriter

  • All Implemented Interfaces:
    javax.ws.rs.ext.MessageBodyWriter<Map<String,​Object>>

    @Provider
    @Produces("application/json")
    public class JSONObjWriter
    extends Object
    implements javax.ws.rs.ext.MessageBodyWriter<Map<String,​Object>>
    • Constructor Detail

      • JSONObjWriter

        public JSONObjWriter()
    • Method Detail

      • isWriteable

        public boolean isWriteable​(Class<?> type,
                                   Type genericType,
                                   Annotation[] annotations,
                                   javax.ws.rs.core.MediaType mediaType)
        Specified by:
        isWriteable in interface javax.ws.rs.ext.MessageBodyWriter<Map<String,​Object>>
      • getSize

        public long getSize​(Metadata data,
                            Class<?> type,
                            Type genericType,
                            Annotation[] annotations,
                            javax.ws.rs.core.MediaType mediaType)