public class SubscriptionManagerImpl extends Object implements SubscriptionManager
Modifier and Type | Field and Description |
---|---|
protected SubscriptionDatabase |
database |
protected static Logger |
LOG |
Constructor and Description |
---|
SubscriptionManagerImpl(String url) |
SubscriptionManagerImpl(String url,
String namespace,
String elementName) |
Modifier and Type | Method and Description |
---|---|
SubscriptionTicket |
findTicket(UUID uuid) |
protected SubscriptionDatabase |
getDatabase() |
org.apache.cxf.ws.addressing.AttributedURIType |
getSubscriptionManagerAddress() |
List<SubscriptionTicket> |
getTickets()
READ ONLY.
|
XMLGregorianCalendar |
grantExpiration()
Decide what expiration time to grant to the subscription, if
the client did not specify any particular wish for subscription length.
|
XMLGregorianCalendar |
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.
|
XMLGregorianCalendar |
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 void |
grantSubscriptionManagerReference(SubscriptionTicket ticket,
SubscriptionTicketGrantingResponse response) |
protected void |
processDelivery(DeliveryType request,
SubscriptionTicket ticket,
SubscriptionTicketGrantingResponse response) |
protected void |
processEndTo(org.apache.cxf.ws.addressing.EndpointReferenceType request,
SubscriptionTicket ticket,
SubscriptionTicketGrantingResponse response) |
protected void |
processExpiration(ExpirationType request,
SubscriptionTicket ticket,
SubscriptionTicketGrantingResponse response)
process the stuff concerning expiration request (wse:Expires)
|
protected void |
processFilters(FilterType request,
SubscriptionTicket ticket,
SubscriptionTicketGrantingResponse response) |
protected void |
processFormat(FormatType format,
SubscriptionTicket ticket,
SubscriptionTicketGrantingResponse response) |
void |
registerNotificator(NotificatorService service) |
ExpirationType |
renew(UUID uuid,
ExpirationType requestedExpiration) |
SubscriptionTicketGrantingResponse |
subscribe(DeliveryType delivery,
org.apache.cxf.ws.addressing.EndpointReferenceType endTo,
ExpirationType expires,
FilterType filter,
FormatType format) |
void |
subscriptionEnd(UUID subscriptionId,
String reason,
SubscriptionEndStatus status) |
void |
unsubscribeTicket(UUID uuid) |
protected static final Logger LOG
protected final SubscriptionDatabase database
public SubscriptionManagerImpl(String url)
public SubscriptionTicketGrantingResponse subscribe(DeliveryType delivery, org.apache.cxf.ws.addressing.EndpointReferenceType endTo, ExpirationType expires, FilterType filter, FormatType format)
subscribe
in interface SubscriptionManagerInterfaceForEventSources
public List<SubscriptionTicket> getTickets()
SubscriptionManagerInterfaceForEventSources
getTickets
in interface SubscriptionManagerInterfaceForEventSources
getTickets
in interface SubscriptionManagerInterfaceForNotificators
protected SubscriptionDatabase getDatabase()
protected void processFormat(FormatType format, SubscriptionTicket ticket, SubscriptionTicketGrantingResponse response)
protected void processFilters(FilterType request, SubscriptionTicket ticket, SubscriptionTicketGrantingResponse response)
protected void processExpiration(ExpirationType request, SubscriptionTicket ticket, SubscriptionTicketGrantingResponse response)
protected void processEndTo(org.apache.cxf.ws.addressing.EndpointReferenceType request, SubscriptionTicket ticket, SubscriptionTicketGrantingResponse response)
protected void processDelivery(DeliveryType request, SubscriptionTicket ticket, SubscriptionTicketGrantingResponse response)
protected void grantSubscriptionManagerReference(SubscriptionTicket ticket, SubscriptionTicketGrantingResponse response)
public XMLGregorianCalendar grantExpirationFor(XMLGregorianCalendar requested)
public XMLGregorianCalendar grantExpirationFor(Duration requested)
public XMLGregorianCalendar grantExpiration()
public org.apache.cxf.ws.addressing.AttributedURIType getSubscriptionManagerAddress()
public void unsubscribeTicket(UUID uuid)
unsubscribeTicket
in interface SubscriptionManagerInterfaceForManagers
public SubscriptionTicket findTicket(UUID uuid)
findTicket
in interface SubscriptionManagerInterfaceForManagers
public ExpirationType renew(UUID uuid, ExpirationType requestedExpiration)
renew
in interface SubscriptionManagerInterfaceForManagers
public void subscriptionEnd(UUID subscriptionId, String reason, SubscriptionEndStatus status)
subscriptionEnd
in interface SubscriptionManager
public void registerNotificator(NotificatorService service)
registerNotificator
in interface SubscriptionManagerInterfaceForNotificators
Apache CXF