org.opensaml.ws.message.handler
Class BaseHandlerChainAwareMessageDecoder

java.lang.Object
  extended by org.opensaml.ws.message.decoder.BaseMessageDecoder
      extended by org.opensaml.ws.message.handler.BaseHandlerChainAwareMessageDecoder
All Implemented Interfaces:
MessageDecoder, HandlerChainAware
Direct Known Subclasses:
SOAP11Decoder

public abstract class BaseHandlerChainAwareMessageDecoder
extends BaseMessageDecoder
implements HandlerChainAware

Base class for message decoders which are capable of processing the message context's inbound HandlerChain.


Constructor Summary
BaseHandlerChainAwareMessageDecoder()
          Constructor.
BaseHandlerChainAwareMessageDecoder(org.opensaml.xml.parse.ParserPool pool)
          Constructor.
 
Method Summary
 void decode(MessageContext messageContext)
          Decodes a message in a binding specific manner.
protected  void invokeHandlerChain(HandlerChain handlerChain, MessageContext messageContext)
          Invoke a handler chain on the specified message context.
protected  void processPostSecurityInboundHandlerChain(MessageContext messageContext)
          Process the post-SecurityPolicy inbound HandlerChain for the message context, if any.
protected  void processPreSecurityInboundHandlerChain(MessageContext messageContext)
          Process the pre-SecurityPolicy inbound HandlerChain for the message context, if any.
 
Methods inherited from class org.opensaml.ws.message.decoder.BaseMessageDecoder
doDecode, getParserPool, logDecodedMessage, processSecurityPolicy, setParserPool, unmarshallMessage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseHandlerChainAwareMessageDecoder

public BaseHandlerChainAwareMessageDecoder()
Constructor.


BaseHandlerChainAwareMessageDecoder

public BaseHandlerChainAwareMessageDecoder(org.opensaml.xml.parse.ParserPool pool)
Constructor.

Parameters:
pool - parser pool used to deserialize messages
Method Detail

decode

public void decode(MessageContext messageContext)
            throws MessageDecodingException,
                   org.opensaml.xml.security.SecurityException
Decodes a message in a binding specific manner.

Specified by:
decode in interface MessageDecoder
Overrides:
decode in class BaseMessageDecoder
Parameters:
messageContext - current message context
Throws:
MessageDecodingException - thrown if the message can not be decoded
org.opensaml.xml.security.SecurityException - thrown if the decoded message does not meet the required security constraints

processPreSecurityInboundHandlerChain

protected void processPreSecurityInboundHandlerChain(MessageContext messageContext)
                                              throws MessageDecodingException
Process the pre-SecurityPolicy inbound HandlerChain for the message context, if any.

Parameters:
messageContext - the message context to process
Throws:
MessageDecodingException - thrown if a handler indicates a problem handling the message

processPostSecurityInboundHandlerChain

protected void processPostSecurityInboundHandlerChain(MessageContext messageContext)
                                               throws MessageDecodingException
Process the post-SecurityPolicy inbound HandlerChain for the message context, if any.

Parameters:
messageContext - the message context to process
Throws:
MessageDecodingException - thrown if a handler indicates a problem handling the message

invokeHandlerChain

protected void invokeHandlerChain(HandlerChain handlerChain,
                                  MessageContext messageContext)
                           throws HandlerException
Invoke a handler chain on the specified message context.

Parameters:
handlerChain - the handle chain to invoke
messageContext - the message context to process
Throws:
HandlerException - if handler chain encountered a problem handling the message context


Copyright © 2006-2013 Internet2. All Rights Reserved.