|
|||||||||
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.wsr.impl.WsrSourceNodeHelper
public class WsrSourceNodeHelper
Method Summary | |
---|---|
void |
checkExchangeType(WsrExchangeInfo wsrExchangeInfo,
int direction)
|
void |
checkForProblemsInToDocument(AddressingHeaders addressingHeaders)
This method enforces the rule that the [wsa:To] element should be present within a SOAP header element. |
String |
createGroupId()
Generates New GroupId for Destination |
long[] |
createLongArrayFromVector(Vector vector)
create Long Number array from Vector |
RequestDocument |
createRequest(String groupId,
Calendar groupExpiryTime,
GDuration groupMaxIdleDuration,
long sequenceNumber,
boolean isLastMessage,
Calendar messageExpiryTime,
String replyPattern,
String replyTo)
Create Request from specified parameters |
static WsrSourceNodeHelper |
getInstance()
|
WsMessageFlow |
getMessageFlow()
Gets the message flow which the processor should use. |
void |
initialize(WsrStorageService wsrStorageService)
|
boolean |
processAcknowledgements(String groupId,
long[] acks)
process Acknowledgements |
boolean |
processExchange(EnvelopeDocument envelopeDocument,
int direction)
This is the method which all implementations of the various WS specifications will override. |
boolean |
processFault(String groupId,
long sequenceNumber,
QName fault)
Process Faults other than messageProcessingFailure fault |
void |
processMessageProcessingFailureFault(String groupId,
long[] seqNum)
process Message Processing Failure Fault |
void |
processNonSequenceReplyAcknowledgement(Vector nonSequenceReplyAcknowledgementVector)
process the group acknowledgements with single message (Process Non Sequence Reply Acknowledgements |
void |
processNonSequenceReplyFault(Hashtable nonSequenceReplyFault)
process Non sequence Reply Faults other than Message Processing Failure Fault |
void |
processNonSequenceReplyMessageProcessingFailureFault(Vector retransmissionVector)
process Non Sequence Reply Message Processing Failure Fault (It is nothing but it will retransmit the message for the given group |
void |
processSequenceReplyAcknowledgement(Hashtable table)
process the Sequence Reply Acknowledgements |
void |
processSequenceReplyFault(Hashtable sequenceReplyFault)
process sequence Reply Faults other than Message Processing Failure Fault |
void |
processSequenceReplyMessageProcessingFailureFault(Hashtable retransmissionTable)
process Sequence Reply Message Processing Failure Fault (It is nothing but it will retransmit the messages for the given group |
void |
setEndpointReference(EndpointReferenceType endpointReference)
|
void |
setMessageFlow(WsMessageFlow wsMessageFlow)
Sets the message flow which the processor should use |
void |
throwInvalidMessageFaultException(String reason,
AddressingHeaders addressingHeaders)
Throws an Invalid MessageFault exception based on the specified parameters |
void |
throwUnknownGroupFaultException(AddressingHeaders addressingHeaders,
String groupId)
Throws an UnknownGroup 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 void initialize(WsrStorageService wsrStorageService) throws DeploymentException
DeploymentException
public void setMessageFlow(WsMessageFlow wsMessageFlow) throws DeploymentException
setMessageFlow
in class WsProcessor
DeploymentException
public WsMessageFlow getMessageFlow()
getMessageFlow
in class WsProcessor
public static WsrSourceNodeHelper getInstance()
public boolean processExchange(EnvelopeDocument envelopeDocument, int direction) throws UnknownExchangeException, IncorrectExchangeException, ProcessingException, MessageFlowException
WsProcessor
processExchange
in class WsProcessor
UnknownExchangeException
IncorrectExchangeException
ProcessingException
MessageFlowException
public void setEndpointReference(EndpointReferenceType endpointReference)
public void checkExchangeType(WsrExchangeInfo wsrExchangeInfo, int direction) throws UnknownExchangeException, IncorrectExchangeException
UnknownExchangeException
IncorrectExchangeException
public void checkForProblemsInToDocument(AddressingHeaders addressingHeaders) throws WsFaultException
WsFaultException
public void throwInvalidMessageFaultException(String reason, AddressingHeaders addressingHeaders) throws WsFaultException
WsFaultException
public String createGroupId()
public RequestDocument createRequest(String groupId, Calendar groupExpiryTime, GDuration groupMaxIdleDuration, long sequenceNumber, boolean isLastMessage, Calendar messageExpiryTime, String replyPattern, String replyTo)
public void processNonSequenceReplyAcknowledgement(Vector nonSequenceReplyAcknowledgementVector) throws WsrStorageException
WsrStorageException
public void processSequenceReplyAcknowledgement(Hashtable table) throws WsrStorageException
WsrStorageException
public boolean processAcknowledgements(String groupId, long[] acks) throws WsrStorageException
WsrStorageException
public void processNonSequenceReplyMessageProcessingFailureFault(Vector retransmissionVector) throws WsrStorageException, MessageFlowException
WsrStorageException
MessageFlowException
public void processSequenceReplyMessageProcessingFailureFault(Hashtable retransmissionTable) throws WsrStorageException, MessageFlowException
WsrStorageException
MessageFlowException
public void processMessageProcessingFailureFault(String groupId, long[] seqNum) throws WsrStorageException, MessageFlowException
WsrStorageException
MessageFlowException
public void processNonSequenceReplyFault(Hashtable nonSequenceReplyFault) throws WsrStorageException
WsrStorageException
public void processSequenceReplyFault(Hashtable sequenceReplyFault) throws WsrStorageException
WsrStorageException
public boolean processFault(String groupId, long sequenceNumber, QName fault) throws WsrStorageException
WsrStorageException
public long[] createLongArrayFromVector(Vector vector)
public void throwUnknownGroupFaultException(AddressingHeaders addressingHeaders, String groupId) throws WsFaultException
WsFaultException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |