Package com.symphony.api.bindings
Class AbstractApiBuilder
- java.lang.Object
-
- com.symphony.api.bindings.AbstractApiBuilder
-
- All Implemented Interfaces:
ApiBuilder
,ConfigurableApiBuilder
- Direct Known Subclasses:
CXFApiBuilder
,JerseyApiBuilder
public abstract class AbstractApiBuilder extends Object implements ConfigurableApiBuilder
-
-
Field Summary
Fields Modifier and Type Field Description protected Long
connectTimeout
protected KeyManager[]
keyManagers
protected String
password
protected int
port
protected String
proxyHost
protected TrustManager[]
trustManagers
String
url
protected String
user
protected ApiWrapper[]
wrappers
-
Constructor Summary
Constructors Constructor Description AbstractApiBuilder()
AbstractApiBuilder(String url)
AbstractApiBuilder(String url, KeyManager[] keyManagers)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description KeyManager[]
getKeyManagers()
TrustManager[]
getTrustManagers()
ApiWrapper[]
getWrappers()
void
setConnectTimeout(long ct)
void
setKeyManagers(KeyManager[] keyManagers)
void
setProxyDetails(String proxyHost, String user, String password, int port)
void
setTrustManagers(TrustManager[] trustManagers)
void
setUrl(String url)
void
setWrappers(ApiWrapper[] wrappers)
boolean
testConnection(String url)
Should be overridden by specific implementations-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.symphony.api.bindings.ApiBuilder
getApi
-
-
-
-
Field Detail
-
url
public String url
-
keyManagers
protected KeyManager[] keyManagers
-
trustManagers
protected TrustManager[] trustManagers
-
proxyHost
protected String proxyHost
-
user
protected String user
-
password
protected String password
-
port
protected int port
-
wrappers
protected ApiWrapper[] wrappers
-
connectTimeout
protected Long connectTimeout
-
-
Constructor Detail
-
AbstractApiBuilder
public AbstractApiBuilder()
-
AbstractApiBuilder
public AbstractApiBuilder(String url)
-
AbstractApiBuilder
public AbstractApiBuilder(String url, KeyManager[] keyManagers)
-
-
Method Detail
-
setProxyDetails
public void setProxyDetails(String proxyHost, String user, String password, int port)
- Specified by:
setProxyDetails
in interfaceConfigurableApiBuilder
-
getTrustManagers
public TrustManager[] getTrustManagers()
- Specified by:
getTrustManagers
in interfaceConfigurableApiBuilder
-
setTrustManagers
public void setTrustManagers(TrustManager[] trustManagers)
- Specified by:
setTrustManagers
in interfaceConfigurableApiBuilder
-
getKeyManagers
public KeyManager[] getKeyManagers()
- Specified by:
getKeyManagers
in interfaceConfigurableApiBuilder
-
setKeyManagers
public void setKeyManagers(KeyManager[] keyManagers)
- Specified by:
setKeyManagers
in interfaceConfigurableApiBuilder
-
setUrl
public void setUrl(String url)
- Specified by:
setUrl
in interfaceConfigurableApiBuilder
-
setWrappers
public void setWrappers(ApiWrapper[] wrappers)
- Specified by:
setWrappers
in interfaceConfigurableApiBuilder
-
getWrappers
public ApiWrapper[] getWrappers()
- Specified by:
getWrappers
in interfaceConfigurableApiBuilder
-
setConnectTimeout
public void setConnectTimeout(long ct)
- Specified by:
setConnectTimeout
in interfaceConfigurableApiBuilder
-
testConnection
public boolean testConnection(String url)
Should be overridden by specific implementations- Specified by:
testConnection
in interfaceConfigurableApiBuilder
-
-