Package org.jaxxy.io

Class MessageBodyProvider<T>

  • All Implemented Interfaces:
    javax.ws.rs.ext.MessageBodyReader<T>, javax.ws.rs.ext.MessageBodyWriter<T>
    Direct Known Subclasses:
    CharacterMessageBodyProvider

    @Provider
    public abstract class MessageBodyProvider<T>
    extends Object
    implements javax.ws.rs.ext.MessageBodyReader<T>, javax.ws.rs.ext.MessageBodyWriter<T>
    • Constructor Detail

      • MessageBodyProvider

        public MessageBodyProvider()
    • Method Detail

      • isReadable

        public boolean isReadable​(Class<?> type,
                                  Type genericType,
                                  Annotation[] annotations,
                                  javax.ws.rs.core.MediaType mediaType)
        Specified by:
        isReadable in interface javax.ws.rs.ext.MessageBodyReader<T>
      • 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<T>
      • isSupportedType

        protected boolean isSupportedType​(Class<?> type)
        Override to customize the types supported by this provider.
        Parameters:
        type - the type
        Returns:
        whether or not the type is to be supported by this provider