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 TypeMethodDescriptionvoiddecode()Decode message data from the source and store it so that it may be retrieved viaMessageDecoder.getMessageContext().protected abstract voiddoDecode()Performs the decoding logic.protected voidGet the decoded message context.protected voidsetMessageContext(MessageContext context) Set the message context.Methods inherited from class net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
destroy, doInitialize, initialize, isDestroyed, isInitializedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.shibboleth.utilities.java.support.component.DestructableComponent
destroy, isDestroyedMethods 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:
getMessageContextin 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:
decodein interfaceMessageDecoder- Throws:
MessageDecodingException- if there is a problem decoding the message context
-
doDestroy
protected void doDestroy()- Overrides:
doDestroyin 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
-