Skip to content

Commit fb61e11

Browse files
committed
feat: 1.0.0-2.1-SNAPSHOT release
1 parent f125556 commit fb61e11

17 files changed

+27
-28
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# tus-java-server
44
This library can be used to enable resumable (and potentially asynchronous) file uploads in any Java web application. This allows the users of your application to upload large files over slow and unreliable internet connections. The ability to pause or resume a file upload (after a connection loss or reset) is achieved by implementing the open file upload protocol tus (https://tus.io/). This library implements the server-side of the tus v1.0.0 protocol with [all optional extensions](#tus-protocol-extensions).
55

6-
The Javadoc of this library can be found at https://tus.desair.me/. The following Java versions are supported: 7, 8, 9, 10 and 11.
6+
The Javadoc of this library can be found at https://tus.desair.me/. The following Java versions are supported: 8, 9, 10 and 11.
77

88
## Quick Start and Examples
99
The tus-java-server library only depends on Java Servlet API 3.1 and some Apache Commons utility libraries. This means that (in theory) you can use this library on any modern Java Web Application server like Tomcat, JBoss, Jetty... By default all uploaded data and information is stored on the file system of the application server (and currently this is the only option, see [configuration section](#usage-and-configuration)).

pom.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
<groupId>me.desair.tus</groupId>
77
<artifactId>tus-java-server</artifactId>
8-
<version>1.0.0-2.1</version>
8+
<version>1.0.0-2.1-SNAPSHOT</version>
99
<packaging>jar</packaging>
1010

1111
<name>${project.groupId}:${project.artifactId}</name>
@@ -17,8 +17,8 @@
1717

1818
<properties>
1919
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
20-
<maven.compiler.source>1.7</maven.compiler.source>
21-
<maven.compiler.target>1.7</maven.compiler.target>
20+
<maven.compiler.source>1.8</maven.compiler.source>
21+
<maven.compiler.target>1.8</maven.compiler.target>
2222
</properties>
2323

2424
<dependencies>
@@ -448,7 +448,7 @@
448448

449449
<scm>
450450
<connection>scm:git:https://github.com/tomdesair/tus-java-server.git</connection>
451-
<developerConnection>scm:git:ssh://github.com:tomdesair/tus-java-server.git</developerConnection>
451+
<developerConnection>scm:git:ssh://git@github.com/tomdesair/tus-java-server.git</developerConnection>
452452
<url>https://github.com/tomdesair/tus-java-server/tree/master</url>
453453
</scm>
454454

src/main/java/me/desair/tus/server/concatenation/ConcatenationHeadRequestHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
* concatenation has been successfully finished. After successful concatenation, the Upload-Offset and
1919
* Upload-Length MUST be set and their values MUST be equal. The value of the Upload-Offset header before
2020
* concatenation is not defined for a upload.
21-
* <p/>
21+
* <br>
2222
* The response to a HEAD request for a partial upload MUST contain the Upload-Offset header. Response to HEAD
2323
* request against partial or upload MUST include the Upload-Concat header and its value as received in
2424
* the upload creation request.

src/main/java/me/desair/tus/server/core/CoreHeadRequestHandler.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@
1414
import me.desair.tus.server.util.TusServletResponse;
1515

1616
/** A HEAD request is used to determine the offset at which the upload should be continued.
17-
* <p/>
17+
* <br>
1818
* The Server MUST always include the Upload-Offset header in the response for a HEAD request,
1919
* even if the offset is 0, or the upload is already considered completed. If the size of the upload is known,
2020
* the Server MUST include the Upload-Length header in the response.
21-
* <p/>
21+
* <br>
2222
* The Server MUST prevent the client and/or proxies from caching the response by adding
2323
* the Cache-Control: no-store header to the response.
2424
*/

src/main/java/me/desair/tus/server/core/CorePatchRequestHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
/**
2020
* The Server SHOULD accept PATCH requests against any upload URL and apply the bytes contained in the message at
2121
* the given offset specified by the Upload-Offset header.
22-
* <p/>
22+
* <br>
2323
* The Server MUST acknowledge successful PATCH requests with the 204 No Content status. It MUST include the
2424
* Upload-Offset header containing the new offset. The new offset MUST be the sum of the offset before the PATCH
2525
* request and the number of bytes received and processed or stored during the current PATCH request.

src/main/java/me/desair/tus/server/core/validation/TusResumableValidator.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@
1313
import org.apache.commons.lang3.StringUtils;
1414

1515
/** Class that will validate if the tus version in the request corresponds to our implementation version
16-
* <p/>
16+
* <br>
1717
* The Tus-Resumable header MUST be included in every request and response except for OPTIONS requests.
1818
* The value MUST be the version of the protocol used by the Client or the Server.
1919
* If the the version specified by the Client is not supported by the Server, it MUST respond with the
2020
* 412 Precondition Failed status and MUST include the Tus-Version header into the response.
2121
* In addition, the Server MUST NOT process the request.
22-
* <p/>
22+
* <br>
2323
* (https://tus.io/protocols/resumable-upload.html#tus-resumable)
2424
*/
2525
public class TusResumableValidator implements RequestValidator {

src/main/java/me/desair/tus/server/creation/CreationHeadRequestHandler.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@
1212
import me.desair.tus.server.util.TusServletResponse;
1313

1414
/** A HEAD request can be used to retrieve the metadata that was supplied at creation.
15-
* <p/>
15+
* <br>
1616
* If an upload contains additional metadata, responses to HEAD requests MUST include the Upload-Metadata
1717
* header and its value as specified by the Client during the creation.
18-
* <p/>
18+
* <br>
1919
* As long as the length of the upload is not known, the Server MUST set Upload-Defer-Length: 1 in
2020
* all responses to HEAD requests.
2121
*/

src/main/java/me/desair/tus/server/creation/CreationOptionsRequestHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
/**
66
* The Client and the Server SHOULD implement the upload creation extension.
77
* If the Server supports this extension, it MUST add creation to the Tus-Extension header.
8-
* <p/>
8+
* <br>
99
* If the Server supports deferring length, it MUST add creation-defer-length to the Tus-Extension header.
1010
*/
1111
public class CreationOptionsRequestHandler extends AbstractExtensionRequestHandler {

src/main/java/me/desair/tus/server/exception/InvalidTusResumableException.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
import javax.servlet.http.HttpServletResponse;
44

55
/** Exception thrown when receiving a request with a tus protocol version we do not support
6-
* <p/>
6+
* <br>
77
* The Tus-Resumable header MUST be included in every request and response except for OPTIONS requests.
88
* The value MUST be the version of the protocol used by the Client or the Server.
99
* If the the version specified by the Client is not supported by the Server, it MUST respond with the
1010
* 412 Precondition Failed status and MUST include the Tus-Version header into the response.
1111
* In addition, the Server MUST NOT process the request.
12-
* <p/>
12+
* <br>
1313
* (https://tus.io/protocols/resumable-upload.html#tus-resumable)
1414
*/
1515
public class InvalidTusResumableException extends TusException {

src/main/java/me/desair/tus/server/exception/UploadNotFoundException.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import javax.servlet.http.HttpServletResponse;
44

55
/** Exception thrown when the given upload ID was not found
6-
* <p/>
6+
* <br>
77
* If the resource is not found, the Server SHOULD return either the
88
* 404 Not Found, 410 Gone or 403 Forbidden status without the Upload-Offset header.
99
*/

0 commit comments

Comments
 (0)