Class AbstractWriteableProvider<T>

  • Type Parameters:
    T - the concrete type of provider
    All Implemented Interfaces:
    jakarta.ws.rs.ext.MessageBodyWriter<T>
    Direct Known Subclasses:
    AbstractJaxbWriteableProvider

    public abstract class AbstractWriteableProvider<T>
    extends Object
    implements jakarta.ws.rs.ext.MessageBodyWriter<T>
    Provides common implementation.
    Author:
    aherscu
    • Constructor Detail

      • AbstractWriteableProvider

        public AbstractWriteableProvider()
    • Method Detail

      • isWriteable

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

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