Package oauth.signpost
Interface OAuthProviderListener
public interface OAuthProviderListener
Provides hooks into the token request handling procedure executed by
OAuthProvider
.-
Method Summary
Modifier and TypeMethodDescriptionboolean
onResponseReceived
(HttpRequest request, HttpResponse response) Called when the server response has been received.void
prepareRequest
(HttpRequest request) Called after the request has been created and default headers added, but before the request has been signed.void
prepareSubmission
(HttpRequest request) Called after the request has been signed, but before it's being sent.
-
Method Details
-
prepareRequest
Called after the request has been created and default headers added, but before the request has been signed.- Parameters:
request
- the request to be sent- Throws:
Exception
-
prepareSubmission
Called after the request has been signed, but before it's being sent.- Parameters:
request
- the request to be sent- Throws:
Exception
-
onResponseReceived
Called when the server response has been received. You can implement this to manually handle the response data.- Parameters:
request
- the request that was sentresponse
- the response that was received- Returns:
- returning true means you have handled the response, and the provider will return immediately. Return false to let the event propagate and let the provider execute its default response handling.
- Throws:
Exception
-