Class AbstractSubscriptionManager
- java.lang.Object
-
- org.apache.cxf.ws.eventing.manager.AbstractSubscriptionManager
-
- All Implemented Interfaces:
SubscriptionManagerEndpoint
public abstract class AbstractSubscriptionManager extends Object implements SubscriptionManagerEndpoint
-
-
Constructor Summary
Constructors Constructor Description AbstractSubscriptionManager()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description GetStatusResponsegetStatusOp(GetStatus body)The GetStatus operation of the Subscription Manager See http://www.w3.org/TR/ws-eventing/#GetStatusprotected abstract SubscriptionManagerInterfaceForManagersgetSubscriptionManagerBackend()protected SubscriptionTicketobtainTicketFromDatabaseOrThrowFault(String uuid)searches the subscription database for a subscription by the given UUIDRenewResponserenewOp(Renew body)The Renew operation of the Subscription Manager See http://www.w3.org/TR/ws-eventing/#Renewprotected StringretrieveSubscriptionUUID()Retrieves the subscription's uuid as it was specified in SOAP header.UnsubscribeResponseunsubscribeOp(Unsubscribe body)The Unsubscribe operation of the Subscription Manager See http://www.w3.org/TR/ws-eventing/#Unsubscribe
-
-
-
Field Detail
-
LOG
protected static final Logger LOG
-
context
protected javax.xml.ws.WebServiceContext context
-
-
Method Detail
-
renewOp
public RenewResponse renewOp(Renew body)
Description copied from interface:SubscriptionManagerEndpointThe Renew operation of the Subscription Manager See http://www.w3.org/TR/ws-eventing/#Renew- Specified by:
renewOpin interfaceSubscriptionManagerEndpoint- 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:SubscriptionManagerEndpointThe GetStatus operation of the Subscription Manager See http://www.w3.org/TR/ws-eventing/#GetStatus- Specified by:
getStatusOpin interfaceSubscriptionManagerEndpoint- 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:SubscriptionManagerEndpointThe Unsubscribe operation of the Subscription Manager See http://www.w3.org/TR/ws-eventing/#Unsubscribe- Specified by:
unsubscribeOpin interfaceSubscriptionManagerEndpoint- 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
-
-