public class HttpRequest
extends java.lang.Object
修飾子とタイプ | フィールドと説明 |
---|---|
byte[] |
body |
static java.lang.String |
CONTENT_TYPE_JSON |
java.lang.String |
contentType |
boolean |
enableRedirect |
boolean |
getResponse |
java.lang.String |
method |
java.util.HashMap<java.lang.String,java.lang.String> |
requestHeader |
boolean |
ssl |
int |
timeout |
java.lang.String |
url |
コンストラクタと説明 |
---|
HttpRequest() |
修飾子とタイプ | メソッドと説明 |
---|---|
static HttpRequest |
createGet(java.lang.String url,
boolean isSsl) |
static HttpRequest |
createPost(java.lang.String url,
boolean isSsl,
boolean getResponse,
byte[] body) |
static HttpRequest |
createPostJson(java.lang.String url,
boolean isSsl,
boolean getResponse,
int timeout,
java.lang.String json) |
void |
setTimeout(int timeout) |
void |
setUserAgent(java.lang.String agent) |
public java.lang.String url
public boolean ssl
public java.lang.String method
public java.util.HashMap<java.lang.String,java.lang.String> requestHeader
public byte[] body
public int timeout
public boolean getResponse
public java.lang.String contentType
public boolean enableRedirect
public static final java.lang.String CONTENT_TYPE_JSON
public void setTimeout(int timeout)
public static HttpRequest createPostJson(java.lang.String url, boolean isSsl, boolean getResponse, int timeout, java.lang.String json)
public static HttpRequest createPost(java.lang.String url, boolean isSsl, boolean getResponse, byte[] body)
public static HttpRequest createGet(java.lang.String url, boolean isSsl)
public void setUserAgent(java.lang.String agent)