public final class Response extends Object
Modifier and Type | Field and Description |
---|---|
static int |
ACCESS_DENIED |
static int |
AUTHENTICATION_REQUIRED |
String |
body
Body text of the HTTP response.
|
static int |
CONFLICT |
static int |
CREATED |
static int |
INTERNAL_SERVER_ERROR |
static int |
METHOD_NOT_ALLOWED |
static int |
NOT_ACCEPTABLE |
static int |
NOT_FOUND |
static int |
NOT_IMPLEMENTED |
static int |
OK |
static int |
PRECONDITION |
String |
requestRefNumber
Unique identifier of the request, that the response is referred to.
|
int |
statusCode
Status code of the HTTP response.
|
String |
statusMessage
Status message of the HTTP response.
|
static int |
TEMPORARILY_NOT_AVAILABLE |
static int |
UNSUPPORTED_MEDIA_TYPE |
Constructor and Description |
---|
Response(int statusCode,
String statusMessage,
String requestRefNumber,
String body)
Create a response.
|
Modifier and Type | Method and Description |
---|---|
String |
getBody()
Return the body of the HTTP response.
|
String |
getRequestRefNumber()
Return the unique identifier of the referring HTTP request.
|
int |
getStatusCode()
Return the status code of the HTTP response.
|
String |
getStatusMessage()
Return the status message of the HTTP response.
|
public static final int OK
public static final int CREATED
public static final int AUTHENTICATION_REQUIRED
public static final int ACCESS_DENIED
public static final int NOT_FOUND
public static final int METHOD_NOT_ALLOWED
public static final int NOT_ACCEPTABLE
public static final int CONFLICT
public static final int PRECONDITION
public static final int UNSUPPORTED_MEDIA_TYPE
public static final int INTERNAL_SERVER_ERROR
public static final int NOT_IMPLEMENTED
public static final int TEMPORARILY_NOT_AVAILABLE
public final int statusCode
public final String statusMessage
public final String requestRefNumber
public final String body
public Response(int statusCode, String statusMessage, String requestRefNumber, String body)
statusCode
- HTTP status codestatusMessage
- HTTP status messagerequestRefNumber
- value of the L-IS24-RequestRefnum response headerbody
- response bodypublic String getBody()
public String getRequestRefNumber()
This values was passed through the L-IS24-RequestRefnum header of the HTTP response.
public int getStatusCode()
public String getStatusMessage()
Copyright © 2016 OpenEstate. All rights reserved.