Class CxfConverter
java.lang.Object
org.apache.camel.component.cxf.converter.CxfConverter
The Type Converters for CXF related types' converting .
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> TconvertTo(Class<T> type, org.apache.camel.Exchange exchange, Object value, org.apache.camel.spi.TypeConverterRegistry registry) Use a fallback type converter so we can convert the embedded list element if the value is MessageContentsList.static InputStreamsoapMessageToInputStream(jakarta.xml.soap.SOAPMessage soapMessage, org.apache.camel.Exchange exchange) static StringsoapMessageToString(jakarta.xml.soap.SOAPMessage soapMessage, org.apache.camel.Exchange exchange) static Object[]static DataFormattoDataFormat(String name) static org.apache.cxf.message.MessageContentsListtoMessageContentsList(Object[] array) static QName
-
Method Details
-
toMessageContentsList
@Converter public static org.apache.cxf.message.MessageContentsList toMessageContentsList(Object[] array) -
toQName
-
toArray
-
soapMessageToString
@Converter public static String soapMessageToString(jakarta.xml.soap.SOAPMessage soapMessage, org.apache.camel.Exchange exchange) throws jakarta.xml.soap.SOAPException, IOException - Throws:
jakarta.xml.soap.SOAPExceptionIOException
-
soapMessageToInputStream
@Converter public static InputStream soapMessageToInputStream(jakarta.xml.soap.SOAPMessage soapMessage, org.apache.camel.Exchange exchange) throws jakarta.xml.soap.SOAPException, IOException - Throws:
jakarta.xml.soap.SOAPExceptionIOException
-
toDataFormat
-
convertTo
@Converter(fallback=true) public static <T> T convertTo(Class<T> type, org.apache.camel.Exchange exchange, Object value, org.apache.camel.spi.TypeConverterRegistry registry) Use a fallback type converter so we can convert the embedded list element if the value is MessageContentsList. The algorithm of this converter finds the first non-null list element from the list and applies conversion to the list element if can determine this MessageContentsList is used in CXF context(first element is the return value while others are Holders).- Parameters:
type- the desired type to be converted toexchange- optional exchange which can be nullvalue- the object to be convertedregistry- type converter registry- Returns:
- the converted value of the desired type or null if no suitable converter found
-