Package org.somda.sdc.dpws.http.apache
Class ClientTransportBinding
-
- All Implemented Interfaces:
-
java.io.Closeable,java.lang.AutoCloseable,org.somda.sdc.dpws.TransportBinding,org.somda.sdc.dpws.soap.interception.NotificationCallback,org.somda.sdc.dpws.soap.interception.RequestResponseCallback
public class ClientTransportBinding implements TransportBinding
Binding providing request-response and notification capabilities using an HttpClient.
-
-
Field Summary
Fields Modifier and Type Field Description public final static StringUSER_AGENT_KEYpublic final static StringUSER_AGENT_VALUEpublic final static StringCOMMUNICATION_LOG_CONTEXT_KEY
-
Method Summary
Modifier and Type Method Description voidonNotification(SoapMessage notification)Callback that is triggered after an interceptor chain succeeded on the outgoing direction. SoapMessageonRequestResponse(SoapMessage request)Callback that is triggered after an interceptor chain succeeded on the outgoing direction. voidclose()-
-
Method Detail
-
onNotification
void onNotification(SoapMessage notification)
Callback that is triggered after an interceptor chain succeeded on the outgoing direction.
As notifications are handled as fire and forget, no faults and answers are accepted.
todo DGr may accept SOAP faults for better error analysis.
- Parameters:
notification- the notification to push.
-
onRequestResponse
SoapMessage onRequestResponse(SoapMessage request)
Callback that is triggered after an interceptor chain succeeded on the outgoing direction.
- Parameters:
request- the request to convey to the message receiver.- Returns:
a SOAP message with the received response from the network.
-
close
void close()
-
-
-
-