Package org.teiid.spring.data.rest
Class RestConnection
- java.lang.Object
-
- org.teiid.spring.data.rest.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 Summary
Constructors Constructor Description RestConnection(org.springframework.web.client.RestTemplate template, org.springframework.beans.factory.BeanFactory beanFactory)
RestConnection(org.springframework.web.client.RestTemplate template, org.springframework.beans.factory.BeanFactory beanFactory, String endpoint, Map<String,List<String>> headers)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
<T> Dispatch<T>
createDispatch(Class<T> type, Service.Mode mode)
<T> Dispatch<T>
createDispatch(String binding, String endpoint, Class<T> type, Service.Mode mode)
org.springframework.beans.factory.BeanFactory
getBeanFactory()
String
getEndPoint()
QName
getPortQName()
QName
getServiceQName()
String
getStatusMessage(int status)
URL
getWsdl()
-
-
-
Method Detail
-
createDispatch
public <T> Dispatch<T> createDispatch(Class<T> type, Service.Mode mode) throws IOException
- Specified by:
createDispatch
in interfaceorg.teiid.translator.ws.WSConnection
- Throws:
IOException
-
createDispatch
public <T> Dispatch<T> createDispatch(String binding, String endpoint, Class<T> type, Service.Mode mode)
- Specified by:
createDispatch
in interfaceorg.teiid.translator.ws.WSConnection
-
close
public void close() throws Exception
- Specified by:
close
in interfaceorg.teiid.resource.api.Connection
- Throws:
Exception
-
getWsdl
public URL getWsdl()
- Specified by:
getWsdl
in interfaceorg.teiid.translator.ws.WSConnection
-
getServiceQName
public QName getServiceQName()
- Specified by:
getServiceQName
in interfaceorg.teiid.translator.ws.WSConnection
-
getPortQName
public QName getPortQName()
- Specified by:
getPortQName
in interfaceorg.teiid.translator.ws.WSConnection
-
getStatusMessage
public String getStatusMessage(int status)
- Specified by:
getStatusMessage
in interfaceorg.teiid.translator.ws.WSConnection
-
getBeanFactory
public org.springframework.beans.factory.BeanFactory getBeanFactory()
-
getEndPoint
public String getEndPoint()
- Specified by:
getEndPoint
in interfaceorg.teiid.translator.ws.WSConnection
-
-