org.apache.camel.component.jclouds
Class JcloudsPayloadConverter

java.lang.Object
  extended by org.apache.camel.component.jclouds.JcloudsPayloadConverter

@Converter
public final class JcloudsPayloadConverter
extends Object


Method Summary
static
<T extends org.jclouds.io.Payload>
T
convertTo(Class<T> type, org.apache.camel.Exchange exchange, Object value, org.apache.camel.spi.TypeConverterRegistry registry)
           
protected static org.jclouds.io.Payload setContentMetadata(org.jclouds.io.Payload payload, org.apache.camel.Exchange exchange)
           
static org.jclouds.io.Payload toPayload(byte[] bytes)
           
static org.jclouds.io.Payload toPayload(File file)
           
static org.jclouds.io.Payload toPayload(InputStream is, org.apache.camel.Exchange exchange)
           
static org.jclouds.io.Payload toPayload(org.apache.camel.converter.stream.StreamSourceCache cache, org.apache.camel.Exchange exchange)
           
static org.jclouds.io.Payload toPayload(StreamSource source, org.apache.camel.Exchange exchange)
           
static org.jclouds.io.Payload toPayload(String str)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

toPayload

@Converter
public static org.jclouds.io.Payload toPayload(byte[] bytes)

toPayload

@Converter
public static org.jclouds.io.Payload toPayload(String str)

toPayload

@Converter
public static org.jclouds.io.Payload toPayload(File file)

setContentMetadata

protected static org.jclouds.io.Payload setContentMetadata(org.jclouds.io.Payload payload,
                                                           org.apache.camel.Exchange exchange)

toPayload

@Converter
public static org.jclouds.io.Payload toPayload(InputStream is,
                                                         org.apache.camel.Exchange exchange)
                                        throws IOException
Throws:
IOException

toPayload

@Converter
public static org.jclouds.io.Payload toPayload(StreamSource source,
                                                         org.apache.camel.Exchange exchange)
                                        throws IOException
Throws:
IOException

toPayload

@Converter
public static org.jclouds.io.Payload toPayload(org.apache.camel.converter.stream.StreamSourceCache cache,
                                                         org.apache.camel.Exchange exchange)
                                        throws IOException
Throws:
IOException

convertTo

@FallbackConverter
public static <T extends org.jclouds.io.Payload> T convertTo(Class<T> type,
                                                                               org.apache.camel.Exchange exchange,
                                                                               Object value,
                                                                               org.apache.camel.spi.TypeConverterRegistry registry)
                                                  throws IOException
Throws:
IOException


Apache Camel