Class HttpSendRequestActionParser

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

public class HttpSendRequestActionParser extends SendMessageActionParser
Since:
2.4
  • Constructor Details

    • HttpSendRequestActionParser

      public HttpSendRequestActionParser()
  • 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 SendMessageActionParser
    • createBeanDefinitionBuilder

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

      protected Element getRequestElement(Element element)
    • getHeadersElement

      protected Element getHeadersElement(Element requestElement)
    • createMessageBuilder

      protected HttpMessageBuilder createMessageBuilder(HttpMessage httpMessage)
      This method is designed to be overridden by subclasses if a custom message builder is required.
    • 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