| Modifier and Type | Method and Description |
|---|---|
| public APIResponse | Returns: this ApiResponse instancethe unique name of the header name, Header a header for the response. null values will be rejected (implementation will throw an exception) or
ignored. header)Adds the given Header to this ApiResponse instance's map of Headers with the given name and return this instance of ApiResponse. |
| public APIResponse | Returns: this ApiResponse instancethe short name of the link name, Link the operation link that can be followed from the response. null values will be rejected
(implementation will throw an exception) or ignored. link)Adds a link to this instance of ApiResponse using the given name and Link, and returns this ApiResponse instance. |
| public default APIResponse | |
| public default APIResponse | Returns: this ApiResponse instancea short description of the response description)Sets the description of this instance of ApiResponse and returns this ApiResponse instance. |
| public Content | Returns: the potential content of the responseReturns the map containing descriptions of potential response payload for this instance of ApiResponse. |
| public String | Returns: a short description of the responseReturns a short description of this instance of ApiResponse. |
| public Map | Returns: a copy Map (potentially immutable) of the headers of this responseReturns the map of Headers in this instance of ApiResponse. |
| public Map | Returns: a copy Map (potentially immutable) of links that can be followed from the responseReturns the operations links that can be followed from this instance of ApiResponse. |
| public default APIResponse | |
| public default APIResponse | |
| public void | removeHeader(String
the unique name of the header name)Removes the given Header to this ApiResponse instance's map of Headers with the given name and return this instance of ApiResponse. |
| public void | removeLink(String
the short name of the link name)Removes a link to this instance of ApiResponse using the given name and Link. |
| public void | setContent(Content
the potential content of the response content)Sets the map containing descriptions of potential response payload for this instance of ApiResponse. |
| public void | setDescription(String
a short description of the response description)Sets the description of this instance of ApiResponse. |
| public void | setHeaders(Map<String, Header>
the headers of the response headers)Sets the Headers for this instance of ApiResponse with the given map of Headers. |
| public void |
| addHeader | back to summary |
|---|---|
| public APIResponse addHeader(String name, Header header) Adds the given Header to this ApiResponse instance's map of Headers with the given name and return this instance of ApiResponse. If this ApiResponse instance does not have any headers, a new map is created and the given header is added.
| |
| addLink | back to summary |
|---|---|
| public APIResponse addLink(String name, Link link) Adds a link to this instance of ApiResponse using the given name and Link, and returns this ApiResponse instance.
| |
| content | back to summary |
|---|---|
| public default APIResponse content(Content content) Sets the map containing descriptions of potential response payload for this instance of ApiResponse and returns this ApiResponse instance.
| |
| description | back to summary |
|---|---|
| public default APIResponse description(String description) Sets the description of this instance of ApiResponse and returns this ApiResponse instance.
| |
| getContent | back to summary |
|---|---|
| public Content getContent() Returns the map containing descriptions of potential response payload for this instance of ApiResponse.
| |
| getDescription | back to summary |
|---|---|
| public String getDescription() Returns a short description of this instance of ApiResponse.
| |
| getHeaders | back to summary |
|---|---|
| public Map Returns the map of Headers in this instance of ApiResponse. | |
| getLinks | back to summary |
|---|---|
| public Map Returns the operations links that can be followed from this instance of ApiResponse. | |
| headers | back to summary |
|---|---|
| public default APIResponse headers(Map<String, Header> headers) Sets the Headers for this instance of ApiResponse with the given map of Headers and returns this instance of ApiResponse. The Header names are case insensitive and if a Header is defined with the name 'Content-Type', then it will be ignored.
| |
| links | back to summary |
|---|---|
| public default APIResponse links(Map<String, Link> links) Sets the operations links that can be followed from this instance of ApiResponse.
| |
| removeHeader | back to summary |
|---|---|
| public void removeHeader(String name) Removes the given Header to this ApiResponse instance's map of Headers with the given name and return this instance of ApiResponse. If this ApiResponse instance does not have any headers, a new map is created and the given header is added.
| |
| removeLink | back to summary |
|---|---|
| public void removeLink(String name) Removes a link to this instance of ApiResponse using the given name and Link.
| |
| setContent | back to summary |
|---|---|
| public void setContent(Content content) Sets the map containing descriptions of potential response payload for this instance of ApiResponse.
| |
| setDescription | back to summary |
|---|---|
| public void setDescription(String description) Sets the description of this instance of ApiResponse.
| |
| setHeaders | back to summary |
|---|---|
| public void setHeaders(Map<String, Header> headers) Sets the Headers for this instance of ApiResponse with the given map of Headers. The Header names are case insensitive and if a Header is defined with the name 'Content-Type', then it will be ignored. | |
| setLinks | back to summary |
|---|---|
| public void setLinks(Map<String, Link> links) Sets the operations links that can be followed from this instance of ApiResponse. | |