class DecodeMessageTest.MockMessageDecoder extends org.opensaml.messaging.decoder.AbstractMessageDecoder<MockMessage>
MessageDecoder which either returns a
MessageContext with a mock message or throws a MessageDecodingException.| Modifier and Type | Field and Description |
|---|---|
private MockMessage |
message
The mock message to produce (optional).
|
private boolean |
throwException
Whether a
MessageDecodingException should be thrown by doDecode(). |
| Constructor and Description |
|---|
DecodeMessageTest.MockMessageDecoder(MockMessage mockMessage)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
doDecode() |
void |
setThrowException(boolean shouldThrowDecodeException)
Sets whether a
MessageDecodingException should be thrown by doDecode(). |
decode, doDestroy, getMessageContext, setMessageContextdestroy, doInitialize, initialize, isDestroyed, isInitializedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitprivate boolean throwException
MessageDecodingException should be thrown by doDecode().private MockMessage message
public DecodeMessageTest.MockMessageDecoder(MockMessage mockMessage)
public void setThrowException(boolean shouldThrowDecodeException)
MessageDecodingException should be thrown by doDecode().shouldThrowDecodeException - true if an exception should be thrown, false if notprotected void doDecode()
throws org.opensaml.messaging.decoder.MessageDecodingException
doDecode in class org.opensaml.messaging.decoder.AbstractMessageDecoder<MockMessage>org.opensaml.messaging.decoder.MessageDecodingExceptionCopyright © 1999–2014. All rights reserved.