org.richfaces.resource
Class AbstractJSONResource

java.lang.Object
  extended by org.richfaces.resource.AbstractUserResource
      extended by org.richfaces.resource.AbstractJSONResource
All Implemented Interfaces:
ContentProducerResource, UserResource

public abstract class AbstractJSONResource
extends AbstractUserResource

Author:
Nick Belaevski

Constructor Summary
AbstractJSONResource()
           
 
Method Summary
 void encode(javax.faces.context.FacesContext context)
           
 java.lang.String getContentType()
           
protected abstract  java.lang.Object getData(javax.faces.context.FacesContext context)
           
 
Methods inherited from class org.richfaces.resource.AbstractUserResource
getContentLength, getLastModified, getResponseHeaders
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractJSONResource

public AbstractJSONResource()
Method Detail

getContentType

public java.lang.String getContentType()

encode

public void encode(javax.faces.context.FacesContext context)
            throws java.io.IOException
Throws:
java.io.IOException

getData

protected abstract java.lang.Object getData(javax.faces.context.FacesContext context)


Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.