Class AbstractMessageDecoder

  • All Implemented Interfaces:
    net.shibboleth.utilities.java.support.component.Component, net.shibboleth.utilities.java.support.component.DestructableComponent, net.shibboleth.utilities.java.support.component.InitializableComponent, net.shibboleth.utilities.java.support.component.UnmodifiableComponent, MessageDecoder
    Direct Known Subclasses:
    AbstractHttpClientResponseMessageDecoder, AbstractHttpServletRequestMessageDecoder

    public abstract class AbstractMessageDecoder
    extends net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
    implements MessageDecoder, net.shibboleth.utilities.java.support.component.UnmodifiableComponent
    Abstract message decoder.
    • Field Detail

      • messageContext

        private MessageContext messageContext
        Message context.
    • Constructor Detail

      • AbstractMessageDecoder

        public AbstractMessageDecoder()
    • Method Detail

      • setMessageContext

        protected void setMessageContext​(MessageContext context)
        Set the message context.
        Parameters:
        context - the message context
      • doDestroy

        protected void doDestroy()
        Overrides:
        doDestroy in class net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
      • doDecode

        protected abstract void doDecode()
                                  throws MessageDecodingException
        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