Package controller

Class GestioneCategorieController

java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
controller.GestioneCategorieController
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

@WebServlet(name="GestioneCategorieController",
            value="/categorie/*",
            loadOnStartup=0)
public final class GestioneCategorieController
extends javax.servlet.http.HttpServlet
See Also:
Serialized Form
  • Field Summary

    Fields
    Modifier and Type Field Description
    private CategoriaService service
    Variabile per il service di Categoria.
  • Constructor Summary

    Constructors
    Constructor Description
    GestioneCategorieController()
    Costruttore per il controller Categoria.
    GestioneCategorieController​(CategoriaService newService)
    Costruttore per il controller Categoria.
  • Method Summary

    Modifier and Type Method Description
    void doPost​(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)  
    void init()  
    private void visualizzaCategorie​(javax.servlet.http.HttpServletRequest request)  

    Methods inherited from class javax.servlet.http.HttpServlet

    doDelete, doGet, doHead, doOptions, doPut, doTrace, getLastModified, service, service

    Methods inherited from class javax.servlet.GenericServlet

    destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • service

      private CategoriaService service
      Variabile per il service di Categoria.
  • Constructor Details

    • GestioneCategorieController

      public GestioneCategorieController​(CategoriaService newService)
      Costruttore per il controller Categoria.
      Parameters:
      newService - istanza di una classe che implementa CategoriaService
    • GestioneCategorieController

      public GestioneCategorieController()
      Costruttore per il controller Categoria.
  • Method Details

    • init

      public void init()
      Overrides:
      init in class javax.servlet.GenericServlet
    • doPost

      public void doPost​(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.io.IOException
      Overrides:
      doPost in class javax.servlet.http.HttpServlet
      Throws:
      java.io.IOException
    • visualizzaCategorie

      private void visualizzaCategorie​(javax.servlet.http.HttpServletRequest request)