org.apache.camel.component.cxf.converter
Class CxfConverter
java.lang.Object
org.apache.camel.component.cxf.converter.CxfConverter
@Converter
public final class CxfConverter
- extends java.lang.Object
The Type Converters
for CXF related types' converting .
- Version:
- $Revision$
|
Method Summary |
static
|
convertTo(java.lang.Class<T> type,
org.apache.camel.Exchange exchange,
java.lang.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 java.lang.String |
soapMessageToString(javax.xml.soap.SOAPMessage soapMessage)
|
static java.lang.Object[] |
toArray(java.lang.Object object)
|
static java.util.List<java.lang.Class> |
toClassesList(java.lang.String[] classNames)
|
static java.util.List<java.lang.Class> |
toClassList(java.lang.String classeString)
|
static DataFormat |
toDataFormat(java.lang.String name)
|
static org.apache.camel.Endpoint |
toEndpoint(CxfEndpointBeanDefinitionParser.CxfSpringEndpointBean endpointBean)
|
static java.io.InputStream |
toInputStream(javax.ws.rs.core.Response response,
org.apache.camel.Exchange exchange)
|
static org.apache.cxf.message.MessageContentsList |
toMessageContentsList(java.lang.Object[] array)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
toMessageContentsList
@Converter
public static org.apache.cxf.message.MessageContentsList toMessageContentsList(java.lang.Object[] array)
toClassesList
@Converter
public static java.util.List<java.lang.Class> toClassesList(java.lang.String[] classNames)
throws java.lang.ClassNotFoundException
- Throws:
java.lang.ClassNotFoundException
toClassList
@Converter
public static java.util.List<java.lang.Class> toClassList(java.lang.String classeString)
throws java.lang.ClassNotFoundException
- Throws:
java.lang.ClassNotFoundException
toArray
@Converter
public static java.lang.Object[] toArray(java.lang.Object object)
soapMessageToString
@Converter
public static java.lang.String soapMessageToString(javax.xml.soap.SOAPMessage soapMessage)
toEndpoint
@Converter
public static org.apache.camel.Endpoint toEndpoint(CxfEndpointBeanDefinitionParser.CxfSpringEndpointBean endpointBean)
throws java.lang.Exception
- Throws:
java.lang.Exception
toDataFormat
@Converter
public static DataFormat toDataFormat(java.lang.String name)
toInputStream
@Converter
public static java.io.InputStream toInputStream(javax.ws.rs.core.Response response,
org.apache.camel.Exchange exchange)
convertTo
@FallbackConverter
public static <T> T convertTo(java.lang.Class<T> type,
org.apache.camel.Exchange exchange,
java.lang.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
Apache CAMEL