org.jboss.seam.social.core
Class OAuthServiceBase
java.lang.Object
org.jboss.seam.social.core.OAuthServiceBase
- All Implemented Interfaces:
- Serializable, org.jboss.seam.social.core.HasStatus, org.jboss.seam.social.core.OAuthService
- Direct Known Subclasses:
- OAuthServiceJackson
public abstract class OAuthServiceBase
- extends Object
- implements org.jboss.seam.social.core.OAuthService, org.jboss.seam.social.core.HasStatus
- Author:
- Antoine Sabot-Durand
- See Also:
- Serialized Form
|
Method Summary |
boolean |
equals(Object obj)
|
org.jboss.seam.social.core.OAuthToken |
getAccessToken()
|
String |
getAuthorizationUrl()
|
org.jboss.seam.social.core.UserProfile |
getMyProfile()
|
String |
getName()
|
protected org.jboss.seam.social.core.OAuthToken |
getRequestToken()
|
org.jboss.seam.social.core.OAuthSessionSettings |
getSession()
|
org.jboss.seam.social.core.OAuthServiceSettings |
getSettings()
|
String |
getStatus()
|
String |
getVerifier()
|
String |
getVerifierParamName()
|
int |
hashCode()
|
protected void |
init()
|
void |
initAccessToken()
|
protected abstract void |
initMyProfile()
|
boolean |
isConnected()
|
protected void |
requireAuthorization()
|
void |
resetConnection()
|
protected org.jboss.seam.social.core.HttpResponse |
sendSignedRequest(org.jboss.seam.social.core.OAuthRequest request)
|
org.jboss.seam.social.core.HttpResponse |
sendSignedRequest(org.jboss.seam.social.core.RestVerb verb,
String uri)
|
org.jboss.seam.social.core.HttpResponse |
sendSignedRequest(org.jboss.seam.social.core.RestVerb verb,
String uri,
Map<String,Object> params)
|
org.jboss.seam.social.core.HttpResponse |
sendSignedRequest(org.jboss.seam.social.core.RestVerb verb,
String uri,
String key,
Object value)
|
org.jboss.seam.social.core.HttpResponse |
sendSignedXmlRequest(org.jboss.seam.social.core.RestVerb verb,
String uri,
String payload)
|
void |
setAccessToken(org.jboss.seam.social.core.OAuthToken token)
|
void |
setAccessToken(String token,
String secret)
|
void |
setSession(org.jboss.seam.social.core.OAuthSessionSettings session)
|
void |
setSettings(org.jboss.seam.social.core.OAuthServiceSettings settings)
|
void |
setStatus(String status)
|
void |
setVerifier(String verifierStr)
|
String |
toString()
|
| Methods inherited from interface org.jboss.seam.social.core.OAuthService |
getServiceLogo, getType |
| Methods inherited from interface org.jboss.seam.social.core.HasStatus |
updateStatus, updateStatus |
sessionSettings
@Inject
protected org.jboss.seam.social.core.OAuthSessionSettings sessionSettings
ip
@Inject
protected InjectionPoint ip
myProfile
protected org.jboss.seam.social.core.UserProfile myProfile
OAuthServiceBase
public OAuthServiceBase()
init
protected void init()
getSession
public org.jboss.seam.social.core.OAuthSessionSettings getSession()
- Specified by:
getSession in interface org.jboss.seam.social.core.OAuthService
setSession
public void setSession(org.jboss.seam.social.core.OAuthSessionSettings session)
- Specified by:
setSession in interface org.jboss.seam.social.core.OAuthService
getStatus
public String getStatus()
- Specified by:
getStatus in interface org.jboss.seam.social.core.HasStatus
setStatus
public void setStatus(String status)
- Specified by:
setStatus in interface org.jboss.seam.social.core.HasStatus
getName
public String getName()
- Specified by:
getName in interface org.jboss.seam.social.core.OAuthService
getSettings
public org.jboss.seam.social.core.OAuthServiceSettings getSettings()
- Specified by:
getSettings in interface org.jboss.seam.social.core.OAuthService
setSettings
public void setSettings(org.jboss.seam.social.core.OAuthServiceSettings settings)
- Specified by:
setSettings in interface org.jboss.seam.social.core.OAuthService
getAuthorizationUrl
public String getAuthorizationUrl()
- Specified by:
getAuthorizationUrl in interface org.jboss.seam.social.core.OAuthService
getRequestToken
protected org.jboss.seam.social.core.OAuthToken getRequestToken()
initAccessToken
public void initAccessToken()
- Specified by:
initAccessToken in interface org.jboss.seam.social.core.OAuthService
initMyProfile
protected abstract void initMyProfile()
resetConnection
public void resetConnection()
- Specified by:
resetConnection in interface org.jboss.seam.social.core.OAuthService
sendSignedRequest
protected org.jboss.seam.social.core.HttpResponse sendSignedRequest(org.jboss.seam.social.core.OAuthRequest request)
sendSignedRequest
public org.jboss.seam.social.core.HttpResponse sendSignedRequest(org.jboss.seam.social.core.RestVerb verb,
String uri)
- Specified by:
sendSignedRequest in interface org.jboss.seam.social.core.OAuthService
sendSignedRequest
public org.jboss.seam.social.core.HttpResponse sendSignedRequest(org.jboss.seam.social.core.RestVerb verb,
String uri,
String key,
Object value)
- Specified by:
sendSignedRequest in interface org.jboss.seam.social.core.OAuthService
sendSignedXmlRequest
public org.jboss.seam.social.core.HttpResponse sendSignedXmlRequest(org.jboss.seam.social.core.RestVerb verb,
String uri,
String payload)
- Specified by:
sendSignedXmlRequest in interface org.jboss.seam.social.core.OAuthService
sendSignedRequest
public org.jboss.seam.social.core.HttpResponse sendSignedRequest(org.jboss.seam.social.core.RestVerb verb,
String uri,
Map<String,Object> params)
- Specified by:
sendSignedRequest in interface org.jboss.seam.social.core.OAuthService
setVerifier
public void setVerifier(String verifierStr)
- Specified by:
setVerifier in interface org.jboss.seam.social.core.OAuthService
getVerifier
public String getVerifier()
- Specified by:
getVerifier in interface org.jboss.seam.social.core.OAuthService
getAccessToken
public org.jboss.seam.social.core.OAuthToken getAccessToken()
- Specified by:
getAccessToken in interface org.jboss.seam.social.core.OAuthService
isConnected
public boolean isConnected()
- Specified by:
isConnected in interface org.jboss.seam.social.core.OAuthService
requireAuthorization
protected void requireAuthorization()
setAccessToken
public void setAccessToken(String token,
String secret)
- Specified by:
setAccessToken in interface org.jboss.seam.social.core.OAuthService
setAccessToken
public void setAccessToken(org.jboss.seam.social.core.OAuthToken token)
- Specified by:
setAccessToken in interface org.jboss.seam.social.core.OAuthService
toString
public String toString()
- Overrides:
toString in class Object
getVerifierParamName
public String getVerifierParamName()
- Specified by:
getVerifierParamName in interface org.jboss.seam.social.core.OAuthService
getMyProfile
public org.jboss.seam.social.core.UserProfile getMyProfile()
- Specified by:
getMyProfile in interface org.jboss.seam.social.core.OAuthService
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals in class Object
Copyright © 2011 Seam Framework. All Rights Reserved.