Class JSONObjWriter

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

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

      • JSONObjWriter

        public JSONObjWriter()
    • Method Detail

      • isWriteable

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

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