Class WebClientServiceResponse.Builder
java.lang.Object
io.helidon.webclient.api.WebClientServiceResponse.BuilderBase<WebClientServiceResponse.Builder, WebClientServiceResponse>
io.helidon.webclient.api.WebClientServiceResponse.Builder
- All Implemented Interfaces:
Prototype.Builder<WebClientServiceResponse.Builder, WebClientServiceResponse>, Builder<WebClientServiceResponse.Builder, WebClientServiceResponse>, Supplier<WebClientServiceResponse>
- Enclosing interface:
WebClientServiceResponse
public static class WebClientServiceResponse.Builder
extends WebClientServiceResponse.BuilderBase<WebClientServiceResponse.Builder, WebClientServiceResponse>
implements Builder<WebClientServiceResponse.Builder, WebClientServiceResponse>
Fluent API builder for
WebClientServiceResponse.-
Nested Class Summary
Nested classes/interfaces inherited from class WebClientServiceResponse.BuilderBase
WebClientServiceResponse.BuilderBase.WebClientServiceResponseImplModifier and TypeClassDescriptionprotected static classGenerated implementation of the prototype, can be extended by descendant prototype implementations. -
Method Summary
Modifier and TypeMethodDescriptionbuild()Create an instance from this builder.Create an instance of the prototype.Methods inherited from class WebClientServiceResponse.BuilderBase
clearInputStream, connection, connection, from, from, headers, headers, inputStream, inputStream, preBuildPrototype, serviceRequest, serviceRequest, status, status, toString, trailers, trailers, validatePrototype, whenComplete, whenCompleteModifier and TypeMethodDescriptionClear existing value of inputStream.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 Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Builder
get, identity, updateModifier and TypeMethodDescriptiondefault WebClientServiceResponseget()default WebClientServiceResponse.Builderidentity()Instance of this builder as the correct type.default WebClientServiceResponse.Builderupdate(Consumer<WebClientServiceResponse.Builder> consumer) Update the builder in a fluent API way.Methods inherited from interface Prototype.Builder
selfModifier and TypeMethodDescriptiondefault WebClientServiceResponse.Builderself()Instance of this builder as the correct type.
-
Method Details
-
buildPrototype
Create an instance of the prototype. Calling this method may update this builder from providers and decorators, so repeated calls may have side effects.- Specified by:
buildPrototypein interfacePrototype.Builder<WebClientServiceResponse.Builder, WebClientServiceResponse>- Returns:
- an instance of the setup object created from this builder
-
build
Create an instance from this builder. Calling this method may update this builder from providers and decorators, so repeated calls may have side effects.- Specified by:
buildin interfaceBuilder<WebClientServiceResponse.Builder, WebClientServiceResponse>- Returns:
- instance of the built type
-