|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectfacebook4j.FacebookBaseImpl
abstract class FacebookBaseImpl
Base class of Facebook supports OAuth.
| Field Summary | |
|---|---|
protected Authorization |
auth
|
protected Configuration |
conf
|
protected z_F4JInternalFactory |
factory
|
protected HttpClientWrapper |
http
|
protected java.lang.String |
id
|
protected java.lang.String |
name
|
private static long |
serialVersionUID
|
| Constructor Summary | |
|---|---|
FacebookBaseImpl(Configuration conf,
Authorization auth)
|
|
| Method Summary | |
|---|---|
protected void |
ensureAuthorizationEnabled()
|
boolean |
equals(java.lang.Object obj)
|
protected void |
fillInIDAndName()
|
Authorization |
getAuthorization()
|
Configuration |
getConfiguration()
|
java.lang.String |
getId()
|
java.lang.String |
getName()
|
private OAuthSupport |
getOAuth()
|
AccessToken |
getOAuthAccessToken()
Returns an access token associated with this instance. |
AccessToken |
getOAuthAccessToken(java.lang.String oauthCode)
Exchange the code for a User Access Token. |
AccessToken |
getOAuthAppAccessToken()
Returns an App Access Token. |
java.lang.String |
getOAuthAuthorizationURL(java.lang.String callbackURL)
|
java.lang.String |
getOAuthAuthorizationURL(java.lang.String callbackURL,
java.lang.String state)
|
int |
hashCode()
|
private void |
init()
|
private void |
readObject(java.io.ObjectInputStream stream)
|
protected void |
setFactory()
|
protected void |
setHttp()
|
void |
setOAuthAccessToken(AccessToken accessToken)
Sets the access token |
void |
setOAuthAppId(java.lang.String appId,
java.lang.String appSecret)
sets the OAuth AppID and App secret |
void |
setOAuthPermissions(java.lang.String permissions)
sets the permissions |
void |
shutdown()
|
java.lang.String |
toString()
|
private void |
writeObject(java.io.ObjectOutputStream out)
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private static final long serialVersionUID
protected transient HttpClientWrapper http
protected z_F4JInternalFactory factory
protected Configuration conf
protected Authorization auth
protected transient java.lang.String id
protected transient java.lang.String name
| Constructor Detail |
|---|
FacebookBaseImpl(Configuration conf,
Authorization auth)
| Method Detail |
|---|
private void init()
protected void setHttp()
protected void setFactory()
public java.lang.String getId()
throws FacebookException,
java.lang.IllegalStateException
FacebookException
java.lang.IllegalStateException
public java.lang.String getName()
throws FacebookException,
java.lang.IllegalStateException
FacebookException
java.lang.IllegalStateException
protected void fillInIDAndName()
throws FacebookException
FacebookExceptionpublic final Authorization getAuthorization()
public Configuration getConfiguration()
public void shutdown()
protected final void ensureAuthorizationEnabled()
private void writeObject(java.io.ObjectOutputStream out)
throws java.io.IOException
java.io.IOException
private void readObject(java.io.ObjectInputStream stream)
throws java.io.IOException,
java.lang.ClassNotFoundException
java.io.IOException
java.lang.ClassNotFoundException
public void setOAuthAppId(java.lang.String appId,
java.lang.String appSecret)
setOAuthAppId in interface OAuthSupportappId - OAuth AppIDappSecret - OAuth App secretpublic void setOAuthPermissions(java.lang.String permissions)
setOAuthPermissions in interface OAuthSupportpermissions - comma-separated permission namespublic java.lang.String getOAuthAuthorizationURL(java.lang.String callbackURL)
getOAuthAuthorizationURL in interface OAuthSupport
public java.lang.String getOAuthAuthorizationURL(java.lang.String callbackURL,
java.lang.String state)
getOAuthAuthorizationURL in interface OAuthSupportpublic AccessToken getOAuthAccessToken()
getOAuthAccessToken in interface OAuthSupport
public AccessToken getOAuthAccessToken(java.lang.String oauthCode)
throws FacebookException
getOAuthAccessToken in interface OAuthSupportoauthCode - OAuth code.
FacebookException - when Facebook service or network is unavailable, or the user has not authorized
public AccessToken getOAuthAppAccessToken()
throws FacebookException
getOAuthAppAccessToken in interface OAuthSupportFacebookException - when Facebook service or network is unavailable, or the user has not authorizedpublic void setOAuthAccessToken(AccessToken accessToken)
setOAuthAccessToken in interface OAuthSupportaccessToken - accessTokenprivate OAuthSupport getOAuth()
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||