Class ApacheClientFactoryImpl
- java.lang.Object
-
- com.atlassian.bamboo.testutils.jerseyclient.ApacheClientFactoryImpl
-
- All Implemented Interfaces:
JerseyClientFactory
public class ApacheClientFactoryImpl extends Object implements JerseyClientFactory
Factory for Jersey clients that use Apache HttpClient. Copied from jira-testkit-client
-
-
Constructor Summary
Constructors Constructor Description ApacheClientFactoryImpl()
Creates a ClientFactory with the default configuration, which uses Jackson as the JSON marshaller.ApacheClientFactoryImpl(com.sun.jersey.api.client.config.ClientConfig config)
Creates a ClientFactory with the provided configuration.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.sun.jersey.api.client.Client
create()
Creates a Jersey client.
-
-
-
Constructor Detail
-
ApacheClientFactoryImpl
public ApacheClientFactoryImpl()
Creates a ClientFactory with the default configuration, which uses Jackson as the JSON marshaller.
-
ApacheClientFactoryImpl
public ApacheClientFactoryImpl(com.sun.jersey.api.client.config.ClientConfig config)
Creates a ClientFactory with the provided configuration.- Parameters:
config
- a ClientConfig
-
-
Method Detail
-
create
public com.sun.jersey.api.client.Client create()
Creates a Jersey client.- Specified by:
create
in interfaceJerseyClientFactory
- Returns:
- a new Client instance
-
-