public class HttpsResponse
extends java.lang.Object
| Modifier | Constructor and Description |
|---|---|
protected |
HttpsResponse() |
|
HttpsResponse(int status,
byte[] body,
java.util.Map<java.lang.String,java.util.List<java.lang.String>> headerFields,
byte[] errorReason)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getBody()
Getter for the response body.
|
byte[] |
getErrorReason()
Getter for the error reason.
|
java.lang.String |
getHeaderField(java.lang.String field)
Getter for a header field.
|
java.util.Map<java.lang.String,java.lang.String> |
getHeaderFields()
Getter for the header fields.
|
int |
getStatus()
Getter for the HTTPS status code.
|
public HttpsResponse(int status,
byte[] body,
java.util.Map<java.lang.String,java.util.List<java.lang.String>> headerFields,
byte[] errorReason)
status - the HTTPS status code.body - the response body.headerFields - a map of header field names and the values associated
with the field name.errorReason - the error reason.protected HttpsResponse()
public int getStatus()
public byte[] getBody()
public java.lang.String getHeaderField(java.lang.String field)
field - the header field name.public java.util.Map<java.lang.String,java.lang.String> getHeaderFields()
public byte[] getErrorReason()
Copyright © 2023. All rights reserved.