From 628034976547c33c12b1ca13400cf8b452449729 Mon Sep 17 00:00:00 2001 From: Nathan <nathanhouzet@hotmail.fr> Date: Thu, 1 Apr 2021 08:28:44 +0200 Subject: [PATCH] feat: ajout supression de server --- README.md | 4 ++ doc/allclasses-index.html | 2 +- doc/allpackages-index.html | 2 +- doc/constant-values.html | 31 +------------- doc/deprecated-list.html | 2 +- doc/help-doc.html | 2 +- doc/index-files/index-1.html | 6 ++- doc/index-files/index-10.html | 2 +- doc/index-files/index-11.html | 2 +- doc/index-files/index-12.html | 2 +- doc/index-files/index-13.html | 2 +- doc/index-files/index-14.html | 4 +- doc/index-files/index-15.html | 2 +- doc/index-files/index-2.html | 4 +- doc/index-files/index-3.html | 2 +- doc/index-files/index-4.html | 2 +- doc/index-files/index-5.html | 2 +- doc/index-files/index-6.html | 2 +- doc/index-files/index-7.html | 2 +- doc/index-files/index-8.html | 2 +- doc/index-files/index-9.html | 2 +- doc/index.html | 2 +- doc/member-search-index.js | 2 +- doc/overview-tree.html | 2 +- doc/serialized-form.html | 2 +- .../flopbox/FileDoesNotExistException.html | 2 +- doc/sr2/flopbox/FilesServices.html | 2 +- .../flopbox/FtpServer.FtpServerBuilder.html | 2 +- doc/sr2/flopbox/FtpServer.html | 2 +- doc/sr2/flopbox/FtpServerList.html | 2 +- doc/sr2/flopbox/FtpServerService.html | 41 +++++++++++++++---- doc/sr2/flopbox/Main.html | 25 +++-------- doc/sr2/flopbox/NoServerFoundException.html | 2 +- .../flopbox/cantConnectToServerException.html | 2 +- doc/sr2/flopbox/package-summary.html | 2 +- doc/sr2/flopbox/package-tree.html | 2 +- .../java/sr2/flopbox/FtpServerService.java | 14 +++++++ 37 files changed, 96 insertions(+), 91 deletions(-) diff --git a/README.md b/README.md index 46ef29e..0a6a68d 100644 --- a/README.md +++ b/README.md @@ -78,6 +78,10 @@ Modifier un alias : * `PUT localhost:8080/flopbox/servers/perso/change?newAlias=perso2` +Supprimer un server de la plateforme : + +* `DEL localhost:8080/flopbox/servers/perso` + A noter que ici 'perso' est l'alias que j'ai utilisé pour mon serveur local de test. diff --git a/doc/allclasses-index.html b/doc/allclasses-index.html index b130b8c..4a80a37 100644 --- a/doc/allclasses-index.html +++ b/doc/allclasses-index.html @@ -2,7 +2,7 @@ <!-- NewPage --> <html lang="en"> <head> -<!-- Generated by javadoc (15) on Thu Apr 01 01:09:08 CEST 2021 --> +<!-- Generated by javadoc (15) on Thu Apr 01 08:26:58 CEST 2021 --> <title>All Classes</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta name="dc.created" content="2021-04-01"> diff --git a/doc/allpackages-index.html b/doc/allpackages-index.html index e4e0336..b71a278 100644 --- a/doc/allpackages-index.html +++ b/doc/allpackages-index.html @@ -2,7 +2,7 @@ <!-- NewPage --> <html lang="en"> <head> -<!-- Generated by javadoc (15) on Thu Apr 01 01:09:08 CEST 2021 --> +<!-- Generated by javadoc (15) on Thu Apr 01 08:26:58 CEST 2021 --> <title>All Packages</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta name="dc.created" content="2021-04-01"> diff --git a/doc/constant-values.html b/doc/constant-values.html index 66455a5..974d83d 100644 --- a/doc/constant-values.html +++ b/doc/constant-values.html @@ -2,7 +2,7 @@ <!-- NewPage --> <html lang="en"> <head> -<!-- Generated by javadoc (15) on Thu Apr 01 01:09:08 CEST 2021 --> +<!-- Generated by javadoc (15) on Thu Apr 01 08:26:58 CEST 2021 --> <title>Constant Field Values</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta name="dc.created" content="2021-04-01"> @@ -53,37 +53,8 @@ loadScripts(document, 'script');</script> <h1 title="Constant Field Values" class="title">Constant Field Values</h1> <section class="packages"> <h2 title="Contents">Contents</h2> -<ul> -<li><a href="#sr2.flopbox">sr2.flopbox.*</a></li> -</ul> </section> </div> -<section class="constants-summary" id="sr2.flopbox"> -<h2 title="sr2.flopbox">sr2.flopbox.*</h2> -<ul class="block-list"> -<li> -<div class="constants-summary"> -<table class="summary-table"> -<caption><span>sr2.flopbox.<a href="sr2/flopbox/Main.html" title="class in sr2.flopbox">Main</a></span></caption> -<thead> -<tr> -<th class="col-first" scope="col">Modifier and Type</th> -<th class="col-second" scope="col">Constant Field</th> -<th class="col-last" scope="col">Value</th> -</tr> -</thead> -<tbody> -<tr class="alt-color"> -<td class="col-first"><code id="sr2.flopbox.Main.BASE_URI">public static final java.lang.String</code></td> -<th class="col-second" scope="row"><code><a href="sr2/flopbox/Main.html#BASE_URI">BASE_URI</a></code></th> -<td class="col-last"><code>"http://localhost:8080/flopbox/"</code></td> -</tr> -</tbody> -</table> -</div> -</li> -</ul> -</section> </main> <footer role="contentinfo"> <nav role="navigation"> diff --git a/doc/deprecated-list.html b/doc/deprecated-list.html index d2b9aa0..7fb21b0 100644 --- a/doc/deprecated-list.html +++ b/doc/deprecated-list.html @@ -2,7 +2,7 @@ <!-- NewPage --> <html lang="en"> <head> -<!-- Generated by javadoc (15) on Thu Apr 01 01:09:08 CEST 2021 --> +<!-- Generated by javadoc (15) on Thu Apr 01 08:26:58 CEST 2021 --> <title>Deprecated List</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta name="dc.created" content="2021-04-01"> diff --git a/doc/help-doc.html b/doc/help-doc.html index 1523e93..31a124a 100644 --- a/doc/help-doc.html +++ b/doc/help-doc.html @@ -2,7 +2,7 @@ <!-- NewPage --> <html lang="en"> <head> -<!-- Generated by javadoc (15) on Thu Apr 01 01:09:08 CEST 2021 --> +<!-- Generated by javadoc (15) on Thu Apr 01 08:26:58 CEST 2021 --> <title>API Help</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta name="dc.created" content="2021-04-01"> diff --git a/doc/index-files/index-1.html b/doc/index-files/index-1.html index 53a7880..6810bce 100644 --- a/doc/index-files/index-1.html +++ b/doc/index-files/index-1.html @@ -2,7 +2,7 @@ <!-- NewPage --> <html lang="en"> <head> -<!-- Generated by javadoc (15) on Thu Apr 01 01:09:08 CEST 2021 --> +<!-- Generated by javadoc (15) on Thu Apr 01 08:26:58 CEST 2021 --> <title>A-Index</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta name="dc.created" content="2021-04-01"> @@ -59,6 +59,10 @@ loadScripts(document, 'script');</script> <dd> <div class="block">Method used to create repository</div> </dd> +<dt><span class="member-name-link"><a href="../sr2/flopbox/FtpServerService.html#addServer(java.lang.String)">addServer(String)</a></span> - Method in class sr2.flopbox.<a href="../sr2/flopbox/FtpServerService.html" title="class in sr2.flopbox">FtpServerService</a></dt> +<dd> +<div class="block">Method used to remove a server to the API</div> +</dd> <dt><span class="member-name-link"><a href="../sr2/flopbox/FtpServerService.html#addServer(java.lang.String,java.lang.String,java.lang.String)">addServer(String, String, String)</a></span> - Method in class sr2.flopbox.<a href="../sr2/flopbox/FtpServerService.html" title="class in sr2.flopbox">FtpServerService</a></dt> <dd> <div class="block">Method used to add a server to the API</div> diff --git a/doc/index-files/index-10.html b/doc/index-files/index-10.html index 680fd7f..0961b03 100644 --- a/doc/index-files/index-10.html +++ b/doc/index-files/index-10.html @@ -2,7 +2,7 @@ <!-- NewPage --> <html lang="en"> <head> -<!-- Generated by javadoc (15) on Thu Apr 01 01:09:08 CEST 2021 --> +<!-- Generated by javadoc (15) on Thu Apr 01 08:26:58 CEST 2021 --> <title>M-Index</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta name="dc.created" content="2021-04-01"> diff --git a/doc/index-files/index-11.html b/doc/index-files/index-11.html index 96eea8f..d3e7151 100644 --- a/doc/index-files/index-11.html +++ b/doc/index-files/index-11.html @@ -2,7 +2,7 @@ <!-- NewPage --> <html lang="en"> <head> -<!-- Generated by javadoc (15) on Thu Apr 01 01:09:08 CEST 2021 --> +<!-- Generated by javadoc (15) on Thu Apr 01 08:26:58 CEST 2021 --> <title>N-Index</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta name="dc.created" content="2021-04-01"> diff --git a/doc/index-files/index-12.html b/doc/index-files/index-12.html index 39a79dc..44ca614 100644 --- a/doc/index-files/index-12.html +++ b/doc/index-files/index-12.html @@ -2,7 +2,7 @@ <!-- NewPage --> <html lang="en"> <head> -<!-- Generated by javadoc (15) on Thu Apr 01 01:09:08 CEST 2021 --> +<!-- Generated by javadoc (15) on Thu Apr 01 08:26:58 CEST 2021 --> <title>P-Index</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta name="dc.created" content="2021-04-01"> diff --git a/doc/index-files/index-13.html b/doc/index-files/index-13.html index 2d332e7..370809f 100644 --- a/doc/index-files/index-13.html +++ b/doc/index-files/index-13.html @@ -2,7 +2,7 @@ <!-- NewPage --> <html lang="en"> <head> -<!-- Generated by javadoc (15) on Thu Apr 01 01:09:08 CEST 2021 --> +<!-- Generated by javadoc (15) on Thu Apr 01 08:26:58 CEST 2021 --> <title>R-Index</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta name="dc.created" content="2021-04-01"> diff --git a/doc/index-files/index-14.html b/doc/index-files/index-14.html index 7bfe247..4299c4f 100644 --- a/doc/index-files/index-14.html +++ b/doc/index-files/index-14.html @@ -2,7 +2,7 @@ <!-- NewPage --> <html lang="en"> <head> -<!-- Generated by javadoc (15) on Thu Apr 01 01:09:08 CEST 2021 --> +<!-- Generated by javadoc (15) on Thu Apr 01 08:26:58 CEST 2021 --> <title>S-Index</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta name="dc.created" content="2021-04-01"> @@ -59,7 +59,7 @@ loadScripts(document, 'script');</script> <dd> </dd> <dt><a href="../sr2/flopbox/package-summary.html">sr2.flopbox</a> - package sr2.flopbox</dt> <dd> </dd> -<dt><span class="member-name-link"><a href="../sr2/flopbox/Main.html#startServer()">startServer()</a></span> - Static method in class sr2.flopbox.<a href="../sr2/flopbox/Main.html" title="class in sr2.flopbox">Main</a></dt> +<dt><span class="member-name-link"><a href="../sr2/flopbox/Main.html#startServer(java.lang.String)">startServer(String)</a></span> - Static method in class sr2.flopbox.<a href="../sr2/flopbox/Main.html" title="class in sr2.flopbox">Main</a></dt> <dd> <div class="block">Starts Grizzly HTTP server exposing JAX-RS resources defined in this application.</div> </dd> diff --git a/doc/index-files/index-15.html b/doc/index-files/index-15.html index e015e08..c8a3e1e 100644 --- a/doc/index-files/index-15.html +++ b/doc/index-files/index-15.html @@ -2,7 +2,7 @@ <!-- NewPage --> <html lang="en"> <head> -<!-- Generated by javadoc (15) on Thu Apr 01 01:09:08 CEST 2021 --> +<!-- Generated by javadoc (15) on Thu Apr 01 08:26:58 CEST 2021 --> <title>T-Index</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta name="dc.created" content="2021-04-01"> diff --git a/doc/index-files/index-2.html b/doc/index-files/index-2.html index 72c5b28..008092c 100644 --- a/doc/index-files/index-2.html +++ b/doc/index-files/index-2.html @@ -2,7 +2,7 @@ <!-- NewPage --> <html lang="en"> <head> -<!-- Generated by javadoc (15) on Thu Apr 01 01:09:08 CEST 2021 --> +<!-- Generated by javadoc (15) on Thu Apr 01 08:26:58 CEST 2021 --> <title>B-Index</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta name="dc.created" content="2021-04-01"> @@ -55,8 +55,6 @@ loadScripts(document, 'script');</script> <a href="index-1.html">A</a> <a href="index-2.html">B</a> <a href="index-3.html">C</a> <a href="index-4.html">D</a> <a href="index-5.html">F</a> <a href="index-6.html">G</a> <a href="index-7.html">H</a> <a href="index-8.html">I</a> <a href="index-9.html">L</a> <a href="index-10.html">M</a> <a href="index-11.html">N</a> <a href="index-12.html">P</a> <a href="index-13.html">R</a> <a href="index-14.html">S</a> <a href="index-15.html">T</a> <br><a href="../allclasses-index.html">All Classes</a><span class="vertical-separator">|</span><a href="../allpackages-index.html">All Packages</a> <h2 class="title" id="I:B">B</h2> <dl class="index"> -<dt><span class="member-name-link"><a href="../sr2/flopbox/Main.html#BASE_URI">BASE_URI</a></span> - Static variable in class sr2.flopbox.<a href="../sr2/flopbox/Main.html" title="class in sr2.flopbox">Main</a></dt> -<dd> </dd> <dt><span class="member-name-link"><a href="../sr2/flopbox/FtpServer.FtpServerBuilder.html#build()">build()</a></span> - Method in class sr2.flopbox.<a href="../sr2/flopbox/FtpServer.FtpServerBuilder.html" title="class in sr2.flopbox">FtpServer.FtpServerBuilder</a></dt> <dd> <div class="block">Building method</div> diff --git a/doc/index-files/index-3.html b/doc/index-files/index-3.html index facc7f5..8bf39ec 100644 --- a/doc/index-files/index-3.html +++ b/doc/index-files/index-3.html @@ -2,7 +2,7 @@ <!-- NewPage --> <html lang="en"> <head> -<!-- Generated by javadoc (15) on Thu Apr 01 01:09:08 CEST 2021 --> +<!-- Generated by javadoc (15) on Thu Apr 01 08:26:58 CEST 2021 --> <title>C-Index</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta name="dc.created" content="2021-04-01"> diff --git a/doc/index-files/index-4.html b/doc/index-files/index-4.html index 905e47e..f6560e1 100644 --- a/doc/index-files/index-4.html +++ b/doc/index-files/index-4.html @@ -2,7 +2,7 @@ <!-- NewPage --> <html lang="en"> <head> -<!-- Generated by javadoc (15) on Thu Apr 01 01:09:08 CEST 2021 --> +<!-- Generated by javadoc (15) on Thu Apr 01 08:26:58 CEST 2021 --> <title>D-Index</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta name="dc.created" content="2021-04-01"> diff --git a/doc/index-files/index-5.html b/doc/index-files/index-5.html index 404e6ce..9894339 100644 --- a/doc/index-files/index-5.html +++ b/doc/index-files/index-5.html @@ -2,7 +2,7 @@ <!-- NewPage --> <html lang="en"> <head> -<!-- Generated by javadoc (15) on Thu Apr 01 01:09:08 CEST 2021 --> +<!-- Generated by javadoc (15) on Thu Apr 01 08:26:58 CEST 2021 --> <title>F-Index</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta name="dc.created" content="2021-04-01"> diff --git a/doc/index-files/index-6.html b/doc/index-files/index-6.html index 80cb617..d260ba2 100644 --- a/doc/index-files/index-6.html +++ b/doc/index-files/index-6.html @@ -2,7 +2,7 @@ <!-- NewPage --> <html lang="en"> <head> -<!-- Generated by javadoc (15) on Thu Apr 01 01:09:08 CEST 2021 --> +<!-- Generated by javadoc (15) on Thu Apr 01 08:26:58 CEST 2021 --> <title>G-Index</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta name="dc.created" content="2021-04-01"> diff --git a/doc/index-files/index-7.html b/doc/index-files/index-7.html index 885e213..f54ed97 100644 --- a/doc/index-files/index-7.html +++ b/doc/index-files/index-7.html @@ -2,7 +2,7 @@ <!-- NewPage --> <html lang="en"> <head> -<!-- Generated by javadoc (15) on Thu Apr 01 01:09:08 CEST 2021 --> +<!-- Generated by javadoc (15) on Thu Apr 01 08:26:58 CEST 2021 --> <title>H-Index</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta name="dc.created" content="2021-04-01"> diff --git a/doc/index-files/index-8.html b/doc/index-files/index-8.html index 4ca11bc..40b1d9e 100644 --- a/doc/index-files/index-8.html +++ b/doc/index-files/index-8.html @@ -2,7 +2,7 @@ <!-- NewPage --> <html lang="en"> <head> -<!-- Generated by javadoc (15) on Thu Apr 01 01:09:08 CEST 2021 --> +<!-- Generated by javadoc (15) on Thu Apr 01 08:26:58 CEST 2021 --> <title>I-Index</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta name="dc.created" content="2021-04-01"> diff --git a/doc/index-files/index-9.html b/doc/index-files/index-9.html index ed9a492..fe13642 100644 --- a/doc/index-files/index-9.html +++ b/doc/index-files/index-9.html @@ -2,7 +2,7 @@ <!-- NewPage --> <html lang="en"> <head> -<!-- Generated by javadoc (15) on Thu Apr 01 01:09:08 CEST 2021 --> +<!-- Generated by javadoc (15) on Thu Apr 01 08:26:58 CEST 2021 --> <title>L-Index</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta name="dc.created" content="2021-04-01"> diff --git a/doc/index.html b/doc/index.html index c61e1a6..0175949 100644 --- a/doc/index.html +++ b/doc/index.html @@ -2,7 +2,7 @@ <!-- NewPage --> <html lang="en"> <head> -<!-- Generated by javadoc (15) on Thu Apr 01 01:09:08 CEST 2021 --> +<!-- Generated by javadoc (15) on Thu Apr 01 08:26:58 CEST 2021 --> <title>Generated Documentation (Untitled)</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta name="dc.created" content="2021-04-01"> diff --git a/doc/member-search-index.js b/doc/member-search-index.js index f58d78e..cdc3516 100644 --- a/doc/member-search-index.js +++ b/doc/member-search-index.js @@ -1 +1 @@ -memberSearchIndex = [{"p":"sr2.flopbox","c":"FilesServices","l":"addfile(String, String, String)","u":"addfile(java.lang.String,java.lang.String,java.lang.String)"},{"p":"sr2.flopbox","c":"FtpServerService","l":"addServer(String, String, String)","u":"addServer(java.lang.String,java.lang.String,java.lang.String)"},{"p":"sr2.flopbox","c":"FtpServer","l":"addUser(int, String, String)","u":"addUser(int,java.lang.String,java.lang.String)"},{"p":"sr2.flopbox","c":"FtpServer.FtpServerBuilder","l":"alias(String)","u":"alias(java.lang.String)"},{"p":"sr2.flopbox","c":"Main","l":"BASE_URI"},{"p":"sr2.flopbox","c":"FtpServer.FtpServerBuilder","l":"build()"},{"p":"sr2.flopbox","c":"cantConnectToServerException","l":"cantConnectToServerException(String)","u":"%3Cinit%3E(java.lang.String)"},{"p":"sr2.flopbox","c":"FtpServerService","l":"changeAlias(String, String, String)","u":"changeAlias(java.lang.String,java.lang.String,java.lang.String)"},{"p":"sr2.flopbox","c":"FtpServer","l":"checkIfUserExist(int)"},{"p":"sr2.flopbox","c":"FilesServices","l":"delete(String, String, String)","u":"delete(java.lang.String,java.lang.String,java.lang.String)"},{"p":"sr2.flopbox","c":"FileDoesNotExistException","l":"FileDoesNotExistException(String)","u":"%3Cinit%3E(java.lang.String)"},{"p":"sr2.flopbox","c":"FilesServices","l":"FilesServices()","u":"%3Cinit%3E()"},{"p":"sr2.flopbox","c":"FtpServer","l":"FtpServer()","u":"%3Cinit%3E()"},{"p":"sr2.flopbox","c":"FtpServer","l":"FtpServer(long, String, String, String)","u":"%3Cinit%3E(long,java.lang.String,java.lang.String,java.lang.String)"},{"p":"sr2.flopbox","c":"FtpServer.FtpServerBuilder","l":"FtpServerBuilder()","u":"%3Cinit%3E()"},{"p":"sr2.flopbox","c":"FtpServerList","l":"FtpServerList()","u":"%3Cinit%3E()"},{"p":"sr2.flopbox","c":"FtpServerService","l":"FtpServerService()","u":"%3Cinit%3E()"},{"p":"sr2.flopbox","c":"Main","l":"FTPtool"},{"p":"sr2.flopbox","c":"FtpServer","l":"getAlias()"},{"p":"sr2.flopbox","c":"FtpServerService","l":"getAllFTPServers()"},{"p":"sr2.flopbox","c":"FtpServer","l":"getHost()"},{"p":"sr2.flopbox","c":"FtpServer","l":"getId()"},{"p":"sr2.flopbox","c":"FtpServerList","l":"getInstance()"},{"p":"sr2.flopbox","c":"FtpServer","l":"getPort()"},{"p":"sr2.flopbox","c":"FtpServerService","l":"getServer(String)","u":"getServer(java.lang.String)"},{"p":"sr2.flopbox","c":"FtpServer","l":"getUserAndPass(int)"},{"p":"sr2.flopbox","c":"FtpServer.FtpServerBuilder","l":"host(String)","u":"host(java.lang.String)"},{"p":"sr2.flopbox","c":"FtpServer.FtpServerBuilder","l":"id()"},{"p":"sr2.flopbox","c":"FtpServer.FtpServerBuilder","l":"id(long)"},{"p":"sr2.flopbox","c":"FilesServices","l":"listFile(String, String, String)","u":"listFile(java.lang.String,java.lang.String,java.lang.String)"},{"p":"sr2.flopbox","c":"FilesServices","l":"listrepository(String, String, String)","u":"listrepository(java.lang.String,java.lang.String,java.lang.String)"},{"p":"sr2.flopbox","c":"FtpServerService","l":"listRoot(String, String)","u":"listRoot(java.lang.String,java.lang.String)"},{"p":"sr2.flopbox","c":"FtpServerService","l":"login(String, String, String)","u":"login(java.lang.String,java.lang.String,java.lang.String)"},{"p":"sr2.flopbox","c":"Main","l":"Main()","u":"%3Cinit%3E()"},{"p":"sr2.flopbox","c":"Main","l":"main(String[])","u":"main(java.lang.String[])"},{"p":"sr2.flopbox","c":"NoServerFoundException","l":"NoServerFoundException(String)","u":"%3Cinit%3E(java.lang.String)"},{"p":"sr2.flopbox","c":"FtpServer.FtpServerBuilder","l":"port(String)","u":"port(java.lang.String)"},{"p":"sr2.flopbox","c":"FilesServices","l":"rename(String, String, String, String)","u":"rename(java.lang.String,java.lang.String,java.lang.String,java.lang.String)"},{"p":"sr2.flopbox","c":"FtpServer","l":"setAlias(String)","u":"setAlias(java.lang.String)"},{"p":"sr2.flopbox","c":"Main","l":"startServer()"},{"p":"sr2.flopbox","c":"FilesServices","l":"test(String, String)","u":"test(java.lang.String,java.lang.String)"},{"p":"sr2.flopbox","c":"FtpServer","l":"toString()"}];updateSearchResults(); \ No newline at end of file +memberSearchIndex = [{"p":"sr2.flopbox","c":"FilesServices","l":"addfile(String, String, String)","u":"addfile(java.lang.String,java.lang.String,java.lang.String)"},{"p":"sr2.flopbox","c":"FtpServerService","l":"addServer(String)","u":"addServer(java.lang.String)"},{"p":"sr2.flopbox","c":"FtpServerService","l":"addServer(String, String, String)","u":"addServer(java.lang.String,java.lang.String,java.lang.String)"},{"p":"sr2.flopbox","c":"FtpServer","l":"addUser(int, String, String)","u":"addUser(int,java.lang.String,java.lang.String)"},{"p":"sr2.flopbox","c":"FtpServer.FtpServerBuilder","l":"alias(String)","u":"alias(java.lang.String)"},{"p":"sr2.flopbox","c":"FtpServer.FtpServerBuilder","l":"build()"},{"p":"sr2.flopbox","c":"cantConnectToServerException","l":"cantConnectToServerException(String)","u":"%3Cinit%3E(java.lang.String)"},{"p":"sr2.flopbox","c":"FtpServerService","l":"changeAlias(String, String, String)","u":"changeAlias(java.lang.String,java.lang.String,java.lang.String)"},{"p":"sr2.flopbox","c":"FtpServer","l":"checkIfUserExist(int)"},{"p":"sr2.flopbox","c":"FilesServices","l":"delete(String, String, String)","u":"delete(java.lang.String,java.lang.String,java.lang.String)"},{"p":"sr2.flopbox","c":"FileDoesNotExistException","l":"FileDoesNotExistException(String)","u":"%3Cinit%3E(java.lang.String)"},{"p":"sr2.flopbox","c":"FilesServices","l":"FilesServices()","u":"%3Cinit%3E()"},{"p":"sr2.flopbox","c":"FtpServer","l":"FtpServer()","u":"%3Cinit%3E()"},{"p":"sr2.flopbox","c":"FtpServer","l":"FtpServer(long, String, String, String)","u":"%3Cinit%3E(long,java.lang.String,java.lang.String,java.lang.String)"},{"p":"sr2.flopbox","c":"FtpServer.FtpServerBuilder","l":"FtpServerBuilder()","u":"%3Cinit%3E()"},{"p":"sr2.flopbox","c":"FtpServerList","l":"FtpServerList()","u":"%3Cinit%3E()"},{"p":"sr2.flopbox","c":"FtpServerService","l":"FtpServerService()","u":"%3Cinit%3E()"},{"p":"sr2.flopbox","c":"Main","l":"FTPtool"},{"p":"sr2.flopbox","c":"FtpServer","l":"getAlias()"},{"p":"sr2.flopbox","c":"FtpServerService","l":"getAllFTPServers()"},{"p":"sr2.flopbox","c":"FtpServer","l":"getHost()"},{"p":"sr2.flopbox","c":"FtpServer","l":"getId()"},{"p":"sr2.flopbox","c":"FtpServerList","l":"getInstance()"},{"p":"sr2.flopbox","c":"FtpServer","l":"getPort()"},{"p":"sr2.flopbox","c":"FtpServerService","l":"getServer(String)","u":"getServer(java.lang.String)"},{"p":"sr2.flopbox","c":"FtpServer","l":"getUserAndPass(int)"},{"p":"sr2.flopbox","c":"FtpServer.FtpServerBuilder","l":"host(String)","u":"host(java.lang.String)"},{"p":"sr2.flopbox","c":"FtpServer.FtpServerBuilder","l":"id()"},{"p":"sr2.flopbox","c":"FtpServer.FtpServerBuilder","l":"id(long)"},{"p":"sr2.flopbox","c":"FilesServices","l":"listFile(String, String, String)","u":"listFile(java.lang.String,java.lang.String,java.lang.String)"},{"p":"sr2.flopbox","c":"FilesServices","l":"listrepository(String, String, String)","u":"listrepository(java.lang.String,java.lang.String,java.lang.String)"},{"p":"sr2.flopbox","c":"FtpServerService","l":"listRoot(String, String)","u":"listRoot(java.lang.String,java.lang.String)"},{"p":"sr2.flopbox","c":"FtpServerService","l":"login(String, String, String)","u":"login(java.lang.String,java.lang.String,java.lang.String)"},{"p":"sr2.flopbox","c":"Main","l":"Main()","u":"%3Cinit%3E()"},{"p":"sr2.flopbox","c":"Main","l":"main(String[])","u":"main(java.lang.String[])"},{"p":"sr2.flopbox","c":"NoServerFoundException","l":"NoServerFoundException(String)","u":"%3Cinit%3E(java.lang.String)"},{"p":"sr2.flopbox","c":"FtpServer.FtpServerBuilder","l":"port(String)","u":"port(java.lang.String)"},{"p":"sr2.flopbox","c":"FilesServices","l":"rename(String, String, String, String)","u":"rename(java.lang.String,java.lang.String,java.lang.String,java.lang.String)"},{"p":"sr2.flopbox","c":"FtpServer","l":"setAlias(String)","u":"setAlias(java.lang.String)"},{"p":"sr2.flopbox","c":"Main","l":"startServer(String)","u":"startServer(java.lang.String)"},{"p":"sr2.flopbox","c":"FilesServices","l":"test(String, String)","u":"test(java.lang.String,java.lang.String)"},{"p":"sr2.flopbox","c":"FtpServer","l":"toString()"}];updateSearchResults(); \ No newline at end of file diff --git a/doc/overview-tree.html b/doc/overview-tree.html index b8c954c..914311e 100644 --- a/doc/overview-tree.html +++ b/doc/overview-tree.html @@ -2,7 +2,7 @@ <!-- NewPage --> <html lang="en"> <head> -<!-- Generated by javadoc (15) on Thu Apr 01 01:09:08 CEST 2021 --> +<!-- Generated by javadoc (15) on Thu Apr 01 08:26:58 CEST 2021 --> <title>Class Hierarchy</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta name="dc.created" content="2021-04-01"> diff --git a/doc/serialized-form.html b/doc/serialized-form.html index f0bd756..3dc656c 100644 --- a/doc/serialized-form.html +++ b/doc/serialized-form.html @@ -2,7 +2,7 @@ <!-- NewPage --> <html lang="en"> <head> -<!-- Generated by javadoc (15) on Thu Apr 01 01:09:08 CEST 2021 --> +<!-- Generated by javadoc (15) on Thu Apr 01 08:26:58 CEST 2021 --> <title>Serialized Form</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta name="dc.created" content="2021-04-01"> diff --git a/doc/sr2/flopbox/FileDoesNotExistException.html b/doc/sr2/flopbox/FileDoesNotExistException.html index 8b3f932..b43bc2b 100644 --- a/doc/sr2/flopbox/FileDoesNotExistException.html +++ b/doc/sr2/flopbox/FileDoesNotExistException.html @@ -2,7 +2,7 @@ <!-- NewPage --> <html lang="en"> <head> -<!-- Generated by javadoc (15) on Thu Apr 01 01:09:08 CEST 2021 --> +<!-- Generated by javadoc (15) on Thu Apr 01 08:26:58 CEST 2021 --> <title>FileDoesNotExistException</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta name="dc.created" content="2021-04-01"> diff --git a/doc/sr2/flopbox/FilesServices.html b/doc/sr2/flopbox/FilesServices.html index af3b385..2197274 100644 --- a/doc/sr2/flopbox/FilesServices.html +++ b/doc/sr2/flopbox/FilesServices.html @@ -2,7 +2,7 @@ <!-- NewPage --> <html lang="en"> <head> -<!-- Generated by javadoc (15) on Thu Apr 01 01:09:08 CEST 2021 --> +<!-- Generated by javadoc (15) on Thu Apr 01 08:26:58 CEST 2021 --> <title>FilesServices</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta name="dc.created" content="2021-04-01"> diff --git a/doc/sr2/flopbox/FtpServer.FtpServerBuilder.html b/doc/sr2/flopbox/FtpServer.FtpServerBuilder.html index 8749d35..8a7cbad 100644 --- a/doc/sr2/flopbox/FtpServer.FtpServerBuilder.html +++ b/doc/sr2/flopbox/FtpServer.FtpServerBuilder.html @@ -2,7 +2,7 @@ <!-- NewPage --> <html lang="en"> <head> -<!-- Generated by javadoc (15) on Thu Apr 01 01:09:08 CEST 2021 --> +<!-- Generated by javadoc (15) on Thu Apr 01 08:26:58 CEST 2021 --> <title>FtpServer.FtpServerBuilder</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta name="dc.created" content="2021-04-01"> diff --git a/doc/sr2/flopbox/FtpServer.html b/doc/sr2/flopbox/FtpServer.html index dc4a2a6..20daeb1 100644 --- a/doc/sr2/flopbox/FtpServer.html +++ b/doc/sr2/flopbox/FtpServer.html @@ -2,7 +2,7 @@ <!-- NewPage --> <html lang="en"> <head> -<!-- Generated by javadoc (15) on Thu Apr 01 01:09:08 CEST 2021 --> +<!-- Generated by javadoc (15) on Thu Apr 01 08:26:58 CEST 2021 --> <title>FtpServer</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta name="dc.created" content="2021-04-01"> diff --git a/doc/sr2/flopbox/FtpServerList.html b/doc/sr2/flopbox/FtpServerList.html index fbaecd4..ad03639 100644 --- a/doc/sr2/flopbox/FtpServerList.html +++ b/doc/sr2/flopbox/FtpServerList.html @@ -2,7 +2,7 @@ <!-- NewPage --> <html lang="en"> <head> -<!-- Generated by javadoc (15) on Thu Apr 01 01:09:08 CEST 2021 --> +<!-- Generated by javadoc (15) on Thu Apr 01 08:26:58 CEST 2021 --> <title>FtpServerList</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta name="dc.created" content="2021-04-01"> diff --git a/doc/sr2/flopbox/FtpServerService.html b/doc/sr2/flopbox/FtpServerService.html index ae59844..5bcd87e 100644 --- a/doc/sr2/flopbox/FtpServerService.html +++ b/doc/sr2/flopbox/FtpServerService.html @@ -2,7 +2,7 @@ <!-- NewPage --> <html lang="en"> <head> -<!-- Generated by javadoc (15) on Thu Apr 01 01:09:08 CEST 2021 --> +<!-- Generated by javadoc (15) on Thu Apr 01 08:26:58 CEST 2021 --> <title>FtpServerService</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta name="dc.created" content="2021-04-01"> @@ -16,7 +16,7 @@ <script type="text/javascript" src="../../script-dir/jquery-ui.min.js"></script> </head> <body class="class-declaration-page"> -<script type="text/javascript">var data = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10}; +<script type="text/javascript">var data = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10}; var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]}; var altColor = "alt-color"; var rowColor = "row-color"; @@ -127,6 +127,13 @@ extends java.lang.Object</pre> <tbody> <tr class="alt-color" id="i0"> <td class="col-first"><code>java.lang.String</code></td> +<th class="col-second" scope="row"><code><span class="member-name-link"><a href="#addServer(java.lang.String)">addServer</a></span>​(java.lang.String alias)</code></th> +<td class="col-last"> +<div class="block">Method used to remove a server to the API</div> +</td> +</tr> +<tr class="row-color" id="i1"> +<td class="col-first"><code>java.lang.String</code></td> <th class="col-second" scope="row"><code><span class="member-name-link"><a href="#addServer(java.lang.String,java.lang.String,java.lang.String)">addServer</a></span>​(java.lang.String host, java.lang.String port, java.lang.String alias)</code></th> @@ -134,7 +141,7 @@ java.lang.String alias)</code></th> <div class="block">Method used to add a server to the API</div> </td> </tr> -<tr class="row-color" id="i1"> +<tr class="alt-color" id="i2"> <td class="col-first"><code>java.lang.String</code></td> <th class="col-second" scope="row"><code><span class="member-name-link"><a href="#changeAlias(java.lang.String,java.lang.String,java.lang.String)">changeAlias</a></span>​(java.lang.String token, java.lang.String alias, @@ -143,21 +150,21 @@ java.lang.String newAlias)</code></th> <div class="block">Method to change a alias of a FTP server</div> </td> </tr> -<tr class="alt-color" id="i2"> +<tr class="row-color" id="i3"> <td class="col-first"><code>java.lang.String</code></td> <th class="col-second" scope="row"><code><span class="member-name-link"><a href="#getAllFTPServers()">getAllFTPServers</a></span>()</code></th> <td class="col-last"> <div class="block">method that return all the FTP server know by the API</div> </td> </tr> -<tr class="row-color" id="i3"> +<tr class="alt-color" id="i4"> <td class="col-first"><code>java.lang.String</code></td> <th class="col-second" scope="row"><code><span class="member-name-link"><a href="#getServer(java.lang.String)">getServer</a></span>​(java.lang.String alias)</code></th> <td class="col-last"> <div class="block">Method that gives information about one FTP server</div> </td> </tr> -<tr class="alt-color" id="i4"> +<tr class="row-color" id="i5"> <td class="col-first"><code>java.lang.String</code></td> <th class="col-second" scope="row"><code><span class="member-name-link"><a href="#listRoot(java.lang.String,java.lang.String)">listRoot</a></span>​(java.lang.String token, java.lang.String alias)</code></th> @@ -165,7 +172,7 @@ java.lang.String alias)</code></th> <div class="block">Method to get the content of the root repertory of a server</div> </td> </tr> -<tr class="row-color" id="i5"> +<tr class="alt-color" id="i6"> <td class="col-first"><code>java.lang.String</code></td> <th class="col-second" scope="row"><code><span class="member-name-link"><a href="#login(java.lang.String,java.lang.String,java.lang.String)">login</a></span>​(java.lang.String user, java.lang.String pass, @@ -340,6 +347,26 @@ java.lang.String newAlias)</span> </dl> </section> </li> +<li> +<section class="detail" id="addServer(java.lang.String)"> +<h3>addServer</h3> +<div class="member-signature"><span class="annotations">@DELETE +@Path("{alias}") +@Produces("text/plain") +</span><span class="modifiers">public</span> <span class="return-type">java.lang.String</span> <span class="member-name">addServer</span>​(<span class="parameters">@PathParam("alias") +java.lang.String alias)</span> + throws <span class="exceptions"><a href="NoServerFoundException.html" title="class in sr2.flopbox">NoServerFoundException</a></span></div> +<div class="block">Method used to remove a server to the API</div> +<dl class="notes"> +<dt>Parameters:</dt> +<dd><code>alias</code> - the alias of the new server</dd> +<dt>Returns:</dt> +<dd>A string about the success of the deleting</dd> +<dt>Throws:</dt> +<dd><code><a href="NoServerFoundException.html" title="class in sr2.flopbox">NoServerFoundException</a></code> - If the alias dont refer to a server</dd> +</dl> +</section> +</li> </ul> </section> </li> diff --git a/doc/sr2/flopbox/Main.html b/doc/sr2/flopbox/Main.html index ddcad44..91b86e4 100644 --- a/doc/sr2/flopbox/Main.html +++ b/doc/sr2/flopbox/Main.html @@ -2,7 +2,7 @@ <!-- NewPage --> <html lang="en"> <head> -<!-- Generated by javadoc (15) on Thu Apr 01 01:09:08 CEST 2021 --> +<!-- Generated by javadoc (15) on Thu Apr 01 08:26:58 CEST 2021 --> <title>Main</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta name="dc.created" content="2021-04-01"> @@ -101,11 +101,6 @@ extends java.lang.Object</pre> </thead> <tbody> <tr class="alt-color"> -<td class="col-first"><code>static java.lang.String</code></td> -<th class="col-second" scope="row"><code><span class="member-name-link"><a href="#BASE_URI">BASE_URI</a></span></code></th> -<td class="col-last"> </td> -</tr> -<tr class="row-color"> <td class="col-first"><code>static sr2.flopbox.FTPTool</code></td> <th class="col-second" scope="row"><code><span class="member-name-link"><a href="#FTPtool">FTPtool</a></span></code></th> <td class="col-last"> </td> @@ -163,7 +158,7 @@ extends java.lang.Object</pre> </tr> <tr class="row-color" id="i1"> <td class="col-first"><code>static org.glassfish.grizzly.http.server.HttpServer</code></td> -<th class="col-second" scope="row"><code><span class="member-name-link"><a href="#startServer()">startServer</a></span>()</code></th> +<th class="col-second" scope="row"><code><span class="member-name-link"><a href="#startServer(java.lang.String)">startServer</a></span>​(java.lang.String BASE_URI)</code></th> <td class="col-last"> <div class="block">Starts Grizzly HTTP server exposing JAX-RS resources defined in this application.</div> </td> @@ -187,16 +182,6 @@ extends java.lang.Object</pre> <h2>Field Details</h2> <ul class="member-list"> <li> -<section class="detail" id="BASE_URI"> -<h3>BASE_URI</h3> -<div class="member-signature"><span class="modifiers">public static final</span> <span class="return-type">java.lang.String</span> <span class="member-name">BASE_URI</span></div> -<dl class="notes"> -<dt>See Also:</dt> -<dd><a href="../../constant-values.html#sr2.flopbox.Main.BASE_URI">Constant Field Values</a></dd> -</dl> -</section> -</li> -<li> <section class="detail" id="FTPtool"> <h3>FTPtool</h3> <div class="member-signature"><span class="modifiers">public static final</span> <span class="return-type">sr2.flopbox.FTPTool</span> <span class="member-name">FTPtool</span></div> @@ -225,11 +210,13 @@ extends java.lang.Object</pre> <h2>Method Details</h2> <ul class="member-list"> <li> -<section class="detail" id="startServer()"> +<section class="detail" id="startServer(java.lang.String)"> <h3>startServer</h3> -<div class="member-signature"><span class="modifiers">public static</span> <span class="return-type">org.glassfish.grizzly.http.server.HttpServer</span> <span class="member-name">startServer</span>()</div> +<div class="member-signature"><span class="modifiers">public static</span> <span class="return-type">org.glassfish.grizzly.http.server.HttpServer</span> <span class="member-name">startServer</span>​(<span class="parameters">java.lang.String BASE_URI)</span></div> <div class="block">Starts Grizzly HTTP server exposing JAX-RS resources defined in this application.</div> <dl class="notes"> +<dt>Parameters:</dt> +<dd><code>BASE_URI</code> - </dd> <dt>Returns:</dt> <dd>Grizzly HTTP server.</dd> </dl> diff --git a/doc/sr2/flopbox/NoServerFoundException.html b/doc/sr2/flopbox/NoServerFoundException.html index 8d58611..3f9bca7 100644 --- a/doc/sr2/flopbox/NoServerFoundException.html +++ b/doc/sr2/flopbox/NoServerFoundException.html @@ -2,7 +2,7 @@ <!-- NewPage --> <html lang="en"> <head> -<!-- Generated by javadoc (15) on Thu Apr 01 01:09:08 CEST 2021 --> +<!-- Generated by javadoc (15) on Thu Apr 01 08:26:58 CEST 2021 --> <title>NoServerFoundException</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta name="dc.created" content="2021-04-01"> diff --git a/doc/sr2/flopbox/cantConnectToServerException.html b/doc/sr2/flopbox/cantConnectToServerException.html index bf39446..2c9b6ff 100644 --- a/doc/sr2/flopbox/cantConnectToServerException.html +++ b/doc/sr2/flopbox/cantConnectToServerException.html @@ -2,7 +2,7 @@ <!-- NewPage --> <html lang="en"> <head> -<!-- Generated by javadoc (15) on Thu Apr 01 01:09:08 CEST 2021 --> +<!-- Generated by javadoc (15) on Thu Apr 01 08:26:58 CEST 2021 --> <title>cantConnectToServerException</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta name="dc.created" content="2021-04-01"> diff --git a/doc/sr2/flopbox/package-summary.html b/doc/sr2/flopbox/package-summary.html index 9d1b849..66f2031 100644 --- a/doc/sr2/flopbox/package-summary.html +++ b/doc/sr2/flopbox/package-summary.html @@ -2,7 +2,7 @@ <!-- NewPage --> <html lang="en"> <head> -<!-- Generated by javadoc (15) on Thu Apr 01 01:09:08 CEST 2021 --> +<!-- Generated by javadoc (15) on Thu Apr 01 08:26:58 CEST 2021 --> <title>sr2.flopbox</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta name="dc.created" content="2021-04-01"> diff --git a/doc/sr2/flopbox/package-tree.html b/doc/sr2/flopbox/package-tree.html index 2f2acba..845cc1a 100644 --- a/doc/sr2/flopbox/package-tree.html +++ b/doc/sr2/flopbox/package-tree.html @@ -2,7 +2,7 @@ <!-- NewPage --> <html lang="en"> <head> -<!-- Generated by javadoc (15) on Thu Apr 01 01:09:08 CEST 2021 --> +<!-- Generated by javadoc (15) on Thu Apr 01 08:26:58 CEST 2021 --> <title>sr2.flopbox Class Hierarchy</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta name="dc.created" content="2021-04-01"> diff --git a/src/main/java/sr2/flopbox/FtpServerService.java b/src/main/java/sr2/flopbox/FtpServerService.java index 1bc24a9..39e689c 100644 --- a/src/main/java/sr2/flopbox/FtpServerService.java +++ b/src/main/java/sr2/flopbox/FtpServerService.java @@ -139,5 +139,19 @@ public class FtpServerService { } + /*** + * Method used to remove a server to the API + * @param alias the alias of the new server + * @return A string about the success of the deleting + * @throws NoServerFoundException If the alias dont refer to a server + */ + @DELETE + @Path("{alias}") + @Produces(MediaType.TEXT_PLAIN) + public String addServer(@PathParam("alias") String alias) throws NoServerFoundException { + servList.remove(FTPTool.getFTServerFromAlias(alias)); + return "200 server is well deleting from the flopbox"; + } + } -- GitLab