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 builderPROTOTYPE
- type of the prototype interface that would be built byPrototype.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 Summary
Modifier and TypeClassDescriptionprotected static class
Generated implementation of the prototype, can be extended by descendant prototype implementations. -
Constructor Summary
-
Method Summary
Modifier 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 void
Handles 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 void
Validates 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.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface io.helidon.builder.api.Prototype.Builder
buildPrototype, self
-
Constructor Details
-
BuilderBase
protected BuilderBase()Protected to support extensibility.
-
-
Method Details
-
from
Update 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
-
from
Update this builder from an existing prototype builder instance.- Parameters:
builder
- existing builder prototype to update this builder from- Returns:
- updated builder instance
-
headers
Received response headers.- Parameters:
headers
- immutable response headers- Returns:
- updated builder instance
- See Also:
-
trailers
Received response trailer headers.- Parameters:
trailers
- immutable response trailer headers- Returns:
- updated builder instance
- See Also:
-
status
Status of the response.- Parameters:
status
- response status- Returns:
- updated builder instance
- See Also:
-
clearInputStream
Clear existing value of this property.- Returns:
- updated builder instance
- See Also:
-
inputStream
Input 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:
-
connection
Client 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:
-
whenComplete
Completable 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:
-
serviceRequest
The service request used to invoke the final call.- Parameters:
serviceRequest
- service request- Returns:
- updated builder instance
- See Also:
-
headers
Received response headers.- Returns:
- the headers
-
trailers
Received response trailer headers.- Returns:
- the trailers
-
status
Status of the response.- Returns:
- the status
-
inputStream
Input 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
-
connection
Client 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
-
whenComplete
Completable future to be completed by the client response when the entity is fully read.- Returns:
- the when complete
-
serviceRequest
The service request used to invoke the final call.- Returns:
- the service request
-
toString
-
preBuildPrototype
protected void preBuildPrototype()Handles providers and decorators. -
validatePrototype
protected void validatePrototype()Validates required properties.
-