|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcgl.narada.wsinfra.WsProcessor
cgl.narada.wsinfra.wse.impl.WseSourceProcessor
public class WseSourceProcessor
This class which implements the interface that encapsulates the behavior of a WS-Eventing source node.
| Method Summary | |
|---|---|
String |
cancelSubscription(String subscriptionId,
String additionalReason)
A source can also facilitate cancellation of subscriptions that aren't yet slated to expire. |
static WseSourceProcessor |
getInstance()
|
WsMessageFlow |
getMessageFlow()
Gets the message flow which the processor should use. |
SubscriptionManagement |
getSubscriptionManagement()
Retrieves the subscription management |
void |
issueSubscriptionEnd(String subscriptionId,
String status,
String reason)
|
void |
onSubscriptionExpiry(SubscriptionEntry expiredEntry)
Method that is called when one of the managed subscriptions expires |
boolean |
processExchange(EnvelopeDocument envelopeDocument,
int direction)
Process the exchange. |
void |
processNotification(EnvelopeDocument envelopeDocument,
AddressingHeaders addressingHeaders)
This method is used to ensure the dissemination of a notification to registered subscriptions. |
SubscribeResponseDocument |
processSubscribeRequest(SubscribeDocument subscribeDocument)
The method to process a SubscriptionRequest issued by a Sink. |
void |
processSubscriptionRenewal(EnvelopeDocument envelopeDocument,
AddressingHeaders addressingHeaders)
This method is used to update the subscription tables maintained at the source. |
void |
processUnsubscribe(EnvelopeDocument envelopeDocument,
AddressingHeaders addressingHeaders)
This method is used to update the subscription tables maintained at the source. |
void |
setMessageFlow(WsMessageFlow wsMessageFlow)
Sets the message flow which the processor should use |
void |
setSourceEPR(EndpointReferenceType sourceEpr)
|
void |
setSubscriptionManagerEPR(EndpointReferenceType subscriptionManagerEpr)
|
void |
terminateServices()
This is called by the source when it is doing a planned shutdown of the event source. |
| Methods inherited from class cgl.narada.wsinfra.WsProcessor |
|---|
enrouteToApplication, enrouteToNetwork, enrouteToNetwork, isFault, manageFaultException, processExchange, processExchange |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static WseSourceProcessor getInstance()
public SubscriptionManagement getSubscriptionManagement()
public void setMessageFlow(WsMessageFlow wsMessageFlow)
throws DeploymentException
setMessageFlow in class WsProcessorDeploymentExceptionpublic WsMessageFlow getMessageFlow()
getMessageFlow in class WsProcessorpublic void setSourceEPR(EndpointReferenceType sourceEpr)
public void setSubscriptionManagerEPR(EndpointReferenceType subscriptionManagerEpr)
public boolean processExchange(EnvelopeDocument envelopeDocument,
int direction)
throws UnknownExchangeException,
IncorrectExchangeException,
MessageFlowException,
ProcessingException
processExchange in class WsProcessorUnknownExchangeException
IncorrectExchangeException
MessageFlowException
ProcessingException
public SubscribeResponseDocument processSubscribeRequest(SubscribeDocument subscribeDocument)
throws WsFaultException,
ProcessingException
processSubscribeRequest in interface WseSourceWsFaultException
ProcessingException
public void processSubscriptionRenewal(EnvelopeDocument envelopeDocument,
AddressingHeaders addressingHeaders)
throws WsFaultException
processSubscriptionRenewal in interface WseSourceWsFaultException
public void processUnsubscribe(EnvelopeDocument envelopeDocument,
AddressingHeaders addressingHeaders)
throws WsFaultException
processUnsubscribe in interface WseSourceWsFaultException
public void processNotification(EnvelopeDocument envelopeDocument,
AddressingHeaders addressingHeaders)
throws ProcessingException,
MessageFlowException
processNotification in interface WseSourceProcessingException
MessageFlowExceptionpublic void onSubscriptionExpiry(SubscriptionEntry expiredEntry)
onSubscriptionExpiry in interface SubscriptionExpiryListener
public String cancelSubscription(String subscriptionId,
String additionalReason)
public void terminateServices()
public void issueSubscriptionEnd(String subscriptionId,
String status,
String reason)
throws ProcessingException,
MessageFlowException
ProcessingException
MessageFlowException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||