Class JerseyClientConfig

java.lang.Object
rs.jerseyclient.JerseyClientConfig

public class JerseyClientConfig extends Object
Holds configuration info for the client.

The class can be subclassed to add more config information.

Author:
ralph
  • Constructor Details

    • JerseyClientConfig

      public JerseyClientConfig()
      Default constructor.
    • JerseyClientConfig

      public JerseyClientConfig(String uri, boolean verbose)
      Constructor.
      Parameters:
      uri - - Base URI of the API that needs to be targeted.
      verbose - - whether the Jersey client shall be configured to be verbose.
  • Method Details

    • getUri

      public String getUri()
      Returns the base URI of the API that needs to be targeted.
      Returns:
      the uri
    • setUri

      public void setUri(String uri)
      Sets the base URI of the API that needs to be targeted.
      Parameters:
      uri - - Base URI of the API that needs to be targeted.
    • isVerbose

      public boolean isVerbose()
      Returns whether the Jersey client shall be configured to be verbose
      Returns:
      the verbose
    • setVerbose

      public void setVerbose(boolean verbose)
      Sets whether the Jersey client shall be configured to be verbose.
      Parameters:
      verbose - - whether the Jersey client shall be configured to be verbose.
    • getObjectMapper

      public com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()
      Returns the mapper.
      Returns:
      the mapper
    • setObjectMapper

      public void setObjectMapper(com.fasterxml.jackson.databind.ObjectMapper mapper)
      Sets the mapper.
      Parameters:
      mapper - the mapper to set
    • getProxyConfig

      public ProxyConfig getProxyConfig()
      Returns the proxyConfig.
      Returns:
      the proxyConfig
    • setProxyConfig

      public void setProxyConfig(ProxyConfig proxyConfig)
      Sets the proxyConfig.
      Parameters:
      proxyConfig - the proxyConfig to set