public class _HttpHelperResponse extends Object implements HttpResponse
| Constructor and Description |
|---|
_HttpHelperResponse(HttpURLConnection conn,
InputStream inputStream,
Charset charset) |
| Modifier and Type | Method and Description |
|---|---|
HttpResponseBody |
body() |
Charset |
charset() |
void |
clear() |
int |
code() |
String |
cookie(String name) |
String[] |
cookieNames() |
HttpCookie |
cookieObject(String name) |
String |
header(String name) |
String |
header(String name,
String def) |
String[] |
headerNames() |
List<String> |
headers(String name) |
String |
host() |
boolean |
isRedirect() |
String |
message() |
boolean |
ok() |
String |
protocol() |
String |
toString() |
String |
uri() |
String |
url() |
HttpVersion |
version() |
public _HttpHelperResponse(HttpURLConnection conn, InputStream inputStream, Charset charset)
public int code()
code in interface HttpResponsepublic HttpVersion version()
version in interface HttpResponsepublic boolean ok()
ok in interface HttpResponsepublic String uri()
uri in interface HttpResponsepublic String url()
url in interface HttpResponsepublic String protocol()
protocol in interface HttpResponsepublic String host()
host in interface HttpResponsepublic Charset charset()
charset in interface HttpResponsepublic String message()
message in interface HttpResponsepublic boolean isRedirect()
isRedirect in interface HttpResponsepublic String[] cookieNames()
cookieNames in interface HttpResponsepublic HttpCookie cookieObject(String name)
cookieObject in interface HttpResponsepublic String cookie(String name)
cookie in interface HttpResponsepublic String[] headerNames()
headerNames in interface HttpResponsepublic String header(String name, String def)
header in interface HttpResponsepublic String header(String name)
header in interface HttpResponsepublic List<String> headers(String name)
headers in interface HttpResponsepublic HttpResponseBody body()
body in interface HttpResponsepublic void clear()
clear in interface HttpResponseCopyright © 2018. All rights reserved.