Class AbstractAegisProvider<T>

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

    public abstract class AbstractAegisProvider<T>
    extends Object
    implements javax.ws.rs.ext.MessageBodyReader<T>, javax.ws.rs.ext.MessageBodyWriter<T>
    • Field Detail

      • writeXsiType

        protected boolean writeXsiType
      • readXsiType

        protected boolean readXsiType
      • resolver

        @Context
        protected javax.ws.rs.ext.ContextResolver<AegisContext> resolver
    • Constructor Detail

      • AbstractAegisProvider

        public AbstractAegisProvider()
    • Method Detail

      • setWriteXsiType

        public void setWriteXsiType​(boolean write)
      • setReadXsiType

        public void setReadXsiType​(boolean read)
      • isWriteable

        public boolean isWriteable​(Class<?> type,
                                   Type genericType,
                                   Annotation[] anns,
                                   javax.ws.rs.core.MediaType mt)
        Specified by:
        isWriteable in interface javax.ws.rs.ext.MessageBodyWriter<T>
      • isReadable

        public boolean isReadable​(Class<?> type,
                                  Type genericType,
                                  Annotation[] annotations,
                                  javax.ws.rs.core.MediaType mt)
        Specified by:
        isReadable in interface javax.ws.rs.ext.MessageBodyReader<T>
      • getSize

        public long getSize​(T o,
                            Class<?> type,
                            Type genericType,
                            Annotation[] annotations,
                            javax.ws.rs.core.MediaType mt)
        Specified by:
        getSize in interface javax.ws.rs.ext.MessageBodyWriter<T>
      • isSupported

        protected boolean isSupported​(Class<?> type,
                                      Type genericType,
                                      Annotation[] annotations)
        For Aegis, it's not obvious to me how we'd decide that a type was hopeless.
        Parameters:
        type -
        genericType -
        annotations -
        Returns: