oauth.signpost.basic
クラス DefaultOAuthProvider

java.lang.Object
  上位を拡張 oauth.signpost.AbstractOAuthProvider
      上位を拡張 oauth.signpost.basic.DefaultOAuthProvider
すべての実装されたインタフェース:
Serializable, OAuthProvider

public class DefaultOAuthProvider
extends AbstractOAuthProvider

This default implementation uses HttpURLConnection type GET requests to receive tokens from a service provider.

作成者:
Matthias Kaeppler
関連項目:
直列化された形式

コンストラクタの概要
DefaultOAuthProvider(String requestTokenEndpointUrl, String accessTokenEndpointUrl, String authorizationWebsiteUrl)
           
 
メソッドの概要
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.
 
クラス oauth.signpost.AbstractOAuthProvider から継承されたメソッド
getAccessTokenEndpointUrl, getAuthorizationWebsiteUrl, getRequestHeaders, getRequestTokenEndpointUrl, getResponseParameter, getResponseParameters, handleUnexpectedResponse, isOAuth10a, removeListener, retrieveAccessToken, retrieveRequestToken, retrieveToken, setListener, setOAuth10a, setRequestHeader, setResponseParameters
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

DefaultOAuthProvider

public DefaultOAuthProvider(String requestTokenEndpointUrl,
                            String accessTokenEndpointUrl,
                            String authorizationWebsiteUrl)
メソッドの詳細

createRequest

protected HttpRequest createRequest(String endpointUrl)
                             throws MalformedURLException,
                                    IOException
クラス AbstractOAuthProvider の記述:
Overrride this method if you want to customize the logic for building a request object for the given endpoint URL.

定義:
クラス AbstractOAuthProvider 内の createRequest
パラメータ:
endpointUrl - the URL to which the request will go
戻り値:
the request object
例外:
MalformedURLException
IOException

sendRequest

protected HttpResponse sendRequest(HttpRequest request)
                            throws IOException
クラス AbstractOAuthProvider の記述:
Override this method if you want to customize the logic for how the given request is sent to the server.

定義:
クラス AbstractOAuthProvider 内の sendRequest
パラメータ:
request - the request to send
戻り値:
the response to the request
例外:
IOException

closeConnection

protected void closeConnection(HttpRequest request,
                               HttpResponse response)
クラス AbstractOAuthProvider の記述:
Called when the connection is being finalized after receiving the response. Use this to do any cleanup / resource freeing.

オーバーライド:
クラス AbstractOAuthProvider 内の closeConnection
パラメータ:
request - the request that has been sent
response - the response that has been received


Copyright © 2012. All Rights Reserved.