|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.brickred.socialauth.util.ProviderSupport
public class ProviderSupport
This provides the functionality to make OAuth specific HTTP call for a provider
| Constructor Summary | |
|---|---|
ProviderSupport(OAuthStrategyBase strategy)
|
|
| Method Summary | |
|---|---|
Response |
api(String url)
Makes OAuth signed HTTP GET request to a given URL. |
Response |
api(String url,
String methodType,
Map<String,String> params,
Map<String,String> headerParams,
String body)
Makes OAuth signed HTTP request to a given URL. |
AccessGrant |
getAccessGrant()
Retrieves the AccessGrant object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ProviderSupport(OAuthStrategyBase strategy)
strategy - OAuth stragtegy object| Method Detail |
|---|
public Response api(String url,
String methodType,
Map<String,String> params,
Map<String,String> headerParams,
String body)
throws Exception
url - URL to make HTTP request.methodType - Method type can be GET, POST or PUTparams - Any additional parameters whose signature need to compute.
Only used in case of "POST" and "PUT" method type.headerParams - Any additional parameters need to pass as Header Parametersbody - Request Body
Exception
public Response api(String url)
throws Exception
url - URL to make HTTP request.
Exceptionpublic AccessGrant getAccessGrant()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||