public class DefaultStacksClientConfiguration extends Object implements StacksClientConfiguration
PRESTACKS_REPO_PROPERTY, REPO_PROPERTY
Constructor and Description |
---|
DefaultStacksClientConfiguration() |
Modifier and Type | Method and Description |
---|---|
int |
getCacheRefreshPeriodInSeconds()
Refresh period of local cache.
|
String |
getProxyHost()
The proxy host.
|
String |
getProxyPassword()
The proxy connection password.
|
int |
getProxyPort()
The proxy port.
|
String |
getProxyUser()
The proxy connection user.
|
URL |
getUrl()
The URL to connect to.
|
boolean |
isOnline()
If this client is using in a online/offline environment
|
void |
setCacheRefreshPeriodInSeconds(int seconds)
Set the refresh period of local cache in seconds
|
void |
setOnline(boolean online)
Set online/offline environment
|
void |
setProxyHost(String proxyHost)
Set the proxy host
|
void |
setProxyPassword(String proxyPassword)
Set the proxy connection password
|
void |
setProxyPort(int proxyPort)
Set the proxy port
|
void |
setProxyUser(String proxyUser)
Set the proxy connection user.
|
void |
setUrl(URL url)
Set the URL to connect to
|
public URL getUrl()
StacksClientConfiguration
getUrl
in interface StacksClientConfiguration
public String getProxyHost()
StacksClientConfiguration
getProxyHost
in interface StacksClientConfiguration
null
if no proxy is specifiedpublic int getProxyPort()
StacksClientConfiguration
getProxyPort
in interface StacksClientConfiguration
public String getProxyUser()
StacksClientConfiguration
getProxyUser
in interface StacksClientConfiguration
null
if not specifiedpublic String getProxyPassword()
StacksClientConfiguration
getProxyPassword
in interface StacksClientConfiguration
null
if not specifiedpublic void setUrl(URL url)
StacksClientConfiguration
setUrl
in interface StacksClientConfiguration
public void setProxyHost(String proxyHost)
StacksClientConfiguration
setProxyHost
in interface StacksClientConfiguration
public void setProxyPort(int proxyPort)
StacksClientConfiguration
setProxyPort
in interface StacksClientConfiguration
public void setProxyUser(String proxyUser)
StacksClientConfiguration
setProxyUser
in interface StacksClientConfiguration
public void setProxyPassword(String proxyPassword)
StacksClientConfiguration
setProxyPassword
in interface StacksClientConfiguration
public boolean isOnline()
StacksClientConfiguration
isOnline
in interface StacksClientConfiguration
public void setOnline(boolean online)
StacksClientConfiguration
setOnline
in interface StacksClientConfiguration
public int getCacheRefreshPeriodInSeconds()
StacksClientConfiguration
getCacheRefreshPeriodInSeconds
in interface StacksClientConfiguration
public void setCacheRefreshPeriodInSeconds(int seconds)
StacksClientConfiguration
setCacheRefreshPeriodInSeconds
in interface StacksClientConfiguration
Copyright © 2016. All rights reserved.