クラス HttpAccess
java.lang.Object
jp.ne.mki.wedge.rule.client.httpaccess.util.HttpAccess
Httpアクセスを行うUtilityクラス
指定されたURL,送信方法などでURLConnectionクラスを使用しサーバとアクセスを行います。 SessionIDを受信した場合、その値を保持し、次回送信時は保持しているSessionIDを自動的に設定します。
- バージョン:
- 1.0
-
コンストラクタの概要
コンストラクタ -
メソッドの概要
修飾子とタイプメソッド説明static String
static String
static int
static URLConnection
static boolean
static boolean
isNew()
static URLConnection
sendMessage
(URL url, String inputMessage, String sendMethod, String sendContentType) static URLConnection
sendMessage
(URL url, String inputMessage, String sendMethod, String sendContentType, Properties[] appendRequestHeader) static void
-
コンストラクタの詳細
-
HttpAccess
public HttpAccess()
-
-
メソッドの詳細
-
sendMessage
public static URLConnection sendMessage(URL url, String inputMessage, String sendMethod, String sendContentType) throws Throwable - 例外:
Throwable
-
sendMessage
public static URLConnection sendMessage(URL url, String inputMessage, String sendMethod, String sendContentType, Properties[] appendRequestHeader) throws Throwable - 例外:
Throwable
-
setCookie
-
getCookie
-
getErrorMessage
-
isNew
public static boolean isNew() -
isFirstAccess
public static boolean isFirstAccess() -
getUrlConnection
-
getResponseCode
- 例外:
Exception
-