パッケージ com.sdk.java.dmm.api

クラス AbstractDmm<T extends DmmInfo>

    • フィールドの詳細

      • API_ID

        private final String API_ID
        API_ID
      • AFFILIATE_ID

        private final String AFFILIATE_ID
        アフェリエイトID
    • コンストラクタの詳細

      • AbstractDmm

        public AbstractDmm​(String apiId,
                           String affiliateId)
        検索オブジェクトを生成します。
        パラメータ:
        apiId - API_ID
        affiliateId - AFFILIATE_ID
    • メソッドの詳細

      • getJson

        public String getJson()
        APIを実行しJSON文字列を取得する。
        戻り値:
        JSON文字列
      • execute

        public T execute()
        APIを実行し結果を取得する。
        戻り値:
        API実行結果DTO
      • fetchJson

        private String fetchJson()
        APIを実行しJSON文字列を取得する。
        戻り値:
        JSON文字列
      • getURL

        private String getURL()
        APIを実行するためのURLを取得します。
        戻り値:
        URL URL文字列
      • clear

        public abstract void clear()
        パラメータをクリアする。
      • getParam

        protected abstract String getParam()
        APIを実行するためのパラメータを取得する。
        戻り値:
        パラメータ
      • getBaseURL

        protected abstract BaseURL getBaseURL()
        DMM_APIを実行するためのURLを管理する列挙型を返却する。
        戻り値:
        BaseURL ベースURL
      • getResultClass

        protected abstract Class<T> getResultClass()
        JSONとマッピングされるDTOのクラスオブジェクトを取得する。
        戻り値:
        クラスオブジェクト