uploader

Single interface for different storage services

License

License

GroupId

GroupId

com.aerse
ArtifactId

ArtifactId

uploader
Last Version

Last Version

1.17
Release Date

Release Date

Type

Type

jar
Description

Description

uploader
Single interface for different storage services
Project URL

Project URL

https://github.com/dernasherbrezon/uploader
Source Code Management

Source Code Management

https://github.com/dernasherbrezon/uploader

Download uploader

How to add to project

<!-- https://jarcasting.com/artifacts/com.aerse/uploader/ -->
<dependency>
    <groupId>com.aerse</groupId>
    <artifactId>uploader</artifactId>
    <version>1.17</version>
</dependency>
// https://jarcasting.com/artifacts/com.aerse/uploader/
implementation 'com.aerse:uploader:1.17'
// https://jarcasting.com/artifacts/com.aerse/uploader/
implementation ("com.aerse:uploader:1.17")
'com.aerse:uploader:jar:1.17'
<dependency org="com.aerse" name="uploader" rev="1.17">
  <artifact name="uploader" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.aerse', module='uploader', version='1.17')
)
libraryDependencies += "com.aerse" % "uploader" % "1.17"
[com.aerse/uploader "1.17"]

Dependencies

compile (5)

Group / Artifact Type Version
commons-io : commons-io jar 2.0.1
org.apache.httpcomponents : httpclient jar 4.5.6
com.google.code.gson : gson jar 2.5
org.slf4j : slf4j-api jar 1.7.12
org.slf4j : jcl-over-slf4j jar 1.7.12

test (2)

Group / Artifact Type Version
junit : junit jar 4.10
org.slf4j : slf4j-log4j12 jar 1.7.12

Project Modules

There are no modules declared in this project.

About Build Status Quality Gate Status

Single interface for objects storage services. Currently supported:

  • Selectel
  • File system. Used mostly in dev

Features

  • Native support for JDK11. Native httpclient and JDK11 features
  • Lightweight. Depends only on minimal-json and slf4j-api
  • Retry requests

Usage

  1. Add maven dependency:
<dependency>
	<groupId>ru.r2cloud</groupId>
	<artifactId>ossClient</artifactId>
	<version>2.0</version>
</dependency>
  1. Instantiate OssClient:
SelectelOssClient client = new SelectelOssClient();
client.authUrl = "https://api.selcdn.ru/auth/v1.0";
client.containerName = "container";
client.retries = 3;
client.retryTimeoutMillis = 10000;
client.timeout = 10000;
client.user = "user";
client.key = "password";
client.start();
  1. Upload:
client.submit(file, "/v1/subfolder/file.jpg");

Implementation notes

  • Not all Openstack swift methods supported

Versions

Version
1.17
1.16
1.15
1.14
1.13
1.8