From ee61d8b905abe0d541838bd0f0793e5086855bb9 Mon Sep 17 00:00:00 2001 From: Santo Cariotti Date: Wed, 19 Jan 2022 22:51:10 +0100 Subject: remove gitignore files --- .../TSDWL/WSDL/FootballClient/src/conf/MANIFEST.MF | 2 - .../ws.footballpool.dataaccess.eu/info.wso.wsdl | 1822 -------------------- .../src/java/it/dmi/exams/tsdwl/StadiumInfo.java | 87 - .../src/java/it/dmi/exams/tsdwl/StadiumList.java | 103 -- 4 files changed, 2014 deletions(-) delete mode 100644 Year_3/TSDWL/WSDL/FootballClient/src/conf/MANIFEST.MF delete mode 100644 Year_3/TSDWL/WSDL/FootballClient/src/conf/xml-resources/web-service-references/info/wsdl/ws.footballpool.dataaccess.eu/info.wso.wsdl delete mode 100644 Year_3/TSDWL/WSDL/FootballClient/src/java/it/dmi/exams/tsdwl/StadiumInfo.java delete mode 100644 Year_3/TSDWL/WSDL/FootballClient/src/java/it/dmi/exams/tsdwl/StadiumList.java (limited to 'Year_3/TSDWL/WSDL/FootballClient/src') diff --git a/Year_3/TSDWL/WSDL/FootballClient/src/conf/MANIFEST.MF b/Year_3/TSDWL/WSDL/FootballClient/src/conf/MANIFEST.MF deleted file mode 100644 index 59499bc..0000000 --- a/Year_3/TSDWL/WSDL/FootballClient/src/conf/MANIFEST.MF +++ /dev/null @@ -1,2 +0,0 @@ -Manifest-Version: 1.0 - diff --git a/Year_3/TSDWL/WSDL/FootballClient/src/conf/xml-resources/web-service-references/info/wsdl/ws.footballpool.dataaccess.eu/info.wso.wsdl b/Year_3/TSDWL/WSDL/FootballClient/src/conf/xml-resources/web-service-references/info/wsdl/ws.footballpool.dataaccess.eu/info.wso.wsdl deleted file mode 100644 index 194bce6..0000000 --- a/Year_3/TSDWL/WSDL/FootballClient/src/conf/xml-resources/web-service-references/info/wsdl/ws.footballpool.dataaccess.eu/info.wso.wsdl +++ /dev/null @@ -1,1822 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Returns an array with the information about the given yellow and red cards in all games. What date, minute, teams that were playing and player name - - - - - Returns an array with the id, name, country and flag reference of all players. Pass a 0 for all players and 1 for only the selected players. - - - - - Returns an array with the names of all players that have a yellow or a red card. The number of yellow and red cards is returned. - - - - - Returns an array with the names of all players that have the passed player role. If you pass a team name the result will be filtered on that team. For possible team names call the function TeamNames. For possible role codes call the function PlayerRoles - - - - - Returns an array with the information stored about all stadiums. The array contains the names, the city where the stadium can be found, the seat capacity, the google maps and wikipedia URLs - - - - - Returns an array with the names of all the coaches and the team name he/she is coaching - - - - - Returns the total number of red or yellow cards given for all games (iGameNumber < 1) or a specific game. For the game numbers call the function ResultsAllGames - - - - - Returns an array with all the city names where games are played - - - - - Get the top 25 countries starting with or containing the value of sName - - - - - Returns an array with a play levels and per level the start and end game date and ID - - - - - Returns an array of Game IDs grouped by City Name - - - - - Returns the results of a given game (pass the game ID). For the game numbers call the function ResultsAllGames - - - - - Returns the score for a team in a game. For the game numbers call the function ResultsAllGames. For the team ID call the function Teams - - - - - Returns the total number of goals scored - - - - - Returns the date of the first game in this group - - - - - Returns a list of groups (poule phase and later round of 16 etc) and the information such as name and date first and last game - - - - - Returns the date of the last game in this group. For the group code call the function GroupInfo - - - - - Returns an the standings in each group by passing the group ID. For the group ID call the function GroupInfo - - - - - Returns the date of the first game in this level. For a level Number call the Levels Function. - - - - - Returns the date of the last game in this level For a level number call the Levels function. For a level Number call the Levels Function. - - - - - Returns a array with level numbers. The numbers can be used in functions that require or offer an option to pass a level number such as LevelFirstGameDate - - - - - Returns a list with tournament dates - - - - - Returns an array with the next games of date that is greater than or equal to today. Only games of one day are returned. - - - - - Get the top 10 players where name, fullname, firstname or lastname contains the value of sName - - - - - Returns an array with the roles a player can have (defender etc) - - - - - Returns an array with the names of all players that have a yellow or a red card. The number of yellow and red cards is returned. - - - - - Returns an array with the names of all players that have scored a goal. - - - - - Returns game result of all games overall, in one group or at one level. When groupid < 1 All games are processed (optionally filtered by level). A Group ID or level can be retrieved via GroupInfo. - - - - - Returns a URL that can be used to show a small map of the stadium. For the name of the stadium call the funciton StadiumNames - - - - - Returns the information stored about a particular stadium. For that pass the exact name of the stadium. For the name of the stadium call the funciton StadiumNames - - - - - Returns an array of stadium names where the games are played - - - - - Returns a list of team IDs based on passed GroupCode (e.g A or H). For the group code call the function GroupInfo - - - - - Get the players of a team. This is the current squad. For the team name call the function TeamNames. Pass a 1 for selected players only or 0 for all registered players that belong to the team (now and in the past) - - - - - Returns an array with team names. The names can be used in functions that require or offer an option to pass a teamname - - - - - Get the top 10 teams starting with or containing the value of sTeamName. For the team name call the function TeamNames - - - - - Returns an array with the 5 best performing players. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - DataFlex Web Service for public information from the DataFlex Football Pool - - - - - - - - diff --git a/Year_3/TSDWL/WSDL/FootballClient/src/java/it/dmi/exams/tsdwl/StadiumInfo.java b/Year_3/TSDWL/WSDL/FootballClient/src/java/it/dmi/exams/tsdwl/StadiumInfo.java deleted file mode 100644 index d3d3f4f..0000000 --- a/Year_3/TSDWL/WSDL/FootballClient/src/java/it/dmi/exams/tsdwl/StadiumInfo.java +++ /dev/null @@ -1,87 +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 it.dmi.exams.tsdwl; - -import https.footballpool_dataaccess.TStadiumInfo; -import java.io.IOException; -import java.io.PrintWriter; -import javax.servlet.RequestDispatcher; -import javax.servlet.ServletException; -import javax.servlet.annotation.WebServlet; -import javax.servlet.http.HttpServlet; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; - -/** - * - * @author dcariotti - */ -@WebServlet(name = "StadiumInfo", urlPatterns = {"/StadiumInfo"}) -public class StadiumInfo extends HttpServlet { - /** - * Handles the HTTP GET method. - * - * @param request servlet request - * @param response servlet response - * @throws ServletException if a servlet-specific error occurs - * @throws IOException if an I/O error occurs - */ - @Override - protected void doGet(HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - RequestDispatcher view = request.getRequestDispatcher("search.html"); - - view.forward(request, response); - } - - /** - * Handles the HTTP POST method. - * - * @param request servlet request - * @param response servlet response - * @throws ServletException if a servlet-specific error occurs - * @throws IOException if an I/O error occurs - */ - @Override - protected void doPost(HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - TStadiumInfo stadium = this.stadiumInfo(request.getParameter("name")); - - response.setContentType("text/html;charset=UTF-8"); - try (PrintWriter out = response.getWriter()) { - out.println(""); - if (stadium.getSName().length() == 0) { - out.println("

Stadium not found!

"); - } else { - out.println("

Stadium info:

"); - out.println(stadium.getSName()); - out.println(stadium.getISeatsCapacity()); - out.println(stadium.getSCityName()); - out.println(stadium.getSGoogleMapsURL()); - out.println(stadium.getSWikipediaURL()); - } - out.println(""); - } - - } - - /** - * Returns a short description of the servlet. - * - * @return a String containing servlet description - */ - @Override - public String getServletInfo() { - return "Short description"; - }// - - private static TStadiumInfo stadiumInfo(java.lang.String sStadiumName) { - https.footballpool_dataaccess.Info service = new https.footballpool_dataaccess.Info(); - https.footballpool_dataaccess.InfoSoapType port = service.getInfoSoap(); - return port.stadiumInfo(sStadiumName); - } - -} diff --git a/Year_3/TSDWL/WSDL/FootballClient/src/java/it/dmi/exams/tsdwl/StadiumList.java b/Year_3/TSDWL/WSDL/FootballClient/src/java/it/dmi/exams/tsdwl/StadiumList.java deleted file mode 100644 index 9f3d037..0000000 --- a/Year_3/TSDWL/WSDL/FootballClient/src/java/it/dmi/exams/tsdwl/StadiumList.java +++ /dev/null @@ -1,103 +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 it.dmi.exams.tsdwl; - -import https.footballpool_dataaccess.ArrayOftStadiumInfo; -import https.footballpool_dataaccess.TStadiumInfo; -import java.io.IOException; -import java.io.PrintWriter; -import javax.servlet.RequestDispatcher; -import javax.servlet.ServletException; -import javax.servlet.annotation.WebServlet; -import javax.servlet.http.HttpServlet; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; -import java.util.ArrayList; -import java.util.List; -/** - * - * @author dcariotti - */ -@WebServlet(name = "StadiumList", urlPatterns = {"/StadiumList"}) -public class StadiumList extends HttpServlet { - - /** - * Processes requests for both HTTP GET and POST - * methods. - * - * @param request servlet request - * @param response servlet response - * @throws ServletException if a servlet-specific error occurs - * @throws IOException if an I/O error occurs - */ - protected void processRequest(HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - response.setContentType("text/html;charset=UTF-8"); - try (PrintWriter out = response.getWriter()) { - /* TODO output your page here. You may use following sample code. */ - out.println(""); - out.println(""); - out.println(""); - out.println("Servlet StadiumList"); - out.println(""); - out.println(""); - out.println("

Servlet StadiumList at " + request.getContextPath() + "

"); - out.println(""); - out.println(""); - } - } - - // - /** - * Handles the HTTP GET method. - * - * @param request servlet request - * @param response servlet response - * @throws ServletException if a servlet-specific error occurs - * @throws IOException if an I/O error occurs - */ - @Override - protected void doGet(HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - List stadiumList = this.allStadiumInfo().getTStadiumInfo(); - - request.setAttribute("stadiumList", stadiumList); - RequestDispatcher view = request.getRequestDispatcher("list.jsp"); - - view.forward(request, response); - } - - /** - * Handles the HTTP POST method. - * - * @param request servlet request - * @param response servlet response - * @throws ServletException if a servlet-specific error occurs - * @throws IOException if an I/O error occurs - */ - @Override - protected void doPost(HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - processRequest(request, response); - } - - /** - * Returns a short description of the servlet. - * - * @return a String containing servlet description - */ - @Override - public String getServletInfo() { - return "Short description"; - }// - - private static ArrayOftStadiumInfo allStadiumInfo() { - https.footballpool_dataaccess.Info service = new https.footballpool_dataaccess.Info(); - https.footballpool_dataaccess.InfoSoapType port = service.getInfoSoap(); - return port.allStadiumInfo(); - } - -} -- cgit v1.2.3-18-g5258