|
||||||||||
| 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.wsrm.impl.WsrmSinkNodeHelper
This interfaces outlines the functionality of a WSRM sink.
| Method Summary | |
WsrmSequencePolicies |
addPolicyAttachment(EnvelopeDocument envelopeDocument,
String sequenceIdentifier)
Adds a policyAttachment to the header of the provide envelope. |
WsrmSequenceInfo |
checkAckRequestedElementForProblems(AddressingHeaders addressingHeaders,
AckRequestedDocument ackRequestedDoc)
Upon receipt of a sequence this method checks to see if any problems exist within the element. |
void |
checkExchangeType(WsrmExchangeInfo wsrmExchangeInfo,
int direction)
Checks an exchange type for validity. |
boolean |
checkIfDuplicate(SequenceDocument sequenceDocument)
Checks to see if there is already a widget that has been stored corresponding to messageNumber and sequenceIdentifier encapsulated within the [wsrm:SequenceDocument]. |
WsrmSequenceInfo |
checkSequenceElementForProblems(AddressingHeaders addressingHeaders,
SequenceDocument sequenceDocument)
Upon receipt of a sequence this method checks to see if any problems exist within the element. |
WsrmSequenceInfo |
checkTerminateSequenceElementForProblems(AddressingHeaders addressingHeaders,
TerminateSequenceDocument terminateSequenceDocument)
Upon receipt of a sequence this method checks to see if any problems exist within the element. |
EndpointReferenceType |
getEndpointReference()
|
static WsrmSinkNodeHelper |
getInstance()
|
WsMessageFlow |
getMessageFlow()
Gets the message flow which the processor should use. |
void |
initialize(WsrmStorageService wsrmStorageService)
|
EnvelopeDocument |
prepareCreateSequenceResponseEnvelope(AddressingHeaders addressingHeaders)
Prepares a create sequence response based on the addressing headers contained in the original request. |
EnvelopeDocument |
prepareEnvelopeForAcknowledgement(AddressingHeaders addressingHeaders,
WsrmSequenceInfo wsrmSequenceInfo)
Prepares a SOAP envelope for the acknowledgement based on the specified addressingHeaders (contained within an AckRequested element) and the SequenceIdentifier contained within the WsrmSequenceInfo. |
boolean |
processExchange(EnvelopeDocument envelopeDocument,
int direction)
This is the method which all implementations of the various WS specifications will override. |
void |
setEndpointReference(EndpointReferenceType endpointReference)
Retrieves the endpoint reference associated with this node |
void |
setMessageFlow(WsMessageFlow wsMessageFlow)
Sets the message flow which the processor should use |
void |
throwCreateSequenceRefusedFaultException(AddressingHeaders addressingHeaders,
String additionalReason)
Throws a CreateSequenceRefused Fault exception, if additional reason is not null, it will be added to the default reason element. |
void |
throwInvalidMessageFaultException(String reason,
AddressingHeaders addressingHeaders)
Throws an Invalid MessageFault exception based on the specified parameters |
void |
throwLastMessageNumberExceededFaultException(AddressingHeaders addressingHeaders,
String sequenceIdentifier,
String additionalReason)
Throws a WsFaultException corresponding to the LastMessageNumberExceeded fault. |
void |
throwSequenceTerminatedFaultException(AddressingHeaders addressingHeaders,
String sequenceIdentifier,
String additionalReason)
Throws a WsFaultException corresponding to the sequence terminated fault. |
void |
throwUnknownSequenceFaultException(AddressingHeaders addressingHeaders,
String identifier)
Throws an UnknownSequence Fault exception based on the specified parameters |
| 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 WsrmSinkNodeHelper getInstance()
public boolean processExchange(EnvelopeDocument envelopeDocument,
int direction)
throws UnknownExchangeException,
IncorrectExchangeException,
ProcessingException,
MessageFlowException
WsProcessor
processExchange in class WsProcessorUnknownExchangeException
IncorrectExchangeException
ProcessingException
MessageFlowException
public void setMessageFlow(WsMessageFlow wsMessageFlow)
throws DeploymentException
setMessageFlow in class WsProcessorDeploymentExceptionpublic WsMessageFlow getMessageFlow()
getMessageFlow in class WsProcessor
public void initialize(WsrmStorageService wsrmStorageService)
throws DeploymentException
DeploymentExceptionpublic EndpointReferenceType getEndpointReference()
public void setEndpointReference(EndpointReferenceType endpointReference)
public EnvelopeDocument prepareCreateSequenceResponseEnvelope(AddressingHeaders addressingHeaders)
throws WsFaultException,
ProcessingException,
WsrmStorageException
WsFaultException
ProcessingException
WsrmStorageException
public WsrmSequencePolicies addPolicyAttachment(EnvelopeDocument envelopeDocument,
String sequenceIdentifier)
public WsrmSequenceInfo checkSequenceElementForProblems(AddressingHeaders addressingHeaders,
SequenceDocument sequenceDocument)
throws WsrmStorageException,
WsFaultException
WsrmStorageException
WsFaultException
public boolean checkIfDuplicate(SequenceDocument sequenceDocument)
throws WsrmStorageException
WsrmStorageException
public WsrmSequenceInfo checkAckRequestedElementForProblems(AddressingHeaders addressingHeaders,
AckRequestedDocument ackRequestedDoc)
throws WsrmStorageException,
WsFaultException
WsrmStorageException
WsFaultException
public EnvelopeDocument prepareEnvelopeForAcknowledgement(AddressingHeaders addressingHeaders,
WsrmSequenceInfo wsrmSequenceInfo)
throws WsFaultException,
ProcessingException
WsFaultException
ProcessingException
public WsrmSequenceInfo checkTerminateSequenceElementForProblems(AddressingHeaders addressingHeaders,
TerminateSequenceDocument terminateSequenceDocument)
throws WsrmStorageException,
WsFaultException
WsrmStorageException
WsFaultException
public void throwLastMessageNumberExceededFaultException(AddressingHeaders addressingHeaders,
String sequenceIdentifier,
String additionalReason)
throws WsFaultException
WsFaultException
public void throwSequenceTerminatedFaultException(AddressingHeaders addressingHeaders,
String sequenceIdentifier,
String additionalReason)
throws WsFaultException
WsFaultException
public void throwCreateSequenceRefusedFaultException(AddressingHeaders addressingHeaders,
String additionalReason)
throws WsFaultException
WsFaultException
public void throwInvalidMessageFaultException(String reason,
AddressingHeaders addressingHeaders)
throws WsFaultException
WsFaultException
public void throwUnknownSequenceFaultException(AddressingHeaders addressingHeaders,
String identifier)
throws WsFaultException
WsFaultException
public void checkExchangeType(WsrmExchangeInfo wsrmExchangeInfo,
int direction)
throws UnknownExchangeException,
IncorrectExchangeException
UnknownExchangeException
IncorrectExchangeException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||