Class Status
java.lang.Object
com.easypost.easyvcr.requestelements.Status
Represents a status of an HTTP request tracked by EasyVCR.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetCode()Returns the status code of the HTTP request.Returns the status description of the HTTP request.voidsetCode(int code)Sets the status code of the HTTP request.voidsetMessage(String message)Sets the status description of the HTTP request.
-
Constructor Details
-
Status
Constructs a new Status object. object.- Parameters:
code- The status code of the HTTP request.message- The status description of the HTTP request.
-
-
Method Details
-
getCode
public int getCode()Returns the status code of the HTTP request.- Returns:
- The status code of the HTTP request.
-
setCode
public void setCode(int code)Sets the status code of the HTTP request.- Parameters:
code- The status code of the HTTP request.
-
getMessage
Returns the status description of the HTTP request.- Returns:
- The status description of the HTTP request.
-
setMessage
Sets the status description of the HTTP request.- Parameters:
message- The status description of the HTTP request.
-