Package org.opensaml.messaging.decoder
Class AbstractMessageDecoder
java.lang.Object
net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
org.opensaml.messaging.decoder.AbstractMessageDecoder
- All Implemented Interfaces:
Component
,DestructableComponent
,InitializableComponent
,UnmodifiableComponent
,MessageDecoder
- Direct Known Subclasses:
AbstractHttpClientResponseMessageDecoder
,AbstractHttpServletRequestMessageDecoder
public abstract class AbstractMessageDecoder
extends AbstractInitializableComponent
implements MessageDecoder, UnmodifiableComponent
Abstract message decoder.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
decode()
Decode message data from the source and store it so that it may be retrieved viaMessageDecoder.getMessageContext()
.protected abstract void
doDecode()
Performs the decoding logic.protected void
Get the decoded message context.protected void
setMessageContext
(MessageContext context) Set the message context.Methods inherited from class net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
destroy, doInitialize, initialize, isDestroyed, isInitialized
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.shibboleth.utilities.java.support.component.DestructableComponent
destroy, isDestroyed
Methods inherited from interface net.shibboleth.utilities.java.support.component.InitializableComponent
initialize, isInitialized
-
Field Details
-
messageContext
Message context.
-
-
Constructor Details
-
AbstractMessageDecoder
public AbstractMessageDecoder()
-
-
Method Details
-
getMessageContext
Get the decoded message context.- Specified by:
getMessageContext
in interfaceMessageDecoder
- Returns:
- the decoded message context
-
setMessageContext
Set the message context.- Parameters:
context
- the message context
-
decode
Decode message data from the source and store it so that it may be retrieved viaMessageDecoder.getMessageContext()
.- Specified by:
decode
in interfaceMessageDecoder
- Throws:
MessageDecodingException
- if there is a problem decoding the message context
-
doDestroy
protected void doDestroy()- Overrides:
doDestroy
in classAbstractInitializableComponent
-
doDecode
Performs the decoding logic. By the time this is called, this decoder has already been initialized and checked to ensure that it has not been destroyed.- Throws:
MessageDecodingException
- thrown if there is a problem decoding the message
-