Class SubscriptionManagerImpl
java.lang.Object
org.apache.cxf.ws.eventing.backend.manager.SubscriptionManagerImpl
- All Implemented Interfaces:
SubscriptionManager,SubscriptionManagerInterfaceForEventSources,SubscriptionManagerInterfaceForManagers,SubscriptionManagerInterfaceForNotificators
The core class representing WS-Eventing backend. It holds an instance of a database and
acts as a layer for communicating with it.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final SubscriptionDatabaseprotected static final Logger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfindTicket(UUID uuid) protected SubscriptionDatabaseorg.apache.cxf.ws.addressing.AttributedURITypeREAD ONLY.Decide what expiration time to grant to the subscription, if the client did not specify any particular wish for subscription length.grantExpirationFor(Duration requested) Decide what expiration time to grant to the subscription, if the client specified a duration in the request and did specify BestEffort=true.grantExpirationFor(XMLGregorianCalendar requested) Decide what expiration time to grant to the subscription, if the client specified a calendar time in the request and did specify BestEffort=true.protected voidgrantSubscriptionManagerReference(SubscriptionTicket ticket, SubscriptionTicketGrantingResponse response) protected voidprocessDelivery(DeliveryType request, SubscriptionTicket ticket, SubscriptionTicketGrantingResponse response) protected voidprocessEndTo(org.apache.cxf.ws.addressing.EndpointReferenceType request, SubscriptionTicket ticket, SubscriptionTicketGrantingResponse response) protected voidprocessExpiration(ExpirationType request, SubscriptionTicket ticket, SubscriptionTicketGrantingResponse response) process the stuff concerning expiration request (wse:Expires)protected voidprocessFilters(FilterType request, SubscriptionTicket ticket, SubscriptionTicketGrantingResponse response) protected voidprocessFormat(FormatType format, SubscriptionTicket ticket, SubscriptionTicketGrantingResponse response) voidregisterNotificator(NotificatorService service) renew(UUID uuid, ExpirationType requestedExpiration) subscribe(DeliveryType delivery, org.apache.cxf.ws.addressing.EndpointReferenceType endTo, ExpirationType expires, FilterType filter, FormatType format) voidsubscriptionEnd(UUID subscriptionId, String reason, SubscriptionEndStatus status) voidunsubscribeTicket(UUID uuid)
-
Field Details
-
LOG
-
database
-
-
Constructor Details
-
SubscriptionManagerImpl
-
SubscriptionManagerImpl
-
-
Method Details
-
subscribe
public SubscriptionTicketGrantingResponse subscribe(DeliveryType delivery, org.apache.cxf.ws.addressing.EndpointReferenceType endTo, ExpirationType expires, FilterType filter, FormatType format) - Specified by:
subscribein interfaceSubscriptionManagerInterfaceForEventSources
-
getTickets
Description copied from interface:SubscriptionManagerInterfaceForEventSourcesREAD ONLY. Returns an unmodifiable list of the subscriptions in database.- Specified by:
getTicketsin interfaceSubscriptionManagerInterfaceForEventSources- Specified by:
getTicketsin interfaceSubscriptionManagerInterfaceForNotificators
-
getDatabase
-
processFormat
protected void processFormat(FormatType format, SubscriptionTicket ticket, SubscriptionTicketGrantingResponse response) -
processFilters
protected void processFilters(FilterType request, SubscriptionTicket ticket, SubscriptionTicketGrantingResponse response) -
processExpiration
protected void processExpiration(ExpirationType request, SubscriptionTicket ticket, SubscriptionTicketGrantingResponse response) process the stuff concerning expiration request (wse:Expires) -
processEndTo
protected void processEndTo(org.apache.cxf.ws.addressing.EndpointReferenceType request, SubscriptionTicket ticket, SubscriptionTicketGrantingResponse response) -
processDelivery
protected void processDelivery(DeliveryType request, SubscriptionTicket ticket, SubscriptionTicketGrantingResponse response) -
grantSubscriptionManagerReference
protected void grantSubscriptionManagerReference(SubscriptionTicket ticket, SubscriptionTicketGrantingResponse response) -
grantExpirationFor
Decide what expiration time to grant to the subscription, if the client specified a calendar time in the request and did specify BestEffort=true. -
grantExpirationFor
Decide what expiration time to grant to the subscription, if the client specified a duration in the request and did specify BestEffort=true. -
grantExpiration
Decide what expiration time to grant to the subscription, if the client did not specify any particular wish for subscription length. -
getSubscriptionManagerAddress
public org.apache.cxf.ws.addressing.AttributedURIType getSubscriptionManagerAddress() -
unsubscribeTicket
- Specified by:
unsubscribeTicketin interfaceSubscriptionManagerInterfaceForManagers
-
findTicket
- Specified by:
findTicketin interfaceSubscriptionManagerInterfaceForManagers
-
renew
- Specified by:
renewin interfaceSubscriptionManagerInterfaceForManagers
-
subscriptionEnd
- Specified by:
subscriptionEndin interfaceSubscriptionManager
-
registerNotificator
- Specified by:
registerNotificatorin interfaceSubscriptionManagerInterfaceForNotificators
-