org.springframework.extensions.surf.resource
Class ResourceJSONContentImpl
java.lang.Object
org.springframework.extensions.surf.resource.ResourceContentImpl
org.springframework.extensions.surf.resource.ResourceJSONContentImpl
- All Implemented Interfaces:
- ResourceContent, ResourceJSONContent
public class ResourceJSONContentImpl
- extends ResourceContentImpl
- implements ResourceJSONContent
JSON resource content implementation
- Author:
- muzquiano
Field Summary |
protected org.json.JSONObject |
jsonObject
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
jsonObject
protected org.json.JSONObject jsonObject
ResourceJSONContentImpl
public ResourceJSONContentImpl(Resource resource,
String url)
getJSONString
public String getJSONString()
throws IOException
- Description copied from interface:
ResourceJSONContent
- Gets the JSON string.
- Specified by:
getJSONString
in interface ResourceJSONContent
- Returns:
- the JSON string
- Throws:
IOException
getJSON
public org.json.JSONObject getJSON()
throws org.json.JSONException,
IOException
- Description copied from interface:
ResourceJSONContent
- Gets the JSON.
- Specified by:
getJSON
in interface ResourceJSONContent
- Returns:
- the JSON
- Throws:
org.json.JSONException
IOException
Copyright © 2009 SpringSource, Inc. All Rights Reserved.