private class EncodeMessageTest.MockMessageEncoder extends org.opensaml.messaging.encoder.AbstractMessageEncoder<MockMessage>
MessageEncoder which either returns a
MessageContext with a mock message or throws a MessageDecodingException.| Modifier and Type | Field and Description |
|---|---|
private String |
message
Mock encoded message.
|
private boolean |
throwException
Whether a
MessageEncodingException should be thrown by doEncode(). |
| Modifier | Constructor and Description |
|---|---|
private |
EncodeMessageTest.MockMessageEncoder() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doEncode() |
String |
getEncodedMessage()
Get the encoded message
|
void |
setThrowException(boolean shouldThrowDecodeException)
Sets whether a
MessageEncodingException should be thrown by doEncode(). |
doDestroy, doInitialize, encode, getMessageContext, prepareContext, setMessageContextdestroy, initialize, isDestroyed, isInitializedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitprivate boolean throwException
MessageEncodingException should be thrown by doEncode().private String message
private EncodeMessageTest.MockMessageEncoder()
public String getEncodedMessage()
public void setThrowException(boolean shouldThrowDecodeException)
MessageEncodingException should be thrown by doEncode().shouldThrowDecodeException - true if an exception should be thrown, false if notprotected void doEncode()
throws org.opensaml.messaging.encoder.MessageEncodingException
doEncode in class org.opensaml.messaging.encoder.AbstractMessageEncoder<MockMessage>org.opensaml.messaging.encoder.MessageEncodingExceptionCopyright © 1999–2014. All rights reserved.