@Converter public final class JcloudsPayloadConverter extends Object
Modifier and Type | Method and Description |
---|---|
static <T extends org.jclouds.io.Payload> |
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) |
static org.jclouds.io.Payload |
toPayload(String str,
org.apache.camel.Exchange ex) |
@Converter public static org.jclouds.io.Payload toPayload(byte[] bytes)
@Converter public static org.jclouds.io.Payload toPayload(String str, org.apache.camel.Exchange ex) throws UnsupportedEncodingException
UnsupportedEncodingException
public static org.jclouds.io.Payload toPayload(String str) throws UnsupportedEncodingException
UnsupportedEncodingException
@Converter public static org.jclouds.io.Payload toPayload(File file)
protected static org.jclouds.io.Payload setContentMetadata(org.jclouds.io.Payload payload, org.apache.camel.Exchange exchange)
@Converter public static org.jclouds.io.Payload toPayload(InputStream is, org.apache.camel.Exchange exchange) throws IOException
IOException
@Converter public static org.jclouds.io.Payload toPayload(StreamSource source, org.apache.camel.Exchange exchange) throws IOException
IOException
@Converter public static org.jclouds.io.Payload toPayload(org.apache.camel.converter.stream.StreamSourceCache cache, org.apache.camel.Exchange exchange) throws IOException
IOException
@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
IOException
Apache Camel