|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exoplatform.social.client.core.util.SocialJSONDecodingSupport
public class SocialJSONDecodingSupport
Created by The eXo Platform SAS Author : eXoPlatform exo@exoplatform.com Jun 30, 2011
| Constructor Summary | |
|---|---|
SocialJSONDecodingSupport()
|
|
| Method Summary | ||
|---|---|---|
static
|
JSONArrayObjectParser(Class<T> clazz,
org.apache.http.HttpResponse response)
|
|
static
|
JSONArrayObjectParser(Class<T> clazz,
String jsonArrayContent)
|
|
static
|
parser(Class<T> clazz,
org.apache.http.HttpResponse response)
Parse JSON text into java Model object from the input source. |
|
static
|
parser(Class<T> clazz,
String jsonContent)
Parse JSON text into java Model object from the input source. |
|
static Map |
parser(org.apache.http.HttpResponse response)
HttpResponse text into java Map object from the input source. |
|
static Map |
parser(String jsonContent)
Parse JSON text into java Map object from the input source. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SocialJSONDecodingSupport()
| Method Detail |
|---|
public static <T extends Model> T parser(Class<T> clazz,
String jsonContent)
throws org.json.simple.parser.ParseException
T - Generic type must extend from Model.clazz - Class type.jsonContent - Json content which you need to create the Model
org.json.simple.parser.ParseException - Throw this exception if any
public static <T extends Model> T parser(Class<T> clazz,
org.apache.http.HttpResponse response)
throws IOException,
org.json.simple.parser.ParseException
T - Generic type must extend from Model.clazz - Class type.response - HttpResponse which getting the JSONContent.
org.json.simple.parser.ParseException - Throw this exception if any
IOException - Throw this exception if any
public static Map parser(String jsonContent)
throws org.json.simple.parser.ParseException
jsonContent - Json content which you need to create the Model
org.json.simple.parser.ParseException - Throw this exception if any
public static Map parser(org.apache.http.HttpResponse response)
throws org.json.simple.parser.ParseException
response - HttpResponse to get the content.
org.json.simple.parser.ParseException - Throw this exception if any
public static <T extends Model> List<T> JSONArrayObjectParser(Class<T> clazz,
org.apache.http.HttpResponse response)
throws IOException,
org.json.simple.parser.ParseException
T - clazz - response -
IOException
org.json.simple.parser.ParseException
public static <T extends Model> List<T> JSONArrayObjectParser(Class<T> clazz,
String jsonArrayContent)
throws IOException,
org.json.simple.parser.ParseException
T - clazz - jsonArrayContent -
IOException
org.json.simple.parser.ParseException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||