refactor: Resolved issue #2979 Refactor Front Controller (#2986)

Co-authored-by: Mayankchoudhary294 <mayankchoudhary4302@example.com>
This commit is contained in:
Mayank Choudhary
2024-06-06 10:32:53 +05:30
committed by GitHub
parent f0611bcb10
commit f42e60ce47
5 changed files with 214 additions and 40 deletions
@@ -25,14 +25,14 @@
package com.iluwatar.front.controller;
/**
* The Front Controller is a presentation tier pattern. Essentially it defines a controller that
* The Front Controller is a presentation tier pattern. Essentially, it defines a controller that
* handles all requests for a website.
*
* <p>The Front Controller pattern consolidates request handling through a single handler object (
* {@link FrontController}). This object can carry out the common the behavior such as
* authorization, request logging and routing requests to corresponding views.
* {@link FrontController}). This object can carry out common behavior such as authorization,
* request logging and routing requests to corresponding views.
*
* <p>Typically the requests are mapped to command objects ({@link Command}) which then display the
* <p>Typically, the requests are mapped to command objects ({@link Command}) which then display the
* correct view ({@link View}).
*
* <p>In this example we have implemented two views: {@link ArcherView} and {@link CatapultView}.