Module io.helidon.webclient.api
Package io.helidon.webclient.api
Class WebClientServiceResponse.BuilderBase<BUILDER extends WebClientServiceResponse.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends WebClientServiceResponse>  
java.lang.Object
io.helidon.webclient.api.WebClientServiceResponse.BuilderBase<BUILDER,PROTOTYPE> 
- Type Parameters:
- BUILDER- type of the builder extending this abstract builder
- PROTOTYPE- type of the prototype interface that would be built by- Prototype.Builder.buildPrototype()
- All Implemented Interfaces:
- Prototype.Builder<BUILDER,- PROTOTYPE> 
- Direct Known Subclasses:
- WebClientServiceResponse.Builder
- Enclosing interface:
- WebClientServiceResponse
public abstract static class WebClientServiceResponse.BuilderBase<BUILDER extends WebClientServiceResponse.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends WebClientServiceResponse>  
extends Object
implements Prototype.Builder<BUILDER,PROTOTYPE> 
Fluent API builder base for 
WebClientServiceResponse.- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionprotected static classGenerated implementation of the prototype, can be extended by descendant prototype implementations.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionClear existing value of this property.Client connection/stream that was used to handle this request.connection(ReleasableResource connection) Client connection/stream that was used to handle this request.from(WebClientServiceResponse prototype) Update this builder from an existing prototype instance.from(WebClientServiceResponse.BuilderBase<?, ?> builder) Update this builder from an existing prototype builder instance.headers()Received response headers.headers(ClientResponseHeaders headers) Received response headers.Input stream to get data of the entity.inputStream(InputStream inputStream) Input stream to get data of the entity.protected voidHandles providers and decorators.The service request used to invoke the final call.serviceRequest(WebClientServiceRequest serviceRequest) The service request used to invoke the final call.status()Status of the response.Status of the response.toString()trailers()Received response trailer headers.trailers(CompletableFuture<ClientResponseTrailers> trailers) Received response trailer headers.protected voidValidates required properties.Completable future to be completed by the client response when the entity is fully read.whenComplete(CompletableFuture<WebClientServiceResponse> whenComplete) Completable future to be completed by the client response when the entity is fully read.Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface io.helidon.builder.api.Prototype.BuilderbuildPrototype, self
- 
Constructor Details- 
BuilderBaseprotected BuilderBase()Protected to support extensibility.
 
- 
- 
Method Details- 
fromUpdate this builder from an existing prototype instance. This method disables automatic service discovery.- Parameters:
- prototype- existing prototype to update this builder from
- Returns:
- updated builder instance
 
- 
fromUpdate this builder from an existing prototype builder instance.- Parameters:
- builder- existing builder prototype to update this builder from
- Returns:
- updated builder instance
 
- 
headersReceived response headers.- Parameters:
- headers- immutable response headers
- Returns:
- updated builder instance
- See Also:
 
- 
trailersReceived response trailer headers.- Parameters:
- trailers- immutable response trailer headers
- Returns:
- updated builder instance
- See Also:
 
- 
statusStatus of the response.- Parameters:
- status- response status
- Returns:
- updated builder instance
- See Also:
 
- 
clearInputStreamClear existing value of this property.- Returns:
- updated builder instance
- See Also:
 
- 
inputStreamInput stream to get data of the entity. This allows decorating the entity (such as decryption). The status, headers are always already read, and the input stream will not provide transfer encoded bytes (e.g. the bytes in the input stream are the entity bytes, regardless of how it is encoded over HTTP).- Parameters:
- inputStream- entity input stream, or empty, if there is no entity
- Returns:
- updated builder instance
- See Also:
 
- 
connectionClient connection/stream that was used to handle this request. This resource will be closed/released once the entity is fully read, depending on keep alive configuration.- Parameters:
- connection- connection resource
- Returns:
- updated builder instance
- See Also:
 
- 
whenCompleteCompletable future to be completed by the client response when the entity is fully read.- Parameters:
- whenComplete- completable future to be finished by the client response
- Returns:
- updated builder instance
- See Also:
 
- 
serviceRequestThe service request used to invoke the final call.- Parameters:
- serviceRequest- service request
- Returns:
- updated builder instance
- See Also:
 
- 
headersReceived response headers.- Returns:
- the headers
 
- 
trailersReceived response trailer headers.- Returns:
- the trailers
 
- 
statusStatus of the response.- Returns:
- the status
 
- 
inputStreamInput stream to get data of the entity. This allows decorating the entity (such as decryption). The status, headers are always already read, and the input stream will not provide transfer encoded bytes (e.g. the bytes in the input stream are the entity bytes, regardless of how it is encoded over HTTP).- Returns:
- the input stream
 
- 
connectionClient connection/stream that was used to handle this request. This resource will be closed/released once the entity is fully read, depending on keep alive configuration.- Returns:
- the connection
 
- 
whenCompleteCompletable future to be completed by the client response when the entity is fully read.- Returns:
- the when complete
 
- 
serviceRequestThe service request used to invoke the final call.- Returns:
- the service request
 
- 
toString
- 
preBuildPrototypeprotected void preBuildPrototype()Handles providers and decorators.
- 
validatePrototypeprotected void validatePrototype()Validates required properties.
 
-