@Component public class ResponseData extends Object
Constructor and Description |
---|
ResponseData()
Instantiates a new response data.
|
ResponseData(String status,
Object data,
org.springframework.http.HttpStatus errorCode,
String message)
Instantiates a new response data.
|
Modifier and Type | Method and Description |
---|---|
Object |
getData()
Gets the data.
|
org.springframework.http.HttpStatus |
getErrorCode()
Gets the error code.
|
String |
getMessage()
Gets the message.
|
String |
getStatus()
Gets the status.
|
void |
setData(Object data)
Sets the data.
|
void |
setErrorCode(org.springframework.http.HttpStatus errorCode)
Sets the error code.
|
void |
setMessage(String message)
Sets the message.
|
void |
setStatus(String status)
Sets the status.
|
public String getStatus()
public void setStatus(String status)
status
- the new statuspublic Object getData()
public void setData(Object data)
data
- the new datapublic org.springframework.http.HttpStatus getErrorCode()
public void setErrorCode(org.springframework.http.HttpStatus errorCode)
errorCode
- the new error codepublic String getMessage()
public void setMessage(String message)
message
- the new messageCopyright © 2021. All rights reserved.