org.apache.camel.component.cxf.converter
Class CxfConverter

java.lang.Object
  extended by org.apache.camel.component.cxf.converter.CxfConverter

@Converter
public final class CxfConverter
extends Object

The Type Converters for CXF related types' converting .

Version:
$Revision: 16372 $

Method Summary
static
<T> T
convertTo(Class<T> type, Exchange exchange, Object value, TypeConverterRegistry registry)
          Use a fallback type converter so we can convert the embedded list element if the value is MessageContentsList.
static String soapMessageToString(SOAPMessage soapMessage)
           
static Object[] toArray(Object object)
           
static List<Class> toClassesList(String[] classNames)
           
static List<Class> toClassList(String classeString)
           
static DataFormat toDataFormat(String name)
           
static Endpoint toEndpoint(CxfEndpointBeanDefinitionParser.CxfSpringEndpointBean endpointBean)
           
static InputStream toInputStream(javax.ws.rs.core.Response response, Exchange exchange)
           
static org.apache.cxf.message.MessageContentsList toMessageContentsList(Object[] array)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

toMessageContentsList

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

toClassesList

@Converter
public static List<Class> toClassesList(String[] classNames)
                                 throws ClassNotFoundException
Throws:
ClassNotFoundException

toClassList

@Converter
public static List<Class> toClassList(String classeString)
                               throws ClassNotFoundException
Throws:
ClassNotFoundException

toArray

@Converter
public static Object[] toArray(Object object)

soapMessageToString

@Converter
public static String soapMessageToString(SOAPMessage soapMessage)

toEndpoint

@Converter
public static Endpoint toEndpoint(CxfEndpointBeanDefinitionParser.CxfSpringEndpointBean endpointBean)
                           throws Exception
Throws:
Exception

toDataFormat

@Converter
public static DataFormat toDataFormat(String name)

toInputStream

@Converter
public static InputStream toInputStream(javax.ws.rs.core.Response response,
                                                  Exchange exchange)

convertTo

@FallbackConverter
public static <T> T convertTo(Class<T> type,
                                                Exchange exchange,
                                                Object value,
                                                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 convertion 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


Copyright © 2007-2010 IONA Open Source Community. All Rights Reserved.