org.skyscreamer.yoga.resteasy.view
Class AbstractSelectorMessageBodyWriter

java.lang.Object
  extended by org.skyscreamer.yoga.resteasy.view.AbstractSelectorMessageBodyWriter
All Implemented Interfaces:
javax.ws.rs.ext.MessageBodyWriter<Object>, org.springframework.context.ApplicationContextAware
Direct Known Subclasses:
JsonSelectorMessageBodyWriter, XhtmlSelectorMessageBodyWriter, XmlSelectorMessageBodyWriter

public abstract class AbstractSelectorMessageBodyWriter
extends Object
implements javax.ws.rs.ext.MessageBodyWriter<Object>, org.springframework.context.ApplicationContextAware


Field Summary
protected  ResultMapper _fieldPopulator
           
 
Constructor Summary
AbstractSelectorMessageBodyWriter()
           
 
Method Summary
protected  Selector getSelector(javax.servlet.http.HttpServletRequest req)
           
 long getSize(Object arg0, Class<?> arg1, Type arg2, Annotation[] arg3, javax.ws.rs.core.MediaType arg4)
           
protected  ResultTraverser getTraverser()
           
 boolean isWriteable(Class<?> arg0, Type arg1, Annotation[] arg2, javax.ws.rs.core.MediaType arg3)
           
 void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
           
 
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.MessageBodyWriter
writeTo
 

Field Detail

_fieldPopulator

protected ResultMapper _fieldPopulator
Constructor Detail

AbstractSelectorMessageBodyWriter

public AbstractSelectorMessageBodyWriter()
Method Detail

getSize

public long getSize(Object arg0,
                    Class<?> arg1,
                    Type arg2,
                    Annotation[] arg3,
                    javax.ws.rs.core.MediaType arg4)
Specified by:
getSize in interface javax.ws.rs.ext.MessageBodyWriter<Object>

isWriteable

public boolean isWriteable(Class<?> arg0,
                           Type arg1,
                           Annotation[] arg2,
                           javax.ws.rs.core.MediaType arg3)
Specified by:
isWriteable in interface javax.ws.rs.ext.MessageBodyWriter<Object>

getSelector

protected Selector getSelector(javax.servlet.http.HttpServletRequest req)

setApplicationContext

public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
                           throws org.springframework.beans.BeansException
Specified by:
setApplicationContext in interface org.springframework.context.ApplicationContextAware
Throws:
org.springframework.beans.BeansException

getTraverser

protected ResultTraverser getTraverser()


Copyright © 2011. All Rights Reserved.