Class ResponseData<T>
- java.lang.Object
-
- org.springframework.http.HttpEntity<T>
-
- org.springframework.http.ResponseEntity<T>
-
- com.tarsolution.notifyman.common.response.ResponseData<T>
-
- Direct Known Subclasses:
ResponseDataList
public class ResponseData<T> extends org.springframework.http.ResponseEntity<T>
- Author:
- FMARSLAN
-
-
Constructor Summary
Constructors Constructor Description ResponseData(org.springframework.http.HttpStatus status)
ResponseData(org.springframework.util.MultiValueMap<String,String> headers, org.springframework.http.HttpStatus status)
ResponseData(T body, org.springframework.http.HttpStatus status)
ResponseData(T body, org.springframework.util.MultiValueMap<String,String> headers, org.springframework.http.HttpStatus status)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResponseData<T>
addMessage(String message)
Exception
getException()
String
getExceptionCode()
List<String>
getMessage()
Long
getResponseTimes()
ResponseData<T>
setException(Exception exception)
ResponseData<T>
setExceptionCode(String exceptionCode)
ResponseData<T>
setResponseTimes(Long responseTimes)
-
-
-
Constructor Detail
-
ResponseData
public ResponseData(org.springframework.http.HttpStatus status)
-
ResponseData
public ResponseData(T body, org.springframework.http.HttpStatus status)
-
ResponseData
public ResponseData(org.springframework.util.MultiValueMap<String,String> headers, org.springframework.http.HttpStatus status)
-
-
Method Detail
-
addMessage
public ResponseData<T> addMessage(String message)
-
getResponseTimes
public Long getResponseTimes()
-
setResponseTimes
public ResponseData<T> setResponseTimes(Long responseTimes)
-
getException
public Exception getException()
-
setException
public ResponseData<T> setException(Exception exception)
-
getExceptionCode
public String getExceptionCode()
-
setExceptionCode
public ResponseData<T> setExceptionCode(String exceptionCode)
-
-