Class ResponseModel
java.lang.Object
com.skava.orchestration.model.error.ResponseModel
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
EcommCustomErrorResponse
The Class ResponseModel
This model is used capture response code and response message.- Author:
- Infosys Equinox
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected @Size(min=0,max=255) String
Response codeprotected @Size(min=0,max=255) String
Response Message Example - List Item created successfullyprotected @jakarta.validation.constraints.Size(min=0, max=255) long
Indicates milliseconds representation of the current time. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThis method is used to get response code.This method is used to get response message.long
This method is used to get time stamp detailsvoid
setResponseCode
(String responseCode) This method is used to set response code.void
setResponseMessage
(String responseMessage) This method is used to set response message.
-
Field Details
-
responseCode
Response code -
responseMessage
Response Message Example - List Item created successfully -
timeStamp
@Size(min=0, max=255) protected @jakarta.validation.constraints.Size(min=0, max=255) long timeStampIndicates milliseconds representation of the current time. Indicates the time in milliseconds since the UNIX epoch (January 1, 1970 00:00:00 UTC).
-
-
Constructor Details
-
ResponseModel
public ResponseModel()The default constructor.
-
-
Method Details
-
getResponseCode
This method is used to get response code.- Returns:
- Returns the response code of string type.
-
setResponseCode
This method is used to set response code.- Parameters:
responseCode
- Indicates the response code of string type.
-
getResponseMessage
This method is used to get response message.- Returns:
- Returns the response message of string type.
-
setResponseMessage
This method is used to set response message.- Parameters:
responseMessage
- Indicates the response message of string type.
-
getTimeStamp
public long getTimeStamp()This method is used to get time stamp details- Returns:
- Returns time stamp of long type.
-