Class 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
    • 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, or AuthenticationApi if you have constructed with keyauth or sessionauth endpoints.
      • 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)