oauth.signpost
インタフェース OAuthProviderListener


public interface OAuthProviderListener

Provides hooks into the token request handling procedure executed by OAuthProvider.

作成者:
Matthias Kaeppler

メソッドの概要
 boolean 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.
 

メソッドの詳細

prepareRequest

void prepareRequest(HttpRequest request)
                    throws Exception
Called after the request has been created and default headers added, but before the request has been signed.

パラメータ:
request - the request to be sent
例外:
Exception

prepareSubmission

void prepareSubmission(HttpRequest request)
                       throws Exception
Called after the request has been signed, but before it's being sent.

パラメータ:
request - the request to be sent
例外:
Exception

onResponseReceived

boolean onResponseReceived(HttpRequest request,
                           HttpResponse response)
                           throws Exception
Called when the server response has been received. You can implement this to manually handle the response data.

パラメータ:
request - the request that was sent
response - the response that was received
戻り値:
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.
例外:
Exception


Copyright © 2012. All Rights Reserved.