|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectoauth.signpost.AbstractOAuthProvider
oauth.signpost.basic.DefaultOAuthProvider
public class DefaultOAuthProvider
This default implementation uses HttpURLConnection type GET
requests to receive tokens from a service provider.
| Constructor Summary | |
|---|---|
DefaultOAuthProvider(String requestTokenEndpointUrl,
String accessTokenEndpointUrl,
String authorizationWebsiteUrl)
|
|
| Method Summary | |
|---|---|
protected void |
closeConnection(HttpRequest request,
HttpResponse response)
Called when the connection is being finalized after receiving the response. |
protected HttpRequest |
createRequest(String endpointUrl)
Overrride this method if you want to customize the logic for building a request object for the given endpoint URL. |
protected HttpResponse |
sendRequest(HttpRequest request)
Override this method if you want to customize the logic for how the given request is sent to the server. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultOAuthProvider(String requestTokenEndpointUrl,
String accessTokenEndpointUrl,
String authorizationWebsiteUrl)
| Method Detail |
|---|
protected HttpRequest createRequest(String endpointUrl)
throws MalformedURLException,
IOException
AbstractOAuthProvider
createRequest in class AbstractOAuthProviderendpointUrl - the URL to which the request will go
MalformedURLException
IOException
protected HttpResponse sendRequest(HttpRequest request)
throws IOException
AbstractOAuthProvider
sendRequest in class AbstractOAuthProviderrequest - the request to send
IOException
protected void closeConnection(HttpRequest request,
HttpResponse response)
AbstractOAuthProvider
closeConnection in class AbstractOAuthProviderrequest - the request that has been sentresponse - the response that has been received
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||