public static class Http.Response
extends Object
Constructor and Description |
---|
Response() |
Modifier and Type | Method and Description |
---|---|
void |
addHeader(String name,
String value) |
int |
getContentLength() |
long |
getContentLengthLong() |
String |
getContentType() |
String |
getHeader(String name) |
Map<String,String> |
getHeaders() |
String |
getRedirect() |
int |
getResponseCode() |
void |
setContentLength(int contentLength) |
void |
setContentLengthLong(long contentLengthLong) |
void |
setContentType(String contentType) |
void |
setHeaders(Map<String,String> headers) |
void |
setRedirect(String redirect) |
void |
setResponseCode(int responseCode) |
public void addHeader(String name, String value)
public int getContentLength()
public long getContentLengthLong()
public String getContentType()
public String getHeader(String name)
public Map<String,String> getHeaders()
public String getRedirect()
public int getResponseCode()
public void setContentLength(int contentLength)
public void setContentLengthLong(long contentLengthLong)
public void setContentType(String contentType)
public void setHeaders(Map<String,String> headers)
public void setRedirect(String redirect)
public void setResponseCode(int responseCode)