Class HelidonConnectorProvider
- java.lang.Object
-
- io.helidon.jersey.connector.HelidonConnectorProvider
-
- All Implemented Interfaces:
ConnectorProvider
public class HelidonConnectorProvider extends Object implements ConnectorProvider
Provider for Helidon WebClientConnectorthat utilizes the Helidon HTTP Client to send and receive HTTP request and responses.The following properties are only supported at construction of this class:
ClientProperties.CONNECT_TIMEOUTClientProperties.FOLLOW_REDIRECTSClientProperties.PROXY_URIClientProperties.PROXY_USERNAMEClientProperties.PROXY_PASSWORDClientProperties.READ_TIMEOUTHelidonProperties.CONFIG
If a
ClientResponseis obtained and an entity is not read from the response thenInboundMessageContext.close()MUST be called after processing the response to release connection-based resources.Client operations are thread safe, the HTTP connection may be shared between different threads.
If a response entity is obtained that is an instance of
Closeablethen the instance MUST be closed after processing the entity to release connection-based resources.This connector uses
ClientProperties.OUTBOUND_CONTENT_LENGTH_BUFFERto buffer the entity written for instance byStreamingOutput. Should the buffer be small andStreamingOutput.write(OutputStream)be called many times, the performance can drop. The Content-Length or the Content_Encoding header is set by the underlaying Helidon WebClient regardless of theClientProperties.OUTBOUND_CONTENT_LENGTH_BUFFERsize, however.
-
-
Constructor Summary
Constructors Constructor Description HelidonConnectorProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConnectorgetConnector(Client client, Configuration runtimeConfig)
-
-
-
Method Detail
-
getConnector
public Connector getConnector(Client client, Configuration runtimeConfig)
- Specified by:
getConnectorin interfaceConnectorProvider
-
-