org.ws4d.java.message
Interface MessageDiscarder
public interface MessageDiscarder
Implementations of this interface are queried each time a message is to be
created within SOAP2MessageGenerator
.
Method Summary |
int |
discardMessage(SOAPHeader header,
ProtocolData protocolData)
Returns true in cases where the message with the given SOAP
header and with the associated transport information
described by protocolData should not be further processed
(i.e. it should be discarded immediately). |
NOT_DISCARDED
static final int NOT_DISCARDED
- See Also:
- Constant Field Values
OWN_MESSAGE
static final int OWN_MESSAGE
- See Also:
- Constant Field Values
DUPLICATE_MESSAGE
static final int DUPLICATE_MESSAGE
- See Also:
- Constant Field Values
NOT_RELEVANT_MESSAGE
static final int NOT_RELEVANT_MESSAGE
- See Also:
- Constant Field Values
VERSION_NOT_SUPPORTED
static final int VERSION_NOT_SUPPORTED
- See Also:
- Constant Field Values
OLD_APPSEQUENCE
static final int OLD_APPSEQUENCE
- See Also:
- Constant Field Values
VALIDATION_FAILED
static final int VALIDATION_FAILED
- See Also:
- Constant Field Values
discardMessage
int discardMessage(SOAPHeader header,
ProtocolData protocolData)
- Returns
true
in cases where the message with the given SOAP
header
and with the associated transport information
described by protocolData
should not be further processed
(i.e. it should be discarded immediately).
- Parameters:
header
- the header of the messageprotocolData
- transport-related addressing information attached to
the message with the given header
- Returns:
- whether to discard the message or not
- 0 = message not discarded
- 1 = message discarded because it was an own message send and
received by the framework
- 2 = message discarded because it an earlier version of that
message was already parsed
- 3 = message is not relevant
- 4 = message version not supported
- 5 = old
AppSequence
found