Class NotificationObject
- java.lang.Object
-
- org.somda.sdc.dpws.soap.interception.NotificationObject
-
public class NotificationObject extends Object
Object passed to interceptor to provide a SOAP notification message.
-
-
Constructor Summary
Constructors Constructor Description NotificationObject(SoapMessage notification)NotificationObject(SoapMessage notification, CommunicationContext communicationContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<CommunicationContext>getCommunicationContext()Returns the transport information attached to this notification.SoapMessagegetNotification()
-
-
-
Constructor Detail
-
NotificationObject
public NotificationObject(SoapMessage notification)
-
NotificationObject
public NotificationObject(SoapMessage notification, @Nullable CommunicationContext communicationContext)
-
-
Method Detail
-
getNotification
public SoapMessage getNotification()
-
getCommunicationContext
public Optional<CommunicationContext> getCommunicationContext()
Returns the transport information attached to this notification.- Returns:
- the
TransportInfoobject or Optional.empty() if no transport information is available. The latter case typically happens for notifications on the way from the client to the network as at this point no connection information is available. Once the notification was received by a server, transport information can be attached to this object and non-existence is then a potential error.
-
-