Class ApacheClientFactoryImpl
java.lang.Object
com.atlassian.bamboo.testutils.jerseyclient.ApacheClientFactoryImpl
- All Implemented Interfaces:
JerseyClientFactory
Factory for Jersey clients that use Apache HttpClient.
Copied from jira-testkit-client
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a ClientFactory with the default configuration, which uses Jackson as the JSON marshaller.ApacheClientFactoryImpl
(org.glassfish.jersey.client.ClientConfig config) Creates a ClientFactory with the provided configuration. -
Method Summary
-
Constructor Details
-
ApacheClientFactoryImpl
public ApacheClientFactoryImpl()Creates a ClientFactory with the default configuration, which uses Jackson as the JSON marshaller. -
ApacheClientFactoryImpl
public ApacheClientFactoryImpl(org.glassfish.jersey.client.ClientConfig config) Creates a ClientFactory with the provided configuration.- Parameters:
config
- a ClientConfig
-
-
Method Details
-
create
public javax.ws.rs.client.Client create()Creates a Jersey client.- Specified by:
create
in interfaceJerseyClientFactory
- Returns:
- a new Client instance
-