Package org.somda.sdc.dpws.soap
Class NotificationSourceImpl
java.lang.Object
org.somda.sdc.dpws.soap.NotificationSourceImpl
- All Implemented Interfaces:
InterceptorHandler,NotificationSource
Default implementation of NotificationSource.
-
Method Summary
Modifier and TypeMethodDescriptionvoidregister(Interceptor interceptor) Registers a callback object.voidsendNotification(SoapMessage notification) Sends a SOAP notification message.
-
Method Details
-
register
Description copied from interface:InterceptorHandlerRegisters a callback object.- Specified by:
registerin interfaceInterceptorHandler- Parameters:
interceptor- an object that possessesMessageInterceptorannotated methods.- See Also:
-
sendNotification
public void sendNotification(SoapMessage notification) throws MarshallingException, TransportException, InterceptorException Description copied from interface:NotificationSourceSends a SOAP notification message.This method returns as soon as the message left the application process.
- Specified by:
sendNotificationin interfaceNotificationSource- Parameters:
notification- outgoing notification message.- Throws:
MarshallingException- if any exception occurs during marshalling or unmarshalling of SOAP messages.TransportException- if any transport-related exception comes up during processing. This will hinder the response from being sent.InterceptorException- if one of the interceptors pops up with an error.
-