Class StringSourceConverter
- java.lang.Object
-
- org.apache.camel.component.spring.ws.converter.StringSourceConverter
-
@Converter(generateLoader=true) public final class StringSourceConverter extends Object
A helper class to transform to and fromStringSourceimplementations available in both Camel and Spring Webservices. Rationale: most of the time this converter will not be used since both Camel and Spring-WS use the interface abstraction. There is however a chance that you may end up with incompatibleStringSourceimplementations, this converter handles these (corner)cases. Note that conversion options are limited by Spring'sStringSourcesince it's the most simple one. It has just one constructor that accepts a String as input.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.springframework.xml.transform.StringSourcetoStringSourceFromCamel(org.apache.camel.util.xml.StringSource camelStringSource)Converts a Camelorg.apache.camel.converter.jaxp.StringSourceto a Spring-WSStringSourcestatic org.apache.camel.util.xml.StringSourcetoStringSourceFromSpring(org.springframework.xml.transform.StringSource springStringSource)Converts a Spring-WSStringSourceto a Camelorg.apache.camel.converter.jaxp.StringSource
-
-
-
Method Detail
-
toStringSourceFromSpring
@Converter public static org.apache.camel.util.xml.StringSource toStringSourceFromSpring(org.springframework.xml.transform.StringSource springStringSource)
Converts a Spring-WSStringSourceto a Camelorg.apache.camel.converter.jaxp.StringSource
-
toStringSourceFromCamel
@Converter public static org.springframework.xml.transform.StringSource toStringSourceFromCamel(org.apache.camel.util.xml.StringSource camelStringSource)
Converts a Camelorg.apache.camel.converter.jaxp.StringSourceto a Spring-WSStringSource
-
-