public abstract class AbstractAegisProvider<T> extends Object implements javax.ws.rs.ext.MessageBodyReader<T>, javax.ws.rs.ext.MessageBodyWriter<T>
Modifier and Type | Field and Description |
---|---|
protected boolean |
readXsiType |
protected javax.ws.rs.ext.ContextResolver<AegisContext> |
resolver |
protected boolean |
writeXsiType |
Constructor and Description |
---|
AbstractAegisProvider() |
Modifier and Type | Method and Description |
---|---|
protected AegisContext |
getAegisContext(Class<?> plainClass,
Type genericType) |
long |
getSize(T o,
Class<?> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mt) |
boolean |
isReadable(Class<?> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mt) |
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.
|
boolean |
isWriteable(Class<?> type,
Type genericType,
Annotation[] anns,
javax.ws.rs.core.MediaType mt) |
void |
setReadXsiType(boolean read) |
void |
setWriteXsiType(boolean write) |
protected boolean writeXsiType
protected boolean readXsiType
@Context protected javax.ws.rs.ext.ContextResolver<AegisContext> resolver
public void setWriteXsiType(boolean write)
public void setReadXsiType(boolean read)
public boolean isWriteable(Class<?> type, Type genericType, Annotation[] anns, javax.ws.rs.core.MediaType mt)
isWriteable
in interface javax.ws.rs.ext.MessageBodyWriter<T>
public boolean isReadable(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mt)
isReadable
in interface javax.ws.rs.ext.MessageBodyReader<T>
public long getSize(T o, Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mt)
getSize
in interface javax.ws.rs.ext.MessageBodyWriter<T>
protected AegisContext getAegisContext(Class<?> plainClass, Type genericType)
protected boolean isSupported(Class<?> type, Type genericType, Annotation[] annotations)
type
- genericType
- annotations
- Apache CXF