Class RestConnection

  • All Implemented Interfaces:
    org.teiid.resource.api.Connection, BaseConnection, org.teiid.translator.ws.WSConnection

    public class RestConnection
    extends Object
    implements BaseConnection, org.teiid.translator.ws.WSConnection
    • Constructor Detail

      • RestConnection

        public RestConnection​(org.springframework.web.client.RestTemplate template,
                              org.springframework.beans.factory.BeanFactory beanFactory)
      • RestConnection

        public RestConnection​(org.springframework.web.client.RestTemplate template,
                              org.springframework.beans.factory.BeanFactory beanFactory,
                              String endpoint,
                              Map<String,​List<String>> headers)
    • Method Detail

      • createDispatch

        public <T> Dispatch<T> createDispatch​(String binding,
                                              String endpoint,
                                              Class<T> type,
                                              Service.Mode mode)
        Specified by:
        createDispatch in interface org.teiid.translator.ws.WSConnection
      • close

        public void close()
                   throws Exception
        Specified by:
        close in interface org.teiid.resource.api.Connection
        Throws:
        Exception
      • getWsdl

        public URL getWsdl()
        Specified by:
        getWsdl in interface org.teiid.translator.ws.WSConnection
      • getServiceQName

        public QName getServiceQName()
        Specified by:
        getServiceQName in interface org.teiid.translator.ws.WSConnection
      • getPortQName

        public QName getPortQName()
        Specified by:
        getPortQName in interface org.teiid.translator.ws.WSConnection
      • getStatusMessage

        public String getStatusMessage​(int status)
        Specified by:
        getStatusMessage in interface org.teiid.translator.ws.WSConnection
      • getBeanFactory

        public org.springframework.beans.factory.BeanFactory getBeanFactory()
      • getEndPoint

        public String getEndPoint()
        Specified by:
        getEndPoint in interface org.teiid.translator.ws.WSConnection