Class JcloudsPayloadConverter
- java.lang.Object
-
- org.apache.camel.component.jclouds.JcloudsPayloadConverter
-
@Converter(generateLoader=true) public final class JcloudsPayloadConverter extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> 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(String str)
static org.jclouds.io.Payload
toPayload(String str, org.apache.camel.Exchange ex)
static org.jclouds.io.Payload
toPayload(StreamSource source, org.apache.camel.Exchange exchange)
static org.jclouds.io.Payload
toPayload(org.apache.camel.util.xml.StreamSourceCache cache, org.apache.camel.Exchange exchange)
-
-
-
Method Detail
-
toPayload
@Converter public static org.jclouds.io.Payload toPayload(byte[] bytes)
-
toPayload
@Converter public static org.jclouds.io.Payload toPayload(String str, org.apache.camel.Exchange ex) throws UnsupportedEncodingException
- Throws:
UnsupportedEncodingException
-
toPayload
public static org.jclouds.io.Payload toPayload(String str) throws UnsupportedEncodingException
- Throws:
UnsupportedEncodingException
-
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.util.xml.StreamSourceCache cache, org.apache.camel.Exchange exchange) throws IOException
- Throws:
IOException
-
-