Class CxfConverter
- java.lang.Object
-
- org.apache.camel.component.cxf.converter.CxfConverter
-
@Converter(generateLoader=true) public final class CxfConverter extends Object
The Type Converters for CXF related types' converting .
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description 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.static InputStream
soapMessageToInputStream(SOAPMessage soapMessage, org.apache.camel.Exchange exchange)
static String
soapMessageToString(SOAPMessage soapMessage, org.apache.camel.Exchange exchange)
static Object[]
toArray(Object object)
static DataFormat
toDataFormat(String name)
static InputStream
toInputStream(javax.ws.rs.core.Response response, org.apache.camel.Exchange exchange)
static org.apache.cxf.message.MessageContentsList
toMessageContentsList(Object[] array)
static QName
toQName(String qname)
-
-
-
Method Detail
-
toMessageContentsList
@Converter public static org.apache.cxf.message.MessageContentsList toMessageContentsList(Object[] array)
-
soapMessageToString
@Converter public static String soapMessageToString(SOAPMessage soapMessage, org.apache.camel.Exchange exchange) throws SOAPException, IOException
- Throws:
SOAPException
IOException
-
soapMessageToInputStream
@Converter public static InputStream soapMessageToInputStream(SOAPMessage soapMessage, org.apache.camel.Exchange exchange) throws SOAPException, IOException
- Throws:
SOAPException
IOException
-
toDataFormat
@Converter public static DataFormat toDataFormat(String name)
-
toInputStream
@Converter public static InputStream toInputStream(javax.ws.rs.core.Response response, org.apache.camel.Exchange exchange)
-
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.- 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
-
-