|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.cxf.ws.eventing.backend.manager.SubscriptionManagerImpl
public class SubscriptionManagerImpl
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 | |
|---|---|
protected SubscriptionDatabase |
database
|
protected static Logger |
LOG
|
| Constructor Summary | |
|---|---|
SubscriptionManagerImpl(String url)
|
|
SubscriptionManagerImpl(String url,
String namespace,
String elementName)
|
|
| Method Summary | |
|---|---|
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)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final Logger LOG
protected final SubscriptionDatabase database
| Constructor Detail |
|---|
public SubscriptionManagerImpl(String url)
public SubscriptionManagerImpl(String url,
String namespace,
String elementName)
| Method Detail |
|---|
public SubscriptionTicketGrantingResponse subscribe(DeliveryType delivery,
org.apache.cxf.ws.addressing.EndpointReferenceType endTo,
ExpirationType expires,
FilterType filter,
FormatType format)
subscribe in interface SubscriptionManagerInterfaceForEventSourcespublic List<SubscriptionTicket> getTickets()
SubscriptionManagerInterfaceForEventSources
getTickets in interface SubscriptionManagerInterfaceForEventSourcesgetTickets in interface SubscriptionManagerInterfaceForNotificatorsprotected 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 SubscriptionManagerInterfaceForManagerspublic 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 SubscriptionManagerpublic void registerNotificator(NotificatorService service)
registerNotificator in interface SubscriptionManagerInterfaceForNotificators
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||