org.springframework.extensions.surf.resource
Interface ResourceJSONContent

All Superinterfaces:
ResourceContent
All Known Implementing Classes:
ResourceJSONContentImpl

public interface ResourceJSONContent
extends ResourceContent

JSON Content for a Resource

Author:
muzquiano

Method Summary
 org.json.JSONObject getJSON()
          Gets the JSON.
 String getJSONString()
          Gets the JSON string.
 
Methods inherited from interface org.springframework.extensions.surf.resource.ResourceContent
getBytes, getInputStream, getReader, getResource, getTimestamp
 

Method Detail

getJSONString

String getJSONString()
                     throws IOException
Gets the JSON string.

Returns:
the JSON string
Throws:
IOException

getJSON

org.json.JSONObject getJSON()
                            throws org.json.JSONException,
                                   IOException
Gets the JSON.

Returns:
the JSON
Throws:
org.json.JSONException
IOException


Copyright © 2009 SpringSource, Inc. All Rights Reserved.