Class AbstractAegisProvider<T>

java.lang.Object
org.apache.cxf.jaxrs.provider.aegis.AbstractAegisProvider<T>
All Implemented Interfaces:
jakarta.ws.rs.ext.MessageBodyReader<T>, jakarta.ws.rs.ext.MessageBodyWriter<T>
Direct Known Subclasses:
AegisElementProvider

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

    • writeXsiType

      protected boolean writeXsiType
    • readXsiType

      protected boolean readXsiType
    • resolver

      @Context protected jakarta.ws.rs.ext.ContextResolver<org.apache.cxf.aegis.AegisContext> resolver
  • Constructor Details

    • AbstractAegisProvider

      public AbstractAegisProvider()
  • Method Details

    • setWriteXsiType

      public void setWriteXsiType(boolean write)
    • setReadXsiType

      public void setReadXsiType(boolean read)
    • isWriteable

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

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

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

      protected org.apache.cxf.aegis.AegisContext getAegisContext(Class<?> plainClass, Type genericType)
    • 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: