Package org.somda.sdc.dpws.soap
Class NotificationSourceImpl
- java.lang.Object
-
- org.somda.sdc.dpws.soap.NotificationSourceImpl
-
- All Implemented Interfaces:
InterceptorHandler,NotificationSource
public class NotificationSourceImpl extends Object implements NotificationSource
Default implementation of NotificationSource.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidregister(Interceptor interceptor)Registers a callback object.voidsendNotification(SoapMessage notification)Sends a SOAP notification message.
-
-
-
Method Detail
-
register
public void register(Interceptor interceptor)
Description copied from interface:InterceptorHandlerRegisters a callback object.- Specified by:
registerin interfaceInterceptorHandler- Parameters:
interceptor- an object that possessesMessageInterceptorannotated methods.- See Also:
MessageInterceptor
-
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.
-
-