RichFaces Core API 4.2.2.Final

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)
           
 String getContentType()
           
protected abstract  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 String getContentType()

encode

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

getData

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

RichFaces Core API 4.2.2.Final

Copyright © 2012 JBoss by Red Hat. All Rights Reserved.