Class JcloudsPayloadConverter


  • @Converter(generateLoader=true)
    public final class JcloudsPayloadConverter
    extends Object
    • Method Detail

      • toPayload

        @Converter
        public static org.jclouds.io.Payload toPayload​(byte[] bytes)
      • 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
      • convertTo

        @Converter(fallback=true)
        public static <T> T convertTo​(Class<T> type,
                                      org.apache.camel.Exchange exchange,
                                      Object value,
                                      org.apache.camel.spi.TypeConverterRegistry registry)