Package rs.jerseyclient
Class JerseyClientConfig
java.lang.Object
rs.jerseyclient.JerseyClientConfig
Holds configuration info for the client.
The class can be subclassed to add more config information.
- Author:
- ralph
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.JerseyClientConfig(String uri, boolean verbose) Constructor. -
Method Summary
Modifier and TypeMethodDescriptioncom.fasterxml.jackson.databind.ObjectMapperReturns the mapper.Returns the proxyConfig.getUri()Returns the base URI of the API that needs to be targeted.booleanReturns whether the Jersey client shall be configured to be verbosevoidsetObjectMapper(com.fasterxml.jackson.databind.ObjectMapper mapper) Sets the mapper.voidsetProxyConfig(ProxyConfig proxyConfig) Sets the proxyConfig.voidSets the base URI of the API that needs to be targeted.voidsetVerbose(boolean verbose) Sets whether the Jersey client shall be configured to be verbose.
-
Constructor Details
-
JerseyClientConfig
public JerseyClientConfig()Default constructor. -
JerseyClientConfig
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
Returns the base URI of the API that needs to be targeted.- Returns:
- the uri
-
setUri
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
Returns the proxyConfig.- Returns:
- the proxyConfig
-
setProxyConfig
Sets the proxyConfig.- Parameters:
proxyConfig- the proxyConfig to set
-