Class AbstractAegisProvider<T>
- java.lang.Object
-
- org.apache.cxf.jaxrs.provider.aegis.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 Summary
Fields Modifier and Type Field Description protected booleanreadXsiTypeprotected javax.ws.rs.ext.ContextResolver<AegisContext>resolverprotected booleanwriteXsiType
-
Constructor Summary
Constructors Constructor Description AbstractAegisProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected AegisContextgetAegisContext(Class<?> plainClass, Type genericType)longgetSize(T o, Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mt)booleanisReadable(Class<?> type, Type genericType, Annotation[] annotations, javax.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, javax.ws.rs.core.MediaType mt)voidsetReadXsiType(boolean read)voidsetWriteXsiType(boolean write)
-
-
-
Field Detail
-
writeXsiType
protected boolean writeXsiType
-
readXsiType
protected boolean readXsiType
-
resolver
@Context protected javax.ws.rs.ext.ContextResolver<AegisContext> resolver
-
-
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:
isWriteablein interfacejavax.ws.rs.ext.MessageBodyWriter<T>
-
isReadable
public boolean isReadable(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mt)
- Specified by:
isReadablein interfacejavax.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:
getSizein interfacejavax.ws.rs.ext.MessageBodyWriter<T>
-
getAegisContext
protected 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:
-
-