/** * Process the pre-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 processPreSecurityInboundHandlerChain(MessageContext messageContext) throws MessageDecodingException { HandlerChainResolver inboundHandlerChainResolver = messageContext.getPreSecurityInboundHandlerChainResolver(); if (inboundHandlerChainResolver != null) { log.debug("Invoking pre-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 pre-SecurityPolicy HandlerException when decoding message: {}", e.getMessage()); throw new MessageDecodingException("Pre-SecurityPolicy Handler exception while decoding message", e); } } }
/** * Process the pre-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 processPreSecurityInboundHandlerChain(MessageContext messageContext) throws MessageDecodingException { HandlerChainResolver inboundHandlerChainResolver = messageContext.getPreSecurityInboundHandlerChainResolver(); if (inboundHandlerChainResolver != null) { log.debug("Invoking pre-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 pre-SecurityPolicy HandlerException when decoding message: {}", e.getMessage()); throw new MessageDecodingException("Pre-SecurityPolicy Handler exception while decoding message", e); } } }