Class Response.Builder<T>
- java.lang.Object
-
- org.gbif.api.model.common.messaging.Response.Builder<T>
-
- Type Parameters:
T
- type of the content field
public static class Response.Builder<T> extends Object
Builder for Response objects. Source code generated using: http://code.google.com/p/bpep/.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
-
-
Constructor Detail
-
Builder
public Builder()
-
-
Method Detail
-
content
public Response.Builder<T> content(T content)
-
fromResponse
public Response.Builder<T> fromResponse(Response<?> otherResponse)
Creates an builder using/copying a response object.
-
message
public Response.Builder<T> message(String message)
-
messageKey
public Response.Builder<T> messageKey(String messageKey)
-
rootException
public Response.Builder<T> rootException(Throwable rootException)
-
status
public Response.Builder<T> status(Response.Status status)
-
statusCode
public Response.Builder<T> statusCode(Integer statusCode)
-
-