Class HttpReceiveResponseActionParser

All Implemented Interfaces:
org.springframework.beans.factory.xml.BeanDefinitionParser

public class HttpReceiveResponseActionParser extends ReceiveMessageActionParser
Since:
2.4
  • Constructor Details

    • HttpReceiveResponseActionParser

      public HttpReceiveResponseActionParser()
  • Method Details

    • parse

      public org.springframework.beans.factory.config.BeanDefinition parse(Element element, org.springframework.beans.factory.xml.ParserContext parserContext)
      Specified by:
      parse in interface org.springframework.beans.factory.xml.BeanDefinitionParser
      Overrides:
      parse in class ReceiveMessageActionParser
    • createBeanDefinitionBuilder

      protected org.springframework.beans.factory.support.BeanDefinitionBuilder createBeanDefinitionBuilder(Element element, org.springframework.beans.factory.xml.ParserContext parserContext)
    • createMessageBuilder

      protected HttpMessageBuilder createMessageBuilder(HttpMessage httpMessage)
    • validateEndpointConfiguration

      protected void validateEndpointConfiguration(Element element)
      Validates the endpoint configuration for the given XML element.

      This method is designed to be overridden by subclasses if custom validation logic is required. By default, it checks whether the 'uri' or 'client' attributes are present in the element. If neither is found, it throws a BeanCreationException indicating an invalid test action definition.

      Parameters:
      element - the XML element representing the endpoint configuration to validate
      Throws:
      org.springframework.beans.factory.BeanCreationException - if neither 'uri' nor 'client' attributes are present