/** * Process the post-SecurityPolicy inbound {@link HandlerChain} for the message context, if any. * * @param messageContext the message context to process * @throws MessageDecodingException thrown if a handler indicates a problem handling the message */ protected void processPostSecurityInboundHandlerChain(MessageContext messageContext) throws MessageDecodingException { HandlerChainResolver inboundHandlerChainResolver = messageContext.getPostSecurityInboundHandlerChainResolver(); if (inboundHandlerChainResolver != null) { log.debug("Invoking post-SecurityPolicy inbound handler chain on message context"); try { for (HandlerChain inboundHandlerChain : inboundHandlerChainResolver.resolve(messageContext)) { if (inboundHandlerChain != null) { invokeHandlerChain(inboundHandlerChain, messageContext); } } } catch (HandlerException e) { log.error("Encountered post-SecurityPolicy HandlerException when decoding message: {}", e.getMessage()); throw new MessageDecodingException("Handler exception while decoding message", e); } } }
/** * Process the post-SecurityPolicy inbound {@link HandlerChain} for the message context, if any. * * @param messageContext the message context to process * @throws MessageDecodingException thrown if a handler indicates a problem handling the message */ protected void processPostSecurityInboundHandlerChain(MessageContext messageContext) throws MessageDecodingException { HandlerChainResolver inboundHandlerChainResolver = messageContext.getPostSecurityInboundHandlerChainResolver(); if (inboundHandlerChainResolver != null) { log.debug("Invoking post-SecurityPolicy inbound handler chain on message context"); try { for (HandlerChain inboundHandlerChain : inboundHandlerChainResolver.resolve(messageContext)) { if (inboundHandlerChain != null) { invokeHandlerChain(inboundHandlerChain, messageContext); } } } catch (HandlerException e) { log.error("Encountered post-SecurityPolicy HandlerException when decoding message: {}", e.getMessage()); throw new MessageDecodingException("Handler exception while decoding message", e); } } }