T
- Content type of the root responseR
- Content type of each individual related responsepublic class ResponseChain<T,R> extends Response<T>
Response.Builder<T>, Response.Status, Response.StatusCode
Constructor and Description |
---|
ResponseChain() |
ResponseChain(Response.Status status) |
ResponseChain(Response.Status status,
String messageKey) |
ResponseChain(Response.Status status,
T content,
String messageKey) |
Modifier and Type | Method and Description |
---|---|
void |
append(Response<R> response)
Adds a response to the list of related response.
|
List<Response<R>> |
getRelatedResponses() |
void |
setRelatedResponses(List<Response<R>> relatedResponses) |
copyTo, getContent, getMessage, getMessageKey, getRootException, getStatus, getStatusCode, setContent, setMessage, setMessageKey, setRootException, setStatus, setStatusCode, statusReason, toString
public ResponseChain()
public ResponseChain(Response.Status status)
public ResponseChain(Response.Status status, String messageKey)
public ResponseChain(Response.Status status, T content, String messageKey)
public List<Response<R>> getRelatedResponses()
public void setRelatedResponses(List<Response<R>> relatedResponses)
relatedResponses
- the relatedResponses to setCopyright © 2024 Global Biodiversity Information Facility (GBIF). All rights reserved.