Class GoogleDriveFilesConverter


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

      • genericFileToGoogleDriveFile

        @Converter
        public static com.google.api.services.drive.model.File genericFileToGoogleDriveFile​(org.apache.camel.component.file.GenericFile<?> file,
                                                                                            org.apache.camel.Exchange exchange)
                                                                                     throws Exception
        Throws:
        Exception
      • download

        @Converter
        public static InputStream download​(com.google.api.services.drive.model.File fileMetadata,
                                           org.apache.camel.Exchange exchange)
                                    throws Exception
        Throws:
        Exception
      • downloadContentAsString

        @Converter
        public static String downloadContentAsString​(com.google.api.services.drive.model.File fileMetadata,
                                                     org.apache.camel.Exchange exchange)
                                              throws Exception
        Throws:
        Exception
      • genericStringToChildReference

        @Converter
        public static com.google.api.services.drive.model.ChildReference genericStringToChildReference​(String payload,
                                                                                                       org.apache.camel.Exchange exchange)
                                                                                                throws Exception
        Throws:
        Exception