// Path: src/java/rocks/teammolise/myunimol/webapp/configuration/ConfigurationManagerHandler.java
// public class ConfigurationManagerHandler {
// 	
// 	private static String filename;
//     
//     public static ConfigurationManager getInstance(){
//        
//         ConfigurationManager confManager = new ConfigurationManager(filename);
//               
//         return confManager;        
//     }
//     
//     public static void setConfigurationFilename(String pFilename) {
//     	filename = pFilename;
//     }
// }


import java.io.IOException;
import java.io.PrintWriter;
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 rocks.teammolise.myunimol.webapp.configuration.ConfigurationManagerHandler;
/*
 * 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 rocks.teammolise.myunimol.stubs;



/**
 *
 * @author emilio
 */
@WebServlet(name = "getAddressBook", urlPatterns = {"/getAddressBook"})
public class GetAddressBookStub extends HttpServlet {
	private static final long serialVersionUID = 6182573943289145857L;

	/**
     * Processes requests for both HTTP <code>GET</code> and <code>POST</code>
     * 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");
        PrintWriter out = response.getWriter();
        
        String token = request.getParameter("token");
// Path: src/java/rocks/teammolise/myunimol/webapp/configuration/ConfigurationManagerHandler.java
// public class ConfigurationManagerHandler {
// 	
// 	private static String filename;
//     
//     public static ConfigurationManager getInstance(){
//        
//         ConfigurationManager confManager = new ConfigurationManager(filename);
//               
//         return confManager;        
//     }
//     
//     public static void setConfigurationFilename(String pFilename) {
//     	filename = pFilename;
//     }
// }


// Path: src/java/rocks/teammolise/myunimol/stubs/GetAddressBookStub.java
import java.io.IOException;
import java.io.PrintWriter;
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 rocks.teammolise.myunimol.webapp.configuration.ConfigurationManagerHandler;

/*
 * 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 rocks.teammolise.myunimol.stubs;



/**
 *
 * @author emilio
 */
@WebServlet(name = "getAddressBook", urlPatterns = {"/getAddressBook"})
public class GetAddressBookStub extends HttpServlet {
	private static final long serialVersionUID = 6182573943289145857L;

	/**
     * Processes requests for both HTTP <code>GET</code> and <code>POST</code>
     * 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");
        PrintWriter out = response.getWriter();
        
        String token = request.getParameter("token");
        String realToken = ConfigurationManagerHandler.getInstance().getToken();