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 Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected jakarta.ws.rs.ext.ContextResolver<org.apache.cxf.aegis.AegisContext>protected boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected org.apache.cxf.aegis.AegisContextgetAegisContext(Class<?> plainClass, Type genericType) longgetSize(T o, Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mt) booleanisReadable(Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mt) protected booleanisSupported(Class<?> type, Type genericType, Annotation[] annotations) For Aegis, it's not obvious to me how we'd decide that a type was hopeless.booleanisWriteable(Class<?> type, Type genericType, Annotation[] anns, jakarta.ws.rs.core.MediaType mt) voidsetReadXsiType(boolean read) voidsetWriteXsiType(boolean write) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface jakarta.ws.rs.ext.MessageBodyReader
readFromMethods inherited from interface jakarta.ws.rs.ext.MessageBodyWriter
writeTo
-
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:
isWriteablein interfacejakarta.ws.rs.ext.MessageBodyWriter<T>
-
isReadable
public boolean isReadable(Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mt) - Specified by:
isReadablein interfacejakarta.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:
getSizein interfacejakarta.ws.rs.ext.MessageBodyWriter<T>
-
getAegisContext
-
isSupported
For Aegis, it's not obvious to me how we'd decide that a type was hopeless.- Parameters:
type-genericType-annotations-- Returns:
-