public static class Http.Options
extends Object
Constructor and Description |
---|
Options() |
Modifier and Type | Method and Description |
---|---|
void |
addFilePart(String name,
String fileName,
byte[] value,
String contentType,
String charSet) |
void |
addHeader(String name,
String value) |
void |
addPart(String name,
String value) |
Http.Auth |
getAuth() |
Http.Body |
getBody() |
javax.servlet.http.Cookie[] |
getCookies() |
List<Http.FilePart> |
getFileParts() |
Map<String,String> |
getHeaders() |
String |
getLocation() |
Http.Method |
getMethod() |
Map<String,String> |
getParts() |
Http.Response |
getResponse() |
int |
getTimeout() |
boolean |
isDelete() |
boolean |
isFollowRedirects() |
boolean |
isGet() |
boolean |
isHead() |
boolean |
isPost() |
boolean |
isPut() |
void |
setAuth(Http.Auth auth) |
void |
setAuth(String host,
int port,
String realm,
String username,
String password) |
void |
setBody(Http.Body body) |
void |
setBody(String content,
String contentType,
String charset) |
void |
setCookies(javax.servlet.http.Cookie[] cookies) |
void |
setDelete(boolean delete) |
void |
setFileParts(List<Http.FilePart> fileParts) |
void |
setFollowRedirects(boolean followRedirects) |
void |
setHead(boolean head) |
void |
setHeaders(Map<String,String> headers) |
void |
setLocation(String location) |
void |
setParts(Map<String,String> parts) |
void |
setPost(boolean post) |
void |
setPut(boolean put) |
void |
setResponse(Http.Response response) |
void |
setTimeout(int timeout) |
public void addFilePart(String name, String fileName, byte[] value, String contentType, String charSet)
public void addHeader(String name, String value)
public void addPart(String name, String value)
public Http.Auth getAuth()
public Http.Body getBody()
public javax.servlet.http.Cookie[] getCookies()
public List<Http.FilePart> getFileParts()
public Map<String,String> getHeaders()
public String getLocation()
public Http.Method getMethod()
public Map<String,String> getParts()
public Http.Response getResponse()
public int getTimeout()
public boolean isDelete()
public boolean isFollowRedirects()
public boolean isGet()
public boolean isHead()
public boolean isPost()
public boolean isPut()
public void setAuth(Http.Auth auth)
public void setAuth(String host, int port, String realm, String username, String password)
public void setBody(Http.Body body)
public void setBody(String content, String contentType, String charset)
public void setCookies(javax.servlet.http.Cookie[] cookies)
public void setDelete(boolean delete)
public void setFileParts(List<Http.FilePart> fileParts)
public void setFollowRedirects(boolean followRedirects)
public void setHead(boolean head)
public void setHeaders(Map<String,String> headers)
public void setLocation(String location)
public void setParts(Map<String,String> parts)
public void setPost(boolean post)
public void setPut(boolean put)
public void setResponse(Http.Response response)
public void setTimeout(int timeout)