Apache CXF API

org.apache.cxf.jaxrs.provider
Class AbstractAegisProvider<T>

java.lang.Object
  extended by org.apache.cxf.jaxrs.provider.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
protected  boolean readXsiType
           
protected  javax.ws.rs.ext.ContextResolver<AegisContext> resolver
           
protected  boolean writeXsiType
           
 
Constructor Summary
AbstractAegisProvider()
           
 
Method Summary
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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.ws.rs.ext.MessageBodyReader
readFrom
 
Methods inherited from interface javax.ws.rs.ext.MessageBodyWriter
writeTo
 

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>

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:

Apache CXF API

Apache CXF