diff options
author | Santo Cariotti <santo@dcariotti.me> | 2022-01-19 22:51:10 +0100 |
---|---|---|
committer | Santo Cariotti <santo@dcariotti.me> | 2022-01-19 22:51:16 +0100 |
commit | ee61d8b905abe0d541838bd0f0793e5086855bb9 (patch) | |
tree | 0e2b65a1766e872a5d4e3bcfac48482b8b7c6dd8 /Year_3/TSDWL/WSDL/NetSix/NetSixServer/src | |
parent | 941483644d9bc45927d90e10d5f946cb2189fefb (diff) |
remove gitignore files
Diffstat (limited to 'Year_3/TSDWL/WSDL/NetSix/NetSixServer/src')
-rw-r--r-- | Year_3/TSDWL/WSDL/NetSix/NetSixServer/src/conf/MANIFEST.MF | 2 | ||||
-rw-r--r-- | Year_3/TSDWL/WSDL/NetSix/NetSixServer/src/java/me/dcariotti/wsserv/WsServ.java | 46 |
2 files changed, 0 insertions, 48 deletions
diff --git a/Year_3/TSDWL/WSDL/NetSix/NetSixServer/src/conf/MANIFEST.MF b/Year_3/TSDWL/WSDL/NetSix/NetSixServer/src/conf/MANIFEST.MF deleted file mode 100644 index 59499bc..0000000 --- a/Year_3/TSDWL/WSDL/NetSix/NetSixServer/src/conf/MANIFEST.MF +++ /dev/null @@ -1,2 +0,0 @@ -Manifest-Version: 1.0 - diff --git a/Year_3/TSDWL/WSDL/NetSix/NetSixServer/src/java/me/dcariotti/wsserv/WsServ.java b/Year_3/TSDWL/WSDL/NetSix/NetSixServer/src/java/me/dcariotti/wsserv/WsServ.java deleted file mode 100644 index 8ff11d1..0000000 --- a/Year_3/TSDWL/WSDL/NetSix/NetSixServer/src/java/me/dcariotti/wsserv/WsServ.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * To change this license header, choose License Headers in Project Properties. - * To change this template file, choose Tools | Templates - * and open the template in the editor. - */ -package me.dcariotti.wsserv; - -import java.util.HashMap; -import javax.jws.WebService; -import javax.jws.WebMethod; -import javax.jws.WebParam; - -/** - * - * @author dcariotti - */ -@WebService(serviceName = "WsServ") -public class WsServ { - - private HashMap<String, int[]> series; - - public WsServ() { - this.series = new HashMap<String, int[]>(); - this.series.put("The Witcher", new int[] {1, 2, 3, 4, 5, 6}); - this.series.put("Rick & Morty", new int[] {1, 2, 3, 4, 5, 6, 7, 8}); - this.series.put("After Life", new int[] {1, 4, 5, 6, 9}); - this.series.put("Lovesick", new int[] {1, 2, 3, 4, 5, 6, 7}); - this.series.put("Chuck", new int[] {1, 2, 3, 4, 5, 6}); - this.series.put("Halt and catch fire", new int[] {1, 2, 3}); - } - - @WebMethod(operationName = "richiedi") - public boolean richiedi(@WebParam(name = "name") final String name, @WebParam(name = "episode") final int episode) { - if (this.series.containsKey(name)) { - int[] episodes = this.series.get(name); - - for (int number : episodes) { - if (number == episode) { - return true; - } - } - } - - return false; - } -} |