Apache CXF API

org.apache.cxf.ws.eventing.manager
Class AbstractSubscriptionManager

java.lang.Object
  extended by org.apache.cxf.ws.eventing.manager.AbstractSubscriptionManager
All Implemented Interfaces:
SubscriptionManagerEndpoint

public abstract class AbstractSubscriptionManager
extends Object
implements SubscriptionManagerEndpoint


Field Summary
protected  WebServiceContext context
           
protected static Logger LOG
           
 
Constructor Summary
AbstractSubscriptionManager()
           
 
Method Summary
 GetStatusResponse getStatusOp(GetStatus body)
          The GetStatus operation of the Subscription Manager See http://www.w3.org/TR/ws-eventing/#GetStatus
protected abstract  SubscriptionManagerInterfaceForManagers getSubscriptionManagerBackend()
           
protected  SubscriptionTicket obtainTicketFromDatabaseOrThrowFault(String uuid)
          searches the subscription database for a subscription by the given UUID
 RenewResponse renewOp(Renew body)
          The Renew operation of the Subscription Manager See http://www.w3.org/TR/ws-eventing/#Renew
protected  String retrieveSubscriptionUUID()
          Retrieves the subscription's uuid as it was specified in SOAP header.
 UnsubscribeResponse unsubscribeOp(Unsubscribe body)
          The Unsubscribe operation of the Subscription Manager See http://www.w3.org/TR/ws-eventing/#Unsubscribe
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

protected static final Logger LOG

context

protected WebServiceContext context
Constructor Detail

AbstractSubscriptionManager

public AbstractSubscriptionManager()
Method Detail

renewOp

public RenewResponse renewOp(Renew body)
Description copied from interface: SubscriptionManagerEndpoint
The Renew operation of the Subscription Manager See http://www.w3.org/TR/ws-eventing/#Renew

Specified by:
renewOp in interface SubscriptionManagerEndpoint
Parameters:
body - JAXB class Renew representing the body of the renew request
Returns:
JAXB class RenewResponse representing the response for the requester

getStatusOp

public GetStatusResponse getStatusOp(GetStatus body)
Description copied from interface: SubscriptionManagerEndpoint
The GetStatus operation of the Subscription Manager See http://www.w3.org/TR/ws-eventing/#GetStatus

Specified by:
getStatusOp in interface SubscriptionManagerEndpoint
Parameters:
body - JAXB class GetStatus representing the body of the GetStatus request
Returns:
JAXB class GetStatusResponse representing the response for the requester

unsubscribeOp

public UnsubscribeResponse unsubscribeOp(Unsubscribe body)
Description copied from interface: SubscriptionManagerEndpoint
The Unsubscribe operation of the Subscription Manager See http://www.w3.org/TR/ws-eventing/#Unsubscribe

Specified by:
unsubscribeOp in interface SubscriptionManagerEndpoint
Parameters:
body - JAXB class Unsubscribe representing the body of the Unsubscribe request
Returns:
JAXB class UnsubscribeResponse representing the response for the requester

getSubscriptionManagerBackend

protected abstract SubscriptionManagerInterfaceForManagers getSubscriptionManagerBackend()

retrieveSubscriptionUUID

protected String retrieveSubscriptionUUID()
Retrieves the subscription's uuid as it was specified in SOAP header. Messages sent to SubscriptionManager by clients always need to specify the uuid.

Returns:
the uuid of the subscription specified in this message's headers. Note: obtaining this doesn't yet make sure that this subscription actually exists.

obtainTicketFromDatabaseOrThrowFault

protected SubscriptionTicket obtainTicketFromDatabaseOrThrowFault(String uuid)
searches the subscription database for a subscription by the given UUID

Parameters:
uuid -
Returns:
the SubscriptionTicket, or throws UnknownSubscription fault if no such subscription exists

Apache CXF API

Apache CXF