|
||||||||||
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(java.lang.String requestTokenEndpointUrl,
java.lang.String accessTokenEndpointUrl,
java.lang.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(java.lang.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(java.lang.String requestTokenEndpointUrl, java.lang.String accessTokenEndpointUrl, java.lang.String authorizationWebsiteUrl)
Method Detail |
---|
protected HttpRequest createRequest(java.lang.String endpointUrl) throws java.net.MalformedURLException, java.io.IOException
AbstractOAuthProvider
createRequest
in class AbstractOAuthProvider
endpointUrl
- the URL to which the request will go
java.net.MalformedURLException
java.io.IOException
protected HttpResponse sendRequest(HttpRequest request) throws java.io.IOException
AbstractOAuthProvider
sendRequest
in class AbstractOAuthProvider
request
- the request to send
java.io.IOException
protected void closeConnection(HttpRequest request, HttpResponse response)
AbstractOAuthProvider
closeConnection
in class AbstractOAuthProvider
request
- 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 |