public class OAuthServiceImpl extends Object implements org.jboss.seam.social.oauth.OAuthService
OAuthService uses an OAuthProvider to deal with remote OAuth Services| Modifier and Type | Field and Description |
|---|---|
protected org.jboss.seam.social.JsonMapper |
jsonService |
protected javax.enterprise.inject.Instance<org.jboss.seam.social.oauth.OAuthSession> |
sessionInstances |
protected SeamSocialExtension |
socialConfig |
| Constructor and Description |
|---|
OAuthServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
delete(String uri) |
org.jboss.seam.social.oauth.OAuthToken |
getAccessToken() |
String |
getAuthorizationUrl() |
<T> T |
getForObject(String uri,
Class<T> clazz) |
<T> T |
getForObject(String uri,
Class<T> clazz,
Map<String,? extends Object> params) |
<T> T |
getForObject(String uri,
Class<T> clazz,
Object... urlParams) |
org.jboss.seam.social.UserProfile |
getMyProfile() |
Annotation |
getQualifier() |
Map<String,String> |
getRequestHeader() |
protected org.jboss.seam.social.oauth.OAuthToken |
getRequestToken() |
org.jboss.seam.social.oauth.OAuthSession |
getSession() |
String |
getType() |
String |
getVerifier() |
void |
initAccessToken() |
boolean |
isConnected() |
String |
postForLocation(String uri,
Object toPost,
Map<String,String> queryStringData,
Object... urlParams) |
String |
postForLocation(String uri,
Object toPost,
Object... urlParams) |
<T> T |
postForObject(String uri,
Map<String,? extends Object> params,
Class<T> clazz) |
void |
put(String uri,
Object toPut,
Object... urlParams) |
void |
requireAuthorization() |
void |
resetConnection() |
org.jboss.seam.social.rest.RestResponse |
sendSignedRequest(org.jboss.seam.social.oauth.OAuthRequest request) |
org.jboss.seam.social.rest.RestResponse |
sendSignedRequest(org.jboss.seam.social.rest.RestVerb verb,
String uri) |
org.jboss.seam.social.rest.RestResponse |
sendSignedRequest(org.jboss.seam.social.rest.RestVerb verb,
String uri,
Map<String,? extends Object> params) |
org.jboss.seam.social.rest.RestResponse |
sendSignedRequest(org.jboss.seam.social.rest.RestVerb verb,
String uri,
String key,
Object value) |
org.jboss.seam.social.rest.RestResponse |
sendSignedXmlRequest(org.jboss.seam.social.rest.RestVerb verb,
String uri,
String payload) |
void |
setAccessToken(org.jboss.seam.social.oauth.OAuthToken token) |
void |
setAccessToken(String token,
String secret) |
void |
setRequestHeader(Map<String,String> requestHeader) |
void |
setVerifier(String verifierStr) |
@Inject protected org.jboss.seam.social.JsonMapper jsonService
@Inject @Any protected javax.enterprise.inject.Instance<org.jboss.seam.social.oauth.OAuthSession> sessionInstances
@Inject protected SeamSocialExtension socialConfig
public String getType()
getType in interface org.jboss.seam.social.rest.RestServicepublic String getAuthorizationUrl()
getAuthorizationUrl in interface org.jboss.seam.social.oauth.OAuthServiceprotected org.jboss.seam.social.oauth.OAuthToken getRequestToken()
public void initAccessToken()
initAccessToken in interface org.jboss.seam.social.oauth.OAuthServicepublic void resetConnection()
resetConnection in interface org.jboss.seam.social.rest.RestServicepublic org.jboss.seam.social.rest.RestResponse sendSignedRequest(org.jboss.seam.social.oauth.OAuthRequest request)
sendSignedRequest in interface org.jboss.seam.social.oauth.OAuthServicepublic org.jboss.seam.social.rest.RestResponse sendSignedRequest(org.jboss.seam.social.rest.RestVerb verb,
String uri)
sendSignedRequest in interface org.jboss.seam.social.oauth.OAuthServicepublic org.jboss.seam.social.rest.RestResponse sendSignedRequest(org.jboss.seam.social.rest.RestVerb verb,
String uri,
String key,
Object value)
sendSignedRequest in interface org.jboss.seam.social.oauth.OAuthServicepublic org.jboss.seam.social.rest.RestResponse sendSignedXmlRequest(org.jboss.seam.social.rest.RestVerb verb,
String uri,
String payload)
sendSignedXmlRequest in interface org.jboss.seam.social.oauth.OAuthServicepublic org.jboss.seam.social.rest.RestResponse sendSignedRequest(org.jboss.seam.social.rest.RestVerb verb,
String uri,
Map<String,? extends Object> params)
sendSignedRequest in interface org.jboss.seam.social.oauth.OAuthServicepublic void setVerifier(String verifierStr)
setVerifier in interface org.jboss.seam.social.oauth.OAuthServicepublic String getVerifier()
getVerifier in interface org.jboss.seam.social.oauth.OAuthServicepublic org.jboss.seam.social.oauth.OAuthToken getAccessToken()
getAccessToken in interface org.jboss.seam.social.oauth.OAuthServicepublic boolean isConnected()
isConnected in interface org.jboss.seam.social.rest.RestServicepublic void requireAuthorization()
requireAuthorization in interface org.jboss.seam.social.oauth.OAuthServicepublic void setAccessToken(String token, String secret)
setAccessToken in interface org.jboss.seam.social.oauth.OAuthServicepublic void setAccessToken(org.jboss.seam.social.oauth.OAuthToken token)
setAccessToken in interface org.jboss.seam.social.oauth.OAuthServicepublic org.jboss.seam.social.UserProfile getMyProfile()
getMyProfile in interface org.jboss.seam.social.rest.RestServicepublic org.jboss.seam.social.oauth.OAuthSession getSession()
getSession in interface org.jboss.seam.social.oauth.OAuthServicepublic <T> T getForObject(String uri, Class<T> clazz)
getForObject in interface org.jboss.seam.social.rest.RestServicepublic <T> T getForObject(String uri, Class<T> clazz, Map<String,? extends Object> params)
getForObject in interface org.jboss.seam.social.rest.RestServicepublic <T> T getForObject(String uri, Class<T> clazz, Object... urlParams)
getForObject in interface org.jboss.seam.social.rest.RestServicepublic <T> T postForObject(String uri, Map<String,? extends Object> params, Class<T> clazz)
postForObject in interface org.jboss.seam.social.rest.RestServicepublic String postForLocation(String uri, Object toPost, Object... urlParams)
postForLocation in interface org.jboss.seam.social.rest.RestServicepublic String postForLocation(String uri, Object toPost, Map<String,String> queryStringData, Object... urlParams)
postForLocation in interface org.jboss.seam.social.rest.RestServicepublic void put(String uri, Object toPut, Object... urlParams)
put in interface org.jboss.seam.social.rest.RestServicepublic void delete(String uri)
delete in interface org.jboss.seam.social.rest.RestServicepublic Annotation getQualifier()
getQualifier in interface org.jboss.seam.social.QualifierAwarepublic Map<String,String> getRequestHeader()
getRequestHeader in interface org.jboss.seam.social.rest.RestServiceCopyright © 2011-2013 Seam Framework. All Rights Reserved.