Class Notification.NotificationItem

    • Constructor Detail

      • NotificationItem

        public NotificationItem​(Notification.NotificationItem.ActionType action,
                                ietf.params.xml.ns.icalendar_2.IcalendarType ical,
                                String uid)
        Create a notification item for an action.
        Parameters:
        action - for notification
        ical - - the entity if available
        uid - - Uid for the entity if entity not available
      • NotificationItem

        public NotificationItem​(org.bedework.synch.wsmessages.SubscribeResponseType subResponse)
        Create a notification item for a new subscription.
        Parameters:
        subResponse - to the subscribe
      • NotificationItem

        public NotificationItem​(org.bedework.synch.wsmessages.UnsubscribeRequestType unsubRequest,
                                org.bedework.synch.wsmessages.UnsubscribeResponseType unsubResponse)
        Create a notification item for unsubscribe.
        Parameters:
        unsubRequest - to unsubscribe
        unsubResponse - to the unsubscribe
      • NotificationItem

        public NotificationItem​(org.bedework.synch.wsmessages.SubscriptionStatusRequestType subStatusReq,
                                org.bedework.synch.wsmessages.SubscriptionStatusResponseType subStatusResponse)
        Create a notification item for status.
        Parameters:
        subStatusReq - for status
        subStatusResponse - to the status request
    • Method Detail

      • getIcal

        public ietf.params.xml.ns.icalendar_2.IcalendarType getIcal()
        Returns:
        the icalendar entity we were notified about
      • getUid

        public String getUid()
        Returns:
        the uid of the icalendar entity we were notified about
      • getSubResponse

        public org.bedework.synch.wsmessages.SubscribeResponseType getSubResponse()
        Returns:
        response to a notification item
      • getUnsubRequest

        public org.bedework.synch.wsmessages.UnsubscribeRequestType getUnsubRequest()
        Returns:
        request leading to a notification item
      • getUnsubResponse

        public org.bedework.synch.wsmessages.UnsubscribeResponseType getUnsubResponse()
        Returns:
        response to a notification item
      • getSubStatusReq

        public org.bedework.synch.wsmessages.SubscriptionStatusRequestType getSubStatusReq()
        Returns:
        request leading to a notification item
      • getSubStatusResponse

        public org.bedework.synch.wsmessages.SubscriptionStatusResponseType getSubStatusResponse()
        Returns:
        response to a notification item
      • toStringSegment

        protected void toStringSegment​(StringBuilder sb)