Class CxfConverter

java.lang.Object
org.apache.camel.component.cxf.jaxrs.CxfConverter

@Converter(generateLoader=true) public final class CxfConverter extends Object
The Type Converters for CXF related types' converting .
  • Method Details

    • toMessageContentsList

      @Converter public static org.apache.cxf.message.MessageContentsList toMessageContentsList(Object[] array)
    • toQName

      @Converter public static QName toQName(String qname)
    • toArray

      @Converter public static Object[] toArray(Object object)
    • 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.SOAPException
      IOException
    • 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.SOAPException
      IOException
    • toDataFormat

      @Converter public static org.apache.camel.component.cxf.common.DataFormat toDataFormat(String name)
    • toInputStream

      @Converter public static InputStream toInputStream(jakarta.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 to
      exchange - optional exchange which can be null
      value - the object to be converted
      registry - type converter registry
      Returns:
      the converted value of the desired type or null if no suitable converter found