Spring Integration

org.springframework.integration.ip.config
Class IpAdapterParserUtils

java.lang.Object
  extended by org.springframework.integration.ip.config.IpAdapterParserUtils

public abstract class IpAdapterParserUtils
extends Object

Utility methods and constants for IP adapter parsers.

Since:
2.0
Author:
Gary Russell

Constructor Summary
IpAdapterParserUtils()
           
 
Method Summary
static void addConstuctorValueIfAttributeDefined(BeanDefinitionBuilder builder, Element element, String attributeName, boolean trueFalse)
          Adds a constructor-arg to the provided bean definition builder with the value of the attribute whose name is provided if that attribute is defined in the given element.
static void addHostAndPortToConstructor(Element element, BeanDefinitionBuilder builder, ParserContext parserContext)
           
static void addOutboundTcpAttributes(Element element, BeanDefinitionBuilder builder)
           
static void addPortToConstructor(Element element, BeanDefinitionBuilder builder, ParserContext parserContext)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IpAdapterParserUtils

public IpAdapterParserUtils()
Method Detail

addConstuctorValueIfAttributeDefined

public static void addConstuctorValueIfAttributeDefined(BeanDefinitionBuilder builder,
                                                        Element element,
                                                        String attributeName,
                                                        boolean trueFalse)
Adds a constructor-arg to the provided bean definition builder with the value of the attribute whose name is provided if that attribute is defined in the given element.

Parameters:
builder - the bean definition builder to be configured
element - the XML element where the attribute should be defined
attributeName - the name of the attribute whose value will be used to populate the property

addHostAndPortToConstructor

public static void addHostAndPortToConstructor(Element element,
                                               BeanDefinitionBuilder builder,
                                               ParserContext parserContext)
Parameters:
element -
builder -
parserContext -

addPortToConstructor

public static void addPortToConstructor(Element element,
                                        BeanDefinitionBuilder builder,
                                        ParserContext parserContext)
Parameters:
element -
builder -
parserContext -

addOutboundTcpAttributes

public static void addOutboundTcpAttributes(Element element,
                                            BeanDefinitionBuilder builder)
Parameters:
element -
builder -

Spring Integration

Copyright © 2010. All Rights Reserved.