クラス 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()  

    クラスから継承されたメソッド java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • メソッドの詳細

    • from

      public static Communicator from​(@NonNull @NonNull OAuthConfig oAuthConfig)
    • 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 object
      responseClass - 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 object
      responseClass - The response class
      戻り値:
      The JSON responses as list
    • toString

      public String toString()
      オーバーライド:
      toString クラス内 AbstractHttpCommunicator
    • equals

      public boolean equals​(Object o)
      オーバーライド:
      equals クラス内 AbstractHttpCommunicator
    • hashCode

      public int hashCode()
      オーバーライド:
      hashCode クラス内 AbstractHttpCommunicator