public class Response extends Object
| Modifier and Type | Field and Description |
|---|---|
byte[] |
body |
String |
code |
Map<String,String> |
headers |
String |
reason |
| Constructor and Description |
|---|
Response(byte[] body)
Initialize with the body.
|
Response(byte[] body,
Map<String,String> headers)
Initialize with the body and headers.
|
Response(byte[] body,
Map<String,String> headers,
String code,
String reason)
Initialize with the body, headers, code and reason.
|
Response(String body)
Initialize with the body.
|
Response(String body,
Map<String,String> headers)
Initialize with the body and headers.
|
Response(String body,
Map<String,String> headers,
String code,
String reason)
Initialize with the body, headers, code and reason.
|
public Response(String body) throws UnsupportedEncodingException
UnsupportedEncodingExceptionpublic Response(String body, Map<String,String> headers) throws UnsupportedEncodingException
UnsupportedEncodingExceptionpublic Response(String body, Map<String,String> headers, String code, String reason) throws UnsupportedEncodingException
UnsupportedEncodingExceptionpublic Response(byte[] body)
throws UnsupportedEncodingException
UnsupportedEncodingExceptionpublic Response(byte[] body,
Map<String,String> headers)
throws UnsupportedEncodingException
UnsupportedEncodingExceptionpublic Response(byte[] body,
Map<String,String> headers,
String code,
String reason)
throws UnsupportedEncodingException
UnsupportedEncodingExceptionCopyright © 2015. All rights reserved.