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 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 interface JerseyClientFactory
      Returns:
      a new Client instance