T
- type of the content fieldpublic static class Response.Builder<T> extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
Response<T> |
build() |
Response.Builder<T> |
content(T content) |
Response.Builder<T> |
fromResponse(Response<?> otherResponse)
Creates an builder using/copying a response object.
|
Response.Builder<T> |
message(String message) |
Response.Builder<T> |
messageKey(String messageKey) |
Response.Builder<T> |
rootException(Throwable rootException) |
Response.Builder<T> |
status(Response.Status status) |
Response.Builder<T> |
statusCode(Integer statusCode) |
public Builder()
public Response.Builder<T> content(T content)
public Response.Builder<T> fromResponse(Response<?> otherResponse)
public Response.Builder<T> message(String message)
public Response.Builder<T> messageKey(String messageKey)
public Response.Builder<T> rootException(Throwable rootException)
public Response.Builder<T> status(Response.Status status)
public Response.Builder<T> statusCode(Integer statusCode)
Copyright © 2024 Global Biodiversity Information Facility (GBIF). All rights reserved.