Package org.bedework.synch.shared
Class Notification.NotificationItem
java.lang.Object
org.bedework.synch.shared.Notification.NotificationItem
- Enclosing class:
- Notification<NI extends Notification.NotificationItem>
- Author:
- douglm
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionCreate a notification item for an action.NotificationItem(Notification.NotificationItem.ActionType action, ietf.params.xml.ns.icalendar_2.IcalendarType ical, String uid) Create a notification item for an action.NotificationItem(org.bedework.synch.wsmessages.SubscribeResponseType subResponse) Create a notification item for a new subscription.NotificationItem(org.bedework.synch.wsmessages.SubscriptionStatusRequestType subStatusReq, org.bedework.synch.wsmessages.SubscriptionStatusResponseType subStatusResponse) Create a notification item for status.NotificationItem(org.bedework.synch.wsmessages.UnsubscribeRequestType unsubRequest, org.bedework.synch.wsmessages.UnsubscribeResponseType unsubResponse) Create a notification item for unsubscribe. -
Method Summary
Modifier and TypeMethodDescriptionietf.params.xml.ns.icalendar_2.IcalendarTypegetIcal()org.bedework.synch.wsmessages.SubscribeResponseTypeorg.bedework.synch.wsmessages.SubscriptionStatusRequestTypeorg.bedework.synch.wsmessages.SubscriptionStatusResponseTypegetUid()org.bedework.synch.wsmessages.UnsubscribeRequestTypeorg.bedework.synch.wsmessages.UnsubscribeResponseTypetoString()protected void
-
Constructor Details
-
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 unsubscribeunsubResponse- 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 statussubStatusResponse- to the status request
-
Method Details
-
getAction
- Returns:
- the action
-
getIcal
public ietf.params.xml.ns.icalendar_2.IcalendarType getIcal()- Returns:
- the icalendar entity we were notified about
-
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
-
toString
-