Module io.helidon.webclient.api
Package io.helidon.webclient.api
Class WebClientServiceResponse.BuilderBase.WebClientServiceResponseImpl
java.lang.Object
io.helidon.webclient.api.WebClientServiceResponse.BuilderBase.WebClientServiceResponseImpl
- All Implemented Interfaces:
Prototype.Api
,WebClientServiceResponse
- Enclosing class:
WebClientServiceResponse.BuilderBase<BUILDER extends WebClientServiceResponse.BuilderBase<BUILDER,
PROTOTYPE>, PROTOTYPE extends WebClientServiceResponse>
protected static class WebClientServiceResponse.BuilderBase.WebClientServiceResponseImpl
extends Object
implements WebClientServiceResponse
Generated implementation of the prototype, can be extended by descendant prototype implementations.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.helidon.webclient.api.WebClientServiceResponse
WebClientServiceResponse.Builder, WebClientServiceResponse.BuilderBase<BUILDER extends WebClientServiceResponse.BuilderBase<BUILDER,
PROTOTYPE>, PROTOTYPE extends WebClientServiceResponse> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Create an instance providing a builder. -
Method Summary
Modifier and TypeMethodDescriptionClient connection/stream that was used to handle this request.boolean
int
hashCode()
headers()
Received response headers.Input stream to get data of the entity.The service request used to invoke the final call.status()
Status of the response.toString()
trailers()
Received response trailer headers.Completable future to be completed by the client response when the entity is fully read.
-
Constructor Details
-
WebClientServiceResponseImpl
Create an instance providing a builder.- Parameters:
builder
- extending builder base of this prototype
-
-
Method Details
-
headers
Description copied from interface:WebClientServiceResponse
Received response headers.- Specified by:
headers
in interfaceWebClientServiceResponse
- Returns:
- immutable response headers
-
trailers
Description copied from interface:WebClientServiceResponse
Received response trailer headers.- Specified by:
trailers
in interfaceWebClientServiceResponse
- Returns:
- immutable response trailer headers
-
status
Description copied from interface:WebClientServiceResponse
Status of the response.- Specified by:
status
in interfaceWebClientServiceResponse
- Returns:
- response status
-
inputStream
Description copied from interface:WebClientServiceResponse
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).- Specified by:
inputStream
in interfaceWebClientServiceResponse
- Returns:
- entity input stream, or empty, if there is no entity
-
connection
Description copied from interface:WebClientServiceResponse
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.- Specified by:
connection
in interfaceWebClientServiceResponse
- Returns:
- connection resource
-
whenComplete
Description copied from interface:WebClientServiceResponse
Completable future to be completed by the client response when the entity is fully read.- Specified by:
whenComplete
in interfaceWebClientServiceResponse
- Returns:
- completable future to be finished by the client response
-
serviceRequest
Description copied from interface:WebClientServiceResponse
The service request used to invoke the final call.- Specified by:
serviceRequest
in interfaceWebClientServiceResponse
- Returns:
- service request
-
toString
-
equals
-
hashCode
public int hashCode()
-