Interface FileHandler
-
- All Known Implementing Classes:
DefaultFileHandler
public interface FileHandler
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StreamResponseObjectdeleteFile(java.lang.String channelType, java.lang.String channelId, java.lang.String url)voiddeleteFileAsync(java.lang.String channelType, java.lang.String channelId, java.lang.String url, java.util.function.Consumer<StreamResponseObject> onSuccess, java.util.function.Consumer<StreamException> onError)StreamResponseObjectdeleteImage(java.lang.String channelType, java.lang.String channelId, java.lang.String url)voiddeleteImageAsync(java.lang.String channelType, java.lang.String channelId, java.lang.String url, java.util.function.Consumer<StreamResponseObject> onSuccess, java.util.function.Consumer<StreamException> onError)Message.MessageUploadFileResponseuploadFile(java.lang.String channelType, java.lang.String channelId, java.lang.String userId, java.io.File file, java.lang.String contentType)voiduploadFileAsync(java.lang.String channelType, java.lang.String channelId, java.lang.String userId, java.io.File file, java.lang.String contentType, java.util.function.Consumer<Message.MessageUploadFileResponse> onSuccess, java.util.function.Consumer<StreamException> onError)Message.MessageUploadImageResponseuploadImage(java.lang.String channelType, java.lang.String channelId, java.lang.String userId, java.io.File file, java.lang.String contentType, java.util.List<Message.ImageSizeRequestObject> uploadSizes)voiduploadImageAsync(java.lang.String channelType, java.lang.String channelId, java.lang.String userId, java.io.File file, java.lang.String contentType, java.util.List<Message.ImageSizeRequestObject> uploadSizes, java.util.function.Consumer<Message.MessageUploadImageResponse> onSuccess, java.util.function.Consumer<StreamException> onError)
-
-
-
Method Detail
-
uploadFile
Message.MessageUploadFileResponse uploadFile(@NotNull java.lang.String channelType, @NotNull java.lang.String channelId, @NotNull java.lang.String userId, @Nullable java.io.File file, @Nullable java.lang.String contentType) throws StreamException
- Throws:
StreamException
-
uploadImage
Message.MessageUploadImageResponse uploadImage(@NotNull java.lang.String channelType, @NotNull java.lang.String channelId, @NotNull java.lang.String userId, @Nullable java.io.File file, @Nullable java.lang.String contentType, @Nullable java.util.List<Message.ImageSizeRequestObject> uploadSizes) throws StreamException
- Throws:
StreamException
-
deleteFile
StreamResponseObject deleteFile(@NotNull java.lang.String channelType, @NotNull java.lang.String channelId, @NotNull java.lang.String url) throws StreamException
- Throws:
StreamException
-
deleteImage
StreamResponseObject deleteImage(@NotNull java.lang.String channelType, @NotNull java.lang.String channelId, @NotNull java.lang.String url) throws StreamException
- Throws:
StreamException
-
uploadFileAsync
void uploadFileAsync(@NotNull java.lang.String channelType, @NotNull java.lang.String channelId, @NotNull java.lang.String userId, @Nullable java.io.File file, @Nullable java.lang.String contentType, @Nullable java.util.function.Consumer<Message.MessageUploadFileResponse> onSuccess, @Nullable java.util.function.Consumer<StreamException> onError)
-
uploadImageAsync
void uploadImageAsync(@NotNull java.lang.String channelType, @NotNull java.lang.String channelId, @NotNull java.lang.String userId, @Nullable java.io.File file, @Nullable java.lang.String contentType, @Nullable java.util.List<Message.ImageSizeRequestObject> uploadSizes, @Nullable java.util.function.Consumer<Message.MessageUploadImageResponse> onSuccess, @Nullable java.util.function.Consumer<StreamException> onError)
-
deleteFileAsync
void deleteFileAsync(@NotNull java.lang.String channelType, @NotNull java.lang.String channelId, @NotNull java.lang.String url, @Nullable java.util.function.Consumer<StreamResponseObject> onSuccess, @Nullable java.util.function.Consumer<StreamException> onError)
-
deleteImageAsync
void deleteImageAsync(@NotNull java.lang.String channelType, @NotNull java.lang.String channelId, @NotNull java.lang.String url, @Nullable java.util.function.Consumer<StreamResponseObject> onSuccess, @Nullable java.util.function.Consumer<StreamException> onError)
-
-