public class Response extends Object implements Serializable
All non-list members of this class are allowed to be null
.
The lists are pre-created and can therefore never be null
.
Constructor and Description |
---|
Response()
Constructs the response.
|
Response(Status status)
Constructs the response.
|
Response(Throwable throwable,
ErrorCode defaultMetaDataError,
ErrorCode defaultError,
String location)
Constructs an error response object with the data from an exception.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
List<ErrorInfo> |
getErrors() |
Status |
getStatus() |
int |
hashCode() |
void |
setErrors(List<ErrorInfo> errors) |
void |
setStatus(Status status) |
String |
toString() |
public Response()
public Response(Status status)
status
- the status of the request execution.public Response(Throwable throwable, ErrorCode defaultMetaDataError, ErrorCode defaultError, String location)
throwable
- the exception that occurred.defaultMetaDataError
- the default error code for
XDSMetaDataException
.defaultError
- the default error code for any other exception.location
- error location.public Status getStatus()
public void setStatus(Status status)
status
- the status of the request execution.public void setErrors(List<ErrorInfo> errors)
errors
- the list of errors that occurred.@Generated(value="lombok") public boolean equals(Object o)
@Generated(value="lombok") protected boolean canEqual(Object other)
@Generated(value="lombok") public int hashCode()
@Generated(value="lombok") public String toString()
Copyright © 2018 Open eHealth Foundation. All rights reserved.