net.sf.fb4j.client.json
Class JsonFacebookMethod<T>

java.lang.Object
  extended by net.sf.fb4j.client.FacebookMethod<T>
      extended by net.sf.fb4j.client.json.JsonFacebookMethod<T>
Direct Known Subclasses:
FqlQueryMethod, GetSessionMethod

public class JsonFacebookMethod<T>
extends FacebookMethod<T>

Author:
Gino Miceli, Mino Togna

Nested Class Summary
static class JsonFacebookMethod.Auth
           
static class JsonFacebookMethod.Events
           
static class JsonFacebookMethod.Fbml
           
static class JsonFacebookMethod.Feed
           
static class JsonFacebookMethod.Friends
           
static class JsonFacebookMethod.Groups
           
static class JsonFacebookMethod.Marketplace
           
static class JsonFacebookMethod.Notifications
           
static class JsonFacebookMethod.Pages
           
static class JsonFacebookMethod.Photos
           
static class JsonFacebookMethod.Profile
           
static class JsonFacebookMethod.Users
           
 
Nested classes/interfaces inherited from class net.sf.fb4j.client.FacebookMethod
FacebookMethod.Fql
 
Constructor Summary
JsonFacebookMethod(java.lang.String methodName, java.lang.Class<T> returnType)
           
JsonFacebookMethod(java.lang.String methodName, java.lang.Class<T> returnType, FacebookJsonConfig<?> jsonConfig)
           
 
Method Summary
 T parseResponse(java.lang.String json)
           
 T toObject(net.sf.json.JSONArray jsonArray)
           
 T toObject(net.sf.json.JSONObject jsonObject)
           
 T toObject(java.lang.String json)
           
 
Methods inherited from class net.sf.fb4j.client.FacebookMethod
getFormat, getMethodName, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JsonFacebookMethod

public JsonFacebookMethod(java.lang.String methodName,
                          java.lang.Class<T> returnType)

JsonFacebookMethod

public JsonFacebookMethod(java.lang.String methodName,
                          java.lang.Class<T> returnType,
                          FacebookJsonConfig<?> jsonConfig)
Method Detail

parseResponse

public final T parseResponse(java.lang.String json)
                      throws FacebookClientException
Specified by:
parseResponse in class FacebookMethod<T>
Throws:
FacebookClientException

toObject

public T toObject(java.lang.String json)
           throws FacebookClientException
Throws:
FacebookClientException

toObject

public T toObject(net.sf.json.JSONArray jsonArray)
           throws FacebookClientException
Throws:
FacebookClientException

toObject

public T toObject(net.sf.json.JSONObject jsonObject)
           throws FacebookClientException
Throws:
FacebookClientException


Copyright © 2008. All Rights Reserved.