Skip to content

Commit

Permalink
Minor/ Major fixes, Implemented CORS support
Browse files Browse the repository at this point in the history
  • Loading branch information
Luka5W committed Jan 25, 2021
1 parent 3f8b15e commit 2ad1c84
Show file tree
Hide file tree
Showing 96 changed files with 11,857 additions and 185 deletions.
5 changes: 3 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ plugins {
}

group 'com.github.luka5w.fileserver'
version 'pre0.0.1'
version 'pre0.0.2'

ext {
mainClass = project.group + '.Main'
Expand Down Expand Up @@ -40,5 +40,6 @@ task runMain(dependsOn: 'classes', type: JavaExec) {
main = project.ext.mainClass
classpath = sourceSets.main.runtimeClasspath
// arguments, the program (jar) should execute with
args = ["--setup"]
//args = ["--setup"]
args = [""]
}
6 changes: 3 additions & 3 deletions docs/javadoc/allclasses-frame.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (1.8.0_275) on Sat Jan 09 19:03:24 CET 2021 -->
<title>All Classes (FileServer pre0.0.1 API)</title>
<meta name="date" content="2021-01-09">
<!-- Generated by javadoc (1.8.0_275) on Mon Jan 25 20:57:34 CET 2021 -->
<title>All Classes (FileServer pre0.0.2 API)</title>
<meta name="date" content="2021-01-25">
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
<script type="text/javascript" src="script.js"></script>
</head>
Expand Down
6 changes: 3 additions & 3 deletions docs/javadoc/allclasses-noframe.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (1.8.0_275) on Sat Jan 09 19:03:24 CET 2021 -->
<title>All Classes (FileServer pre0.0.1 API)</title>
<meta name="date" content="2021-01-09">
<!-- Generated by javadoc (1.8.0_275) on Mon Jan 25 20:57:34 CET 2021 -->
<title>All Classes (FileServer pre0.0.2 API)</title>
<meta name="date" content="2021-01-25">
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
<script type="text/javascript" src="script.js"></script>
</head>
Expand Down
8 changes: 4 additions & 4 deletions docs/javadoc/com/github/luka5w/fileserver/Constants.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (1.8.0_275) on Sat Jan 09 19:03:23 CET 2021 -->
<title>Constants (FileServer pre0.0.1 API)</title>
<meta name="date" content="2021-01-09">
<!-- Generated by javadoc (1.8.0_275) on Mon Jan 25 20:57:34 CET 2021 -->
<title>Constants (FileServer pre0.0.2 API)</title>
<meta name="date" content="2021-01-25">
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../script.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="Constants (FileServer pre0.0.1 API)";
parent.document.title="Constants (FileServer pre0.0.2 API)";
}
}
catch(err) {
Expand Down
8 changes: 4 additions & 4 deletions docs/javadoc/com/github/luka5w/fileserver/Main.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (1.8.0_275) on Sat Jan 09 19:03:23 CET 2021 -->
<title>Main (FileServer pre0.0.1 API)</title>
<meta name="date" content="2021-01-09">
<!-- Generated by javadoc (1.8.0_275) on Mon Jan 25 20:57:34 CET 2021 -->
<title>Main (FileServer pre0.0.2 API)</title>
<meta name="date" content="2021-01-25">
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../script.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="Main (FileServer pre0.0.1 API)";
parent.document.title="Main (FileServer pre0.0.2 API)";
}
}
catch(err) {
Expand Down
17 changes: 10 additions & 7 deletions docs/javadoc/com/github/luka5w/fileserver/api/API.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (1.8.0_275) on Sat Jan 09 19:03:23 CET 2021 -->
<title>API (FileServer pre0.0.1 API)</title>
<meta name="date" content="2021-01-09">
<!-- Generated by javadoc (1.8.0_275) on Mon Jan 25 20:57:34 CET 2021 -->
<title>API (FileServer pre0.0.2 API)</title>
<meta name="date" content="2021-01-25">
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../../script.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="API (FileServer pre0.0.1 API)";
parent.document.title="API (FileServer pre0.0.2 API)";
}
}
catch(err) {
Expand Down Expand Up @@ -129,8 +129,9 @@ <h3>Constructor Summary</h3>
<th class="colOne" scope="col">Constructor and Description</th>
</tr>
<tr class="altColor">
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../../com/github/luka5w/fileserver/api/API.html#API-int-int-java.lang.String-">API</a></span>(int&nbsp;ratelimit,
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../../com/github/luka5w/fileserver/api/API.html#API-int-int-java.lang.String-java.lang.String-">API</a></span>(int&nbsp;ratelimit,
int&nbsp;ratelimitVanishTime,
java.lang.String&nbsp;cors,
java.lang.String&nbsp;serverName)</code>
<div class="block">Creates a new API for an <code>HttpServer</code>.</div>
</td>
Expand Down Expand Up @@ -190,20 +191,22 @@ <h3>Methods inherited from class&nbsp;java.lang.Object</h3>
<!-- -->
</a>
<h3>Constructor Detail</h3>
<a name="API-int-int-java.lang.String-">
<a name="API-int-int-java.lang.String-java.lang.String-">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>API</h4>
<pre>public&nbsp;API(int&nbsp;ratelimit,
int&nbsp;ratelimitVanishTime,
java.lang.String&nbsp;cors,
java.lang.String&nbsp;serverName)</pre>
<div class="block">Creates a new API for an <code>HttpServer</code>.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>ratelimit</code> - The maximal amount of requests per {rateLimitVanishTime}, a client can perform before getting 429 http status responses (RFC 6585: Too Many Requests).</dd>
<dd><code>ratelimitVanishTime</code> - The time, a request takes to "vanish" and reduces the amount of requests in this time</dd>
<dd><code>ratelimitVanishTime</code> - The time, a request takes to "vanish" and reduces the amount of requests in this time.</dd>
<dd><code>cors</code> - When this argument is not empty (""), The 'Access-Control-Allow-Origin' header will be passed on response with the parameter as value.</dd>
<dd><code>serverName</code> - The name of the server, (probably - depending on API version) passed in the response headers.</dd>
<dt><span class="simpleTagLabel">Since:</span></dt>
<dd>1.0.0</dd>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (1.8.0_275) on Sat Jan 09 19:03:23 CET 2021 -->
<title>APIVersion.Endpoint (FileServer pre0.0.1 API)</title>
<meta name="date" content="2021-01-09">
<!-- Generated by javadoc (1.8.0_275) on Mon Jan 25 20:57:34 CET 2021 -->
<title>APIVersion.Endpoint (FileServer pre0.0.2 API)</title>
<meta name="date" content="2021-01-25">
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../../script.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="APIVersion.Endpoint (FileServer pre0.0.1 API)";
parent.document.title="APIVersion.Endpoint (FileServer pre0.0.2 API)";
}
}
catch(err) {
Expand Down
8 changes: 4 additions & 4 deletions docs/javadoc/com/github/luka5w/fileserver/api/APIVersion.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (1.8.0_275) on Sat Jan 09 19:03:23 CET 2021 -->
<title>APIVersion (FileServer pre0.0.1 API)</title>
<meta name="date" content="2021-01-09">
<!-- Generated by javadoc (1.8.0_275) on Mon Jan 25 20:57:34 CET 2021 -->
<title>APIVersion (FileServer pre0.0.2 API)</title>
<meta name="date" content="2021-01-25">
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../../script.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="APIVersion (FileServer pre0.0.1 API)";
parent.document.title="APIVersion (FileServer pre0.0.2 API)";
}
}
catch(err) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (1.8.0_275) on Sat Jan 09 19:03:23 CET 2021 -->
<title>HttpException (FileServer pre0.0.1 API)</title>
<meta name="date" content="2021-01-09">
<!-- Generated by javadoc (1.8.0_275) on Mon Jan 25 20:57:34 CET 2021 -->
<title>HttpException (FileServer pre0.0.2 API)</title>
<meta name="date" content="2021-01-25">
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../../script.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="HttpException (FileServer pre0.0.1 API)";
parent.document.title="HttpException (FileServer pre0.0.2 API)";
}
}
catch(err) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (1.8.0_275) on Sat Jan 09 19:03:23 CET 2021 -->
<title>com.github.luka5w.fileserver.api (FileServer pre0.0.1 API)</title>
<meta name="date" content="2021-01-09">
<!-- Generated by javadoc (1.8.0_275) on Mon Jan 25 20:57:34 CET 2021 -->
<title>com.github.luka5w.fileserver.api (FileServer pre0.0.2 API)</title>
<meta name="date" content="2021-01-25">
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../../script.js"></script>
</head>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (1.8.0_275) on Sat Jan 09 19:03:23 CET 2021 -->
<title>com.github.luka5w.fileserver.api (FileServer pre0.0.1 API)</title>
<meta name="date" content="2021-01-09">
<!-- Generated by javadoc (1.8.0_275) on Mon Jan 25 20:57:34 CET 2021 -->
<title>com.github.luka5w.fileserver.api (FileServer pre0.0.2 API)</title>
<meta name="date" content="2021-01-25">
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../../script.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="com.github.luka5w.fileserver.api (FileServer pre0.0.1 API)";
parent.document.title="com.github.luka5w.fileserver.api (FileServer pre0.0.2 API)";
}
}
catch(err) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (1.8.0_275) on Sat Jan 09 19:03:23 CET 2021 -->
<title>com.github.luka5w.fileserver.api Class Hierarchy (FileServer pre0.0.1 API)</title>
<meta name="date" content="2021-01-09">
<!-- Generated by javadoc (1.8.0_275) on Mon Jan 25 20:57:34 CET 2021 -->
<title>com.github.luka5w.fileserver.api Class Hierarchy (FileServer pre0.0.2 API)</title>
<meta name="date" content="2021-01-25">
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../../script.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="com.github.luka5w.fileserver.api Class Hierarchy (FileServer pre0.0.1 API)";
parent.document.title="com.github.luka5w.fileserver.api Class Hierarchy (FileServer pre0.0.2 API)";
}
}
catch(err) {
Expand Down
8 changes: 4 additions & 4 deletions docs/javadoc/com/github/luka5w/fileserver/data/DB.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (1.8.0_275) on Sat Jan 09 19:03:23 CET 2021 -->
<title>DB (FileServer pre0.0.1 API)</title>
<meta name="date" content="2021-01-09">
<!-- Generated by javadoc (1.8.0_275) on Mon Jan 25 20:57:34 CET 2021 -->
<title>DB (FileServer pre0.0.2 API)</title>
<meta name="date" content="2021-01-25">
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../../script.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="DB (FileServer pre0.0.1 API)";
parent.document.title="DB (FileServer pre0.0.2 API)";
}
}
catch(err) {
Expand Down
8 changes: 4 additions & 4 deletions docs/javadoc/com/github/luka5w/fileserver/data/FileDB.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (1.8.0_275) on Sat Jan 09 19:03:23 CET 2021 -->
<title>FileDB (FileServer pre0.0.1 API)</title>
<meta name="date" content="2021-01-09">
<!-- Generated by javadoc (1.8.0_275) on Mon Jan 25 20:57:34 CET 2021 -->
<title>FileDB (FileServer pre0.0.2 API)</title>
<meta name="date" content="2021-01-25">
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../../script.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="FileDB (FileServer pre0.0.1 API)";
parent.document.title="FileDB (FileServer pre0.0.2 API)";
}
}
catch(err) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (1.8.0_275) on Sat Jan 09 19:03:23 CET 2021 -->
<title>UserDB.UserData (FileServer pre0.0.1 API)</title>
<meta name="date" content="2021-01-09">
<!-- Generated by javadoc (1.8.0_275) on Mon Jan 25 20:57:34 CET 2021 -->
<title>UserDB.UserData (FileServer pre0.0.2 API)</title>
<meta name="date" content="2021-01-25">
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../../script.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="UserDB.UserData (FileServer pre0.0.1 API)";
parent.document.title="UserDB.UserData (FileServer pre0.0.2 API)";
}
}
catch(err) {
Expand Down
8 changes: 4 additions & 4 deletions docs/javadoc/com/github/luka5w/fileserver/data/UserDB.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (1.8.0_275) on Sat Jan 09 19:03:23 CET 2021 -->
<title>UserDB (FileServer pre0.0.1 API)</title>
<meta name="date" content="2021-01-09">
<!-- Generated by javadoc (1.8.0_275) on Mon Jan 25 20:57:34 CET 2021 -->
<title>UserDB (FileServer pre0.0.2 API)</title>
<meta name="date" content="2021-01-25">
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../../script.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="UserDB (FileServer pre0.0.1 API)";
parent.document.title="UserDB (FileServer pre0.0.2 API)";
}
}
catch(err) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (1.8.0_275) on Sat Jan 09 19:03:23 CET 2021 -->
<title>User.Type (FileServer pre0.0.1 API)</title>
<meta name="date" content="2021-01-09">
<!-- Generated by javadoc (1.8.0_275) on Mon Jan 25 20:57:34 CET 2021 -->
<title>User.Type (FileServer pre0.0.2 API)</title>
<meta name="date" content="2021-01-25">
<link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../../../script.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="User.Type (FileServer pre0.0.1 API)";
parent.document.title="User.Type (FileServer pre0.0.2 API)";
}
}
catch(err) {
Expand Down
Loading

0 comments on commit 2ad1c84

Please sign in to comment.