Package com.symphony.api.bindings.cxf
Class CXFApiBuilder
- java.lang.Object
-
- com.symphony.api.bindings.AbstractApiBuilder
-
- com.symphony.api.bindings.cxf.CXFApiBuilder
-
- All Implemented Interfaces:
ApiBuilder
,ConfigurableApiBuilder
public class CXFApiBuilder extends AbstractApiBuilder
You should write your own version of this, or modify the returned webclient if you want to make use of proxies, or set different characteristics on the webclient. The URL should be:- https://<your-pod>.symphony.com:443/sessionauth
- https://<your agent>:8444/agent
- https://<your key manager>:8444/keyauth
- Author:
- Rob Moffat
-
-
Field Summary
-
Fields inherited from class com.symphony.api.bindings.AbstractApiBuilder
keyManagers, password, port, proxyHost, trustManagers, url, user, wrappers
-
-
Constructor Summary
Constructors Constructor Description CXFApiBuilder()
CXFApiBuilder(String url)
Call this class to create a basic xcf webclient.CXFApiBuilder(String url, KeyManager[] keyManagers)
Call this class to create a basic xcf webclient for authenticating using certificates.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected <X> X
buildProxy(Class<X> c, org.apache.cxf.jaxrs.client.WebClient wc)
protected org.apache.cxf.jaxrs.client.WebClient
createWebClient()
<X> X
getApi(Class<X> c)
Call this with an api, e.g.protected List<Object>
getProviders()
Sets the list of providers, by default will beJacksonJsonProvider
andContentDispositionMultipartProvider
.void
setProxy(org.apache.cxf.jaxrs.client.WebClient wc)
protected void
setupClientConfiguration(org.apache.cxf.jaxrs.client.ClientConfiguration config)
protected void
setupTLSParameters(org.apache.cxf.configuration.jsse.TLSClientParameters params)
-
Methods inherited from class com.symphony.api.bindings.AbstractApiBuilder
getKeyManagers, getTrustManagers, getWrappers, setKeyManagers, setProxyDetails, setTrustManagers, setUrl, setWrappers
-
-
-
-
Constructor Detail
-
CXFApiBuilder
public CXFApiBuilder()
-
CXFApiBuilder
public CXFApiBuilder(String url)
Call this class to create a basic xcf webclient.
-
CXFApiBuilder
public CXFApiBuilder(String url, KeyManager[] keyManagers)
Call this class to create a basic xcf webclient for authenticating using certificates.
-
-
Method Detail
-
getApi
public <X> X getApi(Class<X> c)
Call this with an api, e.g.MessagesApi
.class if you have constructed with the /agent endpoint, orAuthenticationApi
if you have constructed with keyauth or sessionauth endpoints.
-
getProviders
protected List<Object> getProviders()
Sets the list of providers, by default will beJacksonJsonProvider
andContentDispositionMultipartProvider
.- Returns:
-
buildProxy
protected <X> X buildProxy(Class<X> c, org.apache.cxf.jaxrs.client.WebClient wc)
-
createWebClient
protected org.apache.cxf.jaxrs.client.WebClient createWebClient()
-
setupClientConfiguration
protected void setupClientConfiguration(org.apache.cxf.jaxrs.client.ClientConfiguration config)
-
setupTLSParameters
protected void setupTLSParameters(org.apache.cxf.configuration.jsse.TLSClientParameters params)
-
setProxy
public void setProxy(org.apache.cxf.jaxrs.client.WebClient wc)
-
-