Class NettyConnectorProvider
- java.lang.Object
-
- org.glassfish.jersey.netty.connector.NettyConnectorProvider
-
- All Implemented Interfaces:
ConnectorProvider
@Beta public class NettyConnectorProvider extends Object implements ConnectorProvider
Netty provider for Jerseyconnectors.The following connector configuration properties are supported:
ClientProperties.CONNECT_TIMEOUTClientProperties.READ_TIMEOUTClientProperties.PROXY_URIClientProperties.PROXY_USERNAMEClientProperties.PROXY_PASSWORD
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.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.- Since:
- 2.24
- Author:
- Pavel Bucek
-
-
Constructor Summary
Constructors Constructor Description NettyConnectorProvider()
-
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
-
-