org.apache.cxf.jaxrs.provider
Class AbstractAegisProvider

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

public abstract class AbstractAegisProvider
extends java.lang.Object
implements javax.ws.rs.ext.MessageBodyReader<java.lang.Object>, javax.ws.rs.ext.MessageBodyWriter<java.lang.Object>


Field Summary
protected  javax.ws.rs.ext.ContextResolver<AegisContext> resolver
           
 
Constructor Summary
AbstractAegisProvider()
           
 
Method Summary
protected  AegisContext getAegisContext(java.lang.Class<?> type, java.lang.reflect.Type genericType)
           
 long getSize(java.lang.Object o)
           
 boolean isReadable(java.lang.Class<?> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations)
           
protected  boolean isSupported(java.lang.Class<?> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations)
          For Aegis, it's not obvious to me how we'd decide that a type was hopeless.
 boolean isWriteable(java.lang.Class<?> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] anns)
           
 
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

resolver

@Context
protected javax.ws.rs.ext.ContextResolver<AegisContext> resolver
Constructor Detail

AbstractAegisProvider

public AbstractAegisProvider()
Method Detail

isWriteable

public boolean isWriteable(java.lang.Class<?> type,
                           java.lang.reflect.Type genericType,
                           java.lang.annotation.Annotation[] anns)
Specified by:
isWriteable in interface javax.ws.rs.ext.MessageBodyWriter<java.lang.Object>

isReadable

public boolean isReadable(java.lang.Class<?> type,
                          java.lang.reflect.Type genericType,
                          java.lang.annotation.Annotation[] annotations)
Specified by:
isReadable in interface javax.ws.rs.ext.MessageBodyReader<java.lang.Object>

getSize

public long getSize(java.lang.Object o)
Specified by:
getSize in interface javax.ws.rs.ext.MessageBodyWriter<java.lang.Object>

getAegisContext

protected AegisContext getAegisContext(java.lang.Class<?> type,
                                       java.lang.reflect.Type genericType)

isSupported

protected boolean isSupported(java.lang.Class<?> type,
                              java.lang.reflect.Type genericType,
                              java.lang.annotation.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