public class Uploader extends Object
| Constructor and Description |
|---|
Uploader(Cloudinary cloudinary,
AbstractUploaderStrategy strategy) |
| Modifier and Type | Method and Description |
|---|---|
Map |
addContext(Map context,
String[] publicIds,
Map options)
Add a context keys and values.
|
Map |
addContext(String context,
String[] publicIds,
Map options)
Add a context keys and values.
|
Map |
addTag(String tag,
String[] publicIds,
Map options) |
Map<String,Object> |
buildUploadParams(Map options) |
Map |
callApi(String action,
Map<String,Object> params,
Map options,
Object file) |
protected Map |
callContextApi(Map context,
String command,
String[] publicIds,
Map options) |
protected Map |
callContextApi(String context,
String command,
String[] publicIds,
Map options) |
Map |
callTagsApi(String tag,
String command,
String[] publicIds,
Map options) |
Cloudinary |
cloudinary() |
Map |
createArchive(ArchiveParams params) |
Map |
createArchive(Map options,
String targetFormat) |
Map |
createZip(Map options) |
Map |
destroy(String publicId,
Map options) |
Map |
explicit(String publicId,
Map options) |
Map |
explode(String public_id,
Map options) |
Map |
generate_sprite(String tag,
Map options)
Deprecated.
|
Map |
generateSprite(String tag,
Map options) |
String |
getUploadUrl(Map options) |
String |
imageUploadTag(String field,
Map options,
Map<String,Object> htmlOptions) |
Map |
multi(String tag,
Map options) |
Map |
removeAllContext(String[] publicIds,
Map options)
Remove all custom context from the specified public IDs.
|
Map |
removeAllTags(String[] publicIds,
Map options) |
Map |
removeTag(String tag,
String[] publicIds,
Map options) |
Map |
rename(String fromPublicId,
String toPublicId,
Map options) |
Map |
replaceTag(String tag,
String[] publicIds,
Map options) |
void |
signRequestParams(Map<String,Object> params,
Map options) |
Map |
text(String text,
Map options) |
String |
unsignedImageUploadTag(String field,
String uploadPreset,
Map options,
Map<String,Object> htmlOptions) |
Map |
unsignedUpload(Object file,
String uploadPreset,
Map options) |
Map |
upload(Object file,
Map options) |
Map |
uploadLarge(Object file,
Map options) |
Map |
uploadLarge(Object file,
Map options,
int bufferSize) |
Map |
uploadLargeRaw(Object file,
Map options) |
Map |
uploadLargeRaw(Object file,
Map options,
int bufferSize) |
String |
uploadTagParams(Map options) |
public Uploader(Cloudinary cloudinary, AbstractUploaderStrategy strategy)
public Map callApi(String action, Map<String,Object> params, Map options, Object file) throws IOException
IOExceptionpublic Cloudinary cloudinary()
public Map unsignedUpload(Object file, String uploadPreset, Map options) throws IOException
IOExceptionpublic Map upload(Object file, Map options) throws IOException
IOExceptionpublic Map uploadLargeRaw(Object file, Map options) throws IOException
IOExceptionpublic Map uploadLargeRaw(Object file, Map options, int bufferSize) throws IOException
IOExceptionpublic Map uploadLarge(Object file, Map options) throws IOException
IOExceptionpublic Map uploadLarge(Object file, Map options, int bufferSize) throws IOException
IOExceptionpublic Map destroy(String publicId, Map options) throws IOException
IOExceptionpublic Map rename(String fromPublicId, String toPublicId, Map options) throws IOException
IOExceptionpublic Map explicit(String publicId, Map options) throws IOException
IOException@Deprecated public Map generate_sprite(String tag, Map options) throws IOException
IOExceptionpublic Map generateSprite(String tag, Map options) throws IOException
IOExceptionpublic Map multi(String tag, Map options) throws IOException
IOExceptionpublic Map explode(String public_id, Map options) throws IOException
IOExceptionpublic Map addTag(String tag, String[] publicIds, Map options) throws IOException
IOExceptionpublic Map removeTag(String tag, String[] publicIds, Map options) throws IOException
IOExceptionpublic Map removeAllTags(String[] publicIds, Map options) throws IOException
IOExceptionpublic Map replaceTag(String tag, String[] publicIds, Map options) throws IOException
IOExceptionpublic Map callTagsApi(String tag, String command, String[] publicIds, Map options) throws IOException
IOExceptionpublic Map addContext(Map context, String[] publicIds, Map options) throws IOException
context - a map of key and value. Serialized to "key1=value1|key2=value2"publicIds - the public IDs of the resources to updateoptions - additional options passed to the requestIOExceptionpublic Map addContext(String context, String[] publicIds, Map options) throws IOException
context - Serialized context in the form of "key1=value1|key2=value2"publicIds - the public IDs of the resources to updateoptions - additional options passed to the requestIOExceptionpublic Map removeAllContext(String[] publicIds, Map options) throws IOException
publicIds - the public IDs of the resources to updateoptions - additional options passed to the requestIOExceptionprotected Map callContextApi(Map context, String command, String[] publicIds, Map options) throws IOException
IOExceptionprotected Map callContextApi(String context, String command, String[] publicIds, Map options) throws IOException
IOExceptionpublic Map text(String text, Map options) throws IOException
IOExceptionpublic Map createArchive(Map options, String targetFormat) throws IOException
IOExceptionpublic Map createZip(Map options) throws IOException
IOExceptionpublic Map createArchive(ArchiveParams params) throws IOException
IOExceptionpublic String unsignedImageUploadTag(String field, String uploadPreset, Map options, Map<String,Object> htmlOptions)
Copyright © 2016. All Rights Reserved.