Class LoopBackConnectorProvider
- java.lang.Object
-
- org.glassfish.jersey.test.util.client.LoopBackConnectorProvider
-
- All Implemented Interfaces:
ConnectorProvider
public final class LoopBackConnectorProvider extends Object implements ConnectorProvider
The defaultconnector providerused for testing/benchmarking purposes. The provided connector isLoopBackConnectorreturns a response that contains the same data (headers, entity) as the processed request.- Since:
- 2.17
- Author:
- Michal Gajdos
-
-
Constructor Summary
Constructors Constructor Description LoopBackConnectorProvider()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ConfigurationgetClientConfig()Get a client configuration specific to the connector.ConnectorgetConnector(Client client, Configuration config)
-
-
-
Method Detail
-
getConnector
public Connector getConnector(Client client, Configuration config)
- Specified by:
getConnectorin interfaceConnectorProvider
-
getClientConfig
public static Configuration getClientConfig()
Get a client configuration specific to the connector.- Returns:
- a client configuration specific to the connector.
-
-