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