Class GenericEventSource

    • Method Detail

      • sendNotification

        public void sendNotification​(String action,
                                     Object payload)
        Description copied from interface: EventSource
        Sends a notification to all event sinks.
        Specified by:
        sendNotification in interface EventSource
        Parameters:
        action - the action URI used for dispatching to event sinks.
        payload - a JAXB element or JAXB generated class object to transport.
      • subscriptionEndToAll

        public void subscriptionEndToAll​(WsEventingStatus status)
        Description copied from interface: EventSource
        Sends a subscription end to all event sinks.
        Specified by:
        subscriptionEndToAll in interface EventSource
        Parameters:
        status - the subscription end reason.
      • sendNotificationFor

        public void sendNotificationFor​(String subscriptionId,
                                        String action,
                                        Object payload)
        Additional method to send out a notification to a single subscription.
        Parameters:
        subscriptionId - the subscription id for which a notification will be sent.
        action - the WS-Addressing action header URI.
        payload - the notification payload as JAXBElement or an object that can be marshalled.
      • endSubscriptionFor

        public void endSubscriptionFor​(String subscriptionId)
        Additional method to send out a subscription end to a single subscription.
        Parameters:
        subscriptionId - the subscription id for which the end will be announced.
      • getDialect

        public String getDialect()
        Description copied from interface: EventSourceDialectHandler
        This function shall return the handled filter dialect.

        It is used by the dispatcher helping to assign subscription activity.

        Specified by:
        getDialect in interface EventSourceDialectHandler
        Returns:
        the filter dialect handled by this instance.