Class ApiEntityResponse.Builder<B extends ApiEntityResponse.Builder<B,T,X>,T extends ApiEntityResponse,X>
- java.lang.Object
- 
- io.helidon.integrations.common.rest.ApiResponse.Builder<B,T>
- 
- io.helidon.integrations.common.rest.ApiEntityResponse.Builder<B,T,X>
 
 
- 
- Type Parameters:
- B- type of the builder (subclass of this class)
- T- type of the response being built
- X- type of the entity supported (- JsonObject,- Multi, or- byte[])
 - All Implemented Interfaces:
- Builder<T>,- ResponseBuilder<B,T,X>,- Supplier<T>
 - Enclosing class:
- ApiEntityResponse
 
 public abstract static class ApiEntityResponse.Builder<B extends ApiEntityResponse.Builder<B,T,X>,T extends ApiEntityResponse,X> extends ApiResponse.Builder<B,T> implements ResponseBuilder<B,T,X> Fluent API builder base to build subclasses ofApiEntityResponse.
- 
- 
Constructor SummaryConstructors Modifier Constructor Description protectedBuilder()Create a new builder instance.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description Xentity()Accessor to entity that can be used in subclasses ofApiEntityResponseto set up fields.Bentity(X entity)This method is invoked byRestApiwhen an entity is received.- 
Methods inherited from class io.helidon.integrations.common.rest.ApiResponse.Builderheaders, headers, me, requestId, requestId, status, status
 - 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface io.helidon.integrations.common.rest.ResponseBuilderheaders, requestId, status
 
- 
 
- 
- 
- 
Method Detail- 
entitypublic B entity(X entity) This method is invoked byRestApiwhen an entity is received.- Specified by:
- entityin interface- ResponseBuilder<B extends ApiEntityResponse.Builder<B,T,X>,T extends ApiEntityResponse,X>
- Parameters:
- entity- entity
- Returns:
- updated builder
 
 - 
entitypublic X entity() Accessor to entity that can be used in subclasses ofApiEntityResponseto set up fields.- Returns:
- received entity
 
 
- 
 
-