public class HttpResponse extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
HttpResponse.Status |
| Constructor and Description |
|---|
HttpResponse(HttpResponse.Status status) |
HttpResponse(String content) |
HttpResponse(String contentType,
InputStream stream) |
HttpResponse(String contentType,
InputStream stream,
long contentLength) |
| Modifier and Type | Method and Description |
|---|---|
void |
addHeader(String name,
String value) |
String |
getContent() |
long |
getContentLength() |
String |
getContentType() |
Map<String,String> |
getHeaders() |
HttpResponse.Status |
getStatus() |
InputStream |
getStream() |
public HttpResponse(String content)
public HttpResponse(String contentType, InputStream stream, long contentLength)
public HttpResponse(String contentType, InputStream stream)
public HttpResponse(HttpResponse.Status status)
public String getContent()
public String getContentType()
public HttpResponse.Status getStatus()
public InputStream getStream()
public long getContentLength()