クラス HttpCommunicator
java.lang.Object
org.thinkit.api.gateway.github.communication.AbstractHttpCommunicator
org.thinkit.api.gateway.github.communication.HttpCommunicator
- すべての実装されたインタフェース:
Serializable
,Communicator
public final class HttpCommunicator extends AbstractHttpCommunicator implements Communicator, Serializable
The class that provides general-purpose processing for HTTP communication.
- 導入されたバージョン:
- 1.0.0
- 関連項目:
- 直列化された形式
-
メソッドの概要
修飾子とタイプ メソッド 説明 boolean
equals(Object o)
static Communicator
from(@NonNull OAuthConfig oAuthConfig)
<T> T
get(@NonNull com.google.api.client.http.GenericUrl genericUrl, @NonNull Class<T> responseClass)
Sends a Get request to the request URL.<T> List<T>
getAsList(@NonNull com.google.api.client.http.GenericUrl genericUrl, @NonNull Class<T> responseClass)
Sends a Get request to the request URL.int
hashCode()
String
toString()
-
メソッドの詳細
-
from
-
get
public <T> T get(@NonNull @NonNull com.google.api.client.http.GenericUrl genericUrl, @NonNull @NonNull Class<T> responseClass)インタフェースからコピーされた説明:Communicator
Sends a Get request to the request URL.The response will be parsed into the response type specified as the second argument and returned.
- 定義:
get
インタフェース内Communicator
- 型パラメータ:
T
- The response type- パラメータ:
genericUrl
- The request url objectresponseClass
- The response class- 戻り値:
- The JSON response
-
getAsList
public <T> List<T> getAsList(@NonNull @NonNull com.google.api.client.http.GenericUrl genericUrl, @NonNull @NonNull Class<T> responseClass)インタフェースからコピーされた説明:Communicator
Sends a Get request to the request URL.The response will be parsed into the list of response type specified as the second argument and returned.
- 定義:
getAsList
インタフェース内Communicator
- 型パラメータ:
T
- The response type- パラメータ:
genericUrl
- The request url objectresponseClass
- The response class- 戻り値:
- The JSON responses as list
-
toString
- オーバーライド:
toString
クラス内AbstractHttpCommunicator
-
equals
- オーバーライド:
equals
クラス内AbstractHttpCommunicator
-
hashCode
public int hashCode()- オーバーライド:
hashCode
クラス内AbstractHttpCommunicator
-