org.richfaces.resource

## Class AbstractJSONResource

- java.lang.Object
- - org.richfaces.resource.AbstractUserResource
  - - org.richfaces.resource.AbstractJSONResource

- All Implemented Interfaces:
    ContentProducerResource, UserResource

      public abstract class AbstractJSONResource
      extends AbstractUserResource

  Author:
    Nick Belaevski

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `AbstractJSONResource()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `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)

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