Class JsonAdapterWriter

  • All Implemented Interfaces:
    javax.ws.rs.ext.MessageBodyWriter<JsonAdapter>

    @Provider
    public class JsonAdapterWriter
    extends Object
    implements javax.ws.rs.ext.MessageBodyWriter<JsonAdapter>
    Author:
    bstefanescu
    • Constructor Detail

      • JsonAdapterWriter

        public JsonAdapterWriter()
    • 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<JsonAdapter>
      • getSize

        public long getSize​(JsonAdapter t,
                            Class<?> type,
                            Type genericType,
                            Annotation[] annotations,
                            javax.ws.rs.core.MediaType mediaType)
        Specified by:
        getSize in interface javax.ws.rs.ext.MessageBodyWriter<JsonAdapter>