|
4 | 4 | * |
5 | 5 | * The Front Controller is a presentation tier pattern. Essentially it defines a |
6 | 6 | * controller that handles all requests for a web site. |
7 | | - * |
| 7 | + * <p> |
8 | 8 | * The Front Controller pattern consolidates request handling through a single handler |
9 | | - * object (FrontController). This object can carry out the common the behavior such as |
| 9 | + * object ({@link FrontController}). This object can carry out the common the behavior such as |
10 | 10 | * authorization, request logging and routing requests to corresponding views. |
11 | | - * |
12 | | - * Typically the requests are mapped to command objects (Command) which then display |
13 | | - * the correct view (View). |
14 | | - * |
15 | | - * In this example we have implemented two views: ArcherView and CatapultView. These |
16 | | - * are displayed by sending correct request to the FrontController object. For example, |
17 | | - * the ArcherView gets displayed when FrontController receives request "Archer". When |
18 | | - * the request is unknown, we display the error view (ErrorView). |
| 11 | + * <p> |
| 12 | + * Typically the requests are mapped to command objects ({@link Command}) which then display |
| 13 | + * the correct view ({@link View}). |
| 14 | + * <p> |
| 15 | + * In this example we have implemented two views: {@link ArcherView} and {@link CatapultView}. These |
| 16 | + * are displayed by sending correct request to the {@link FrontController} object. For example, |
| 17 | + * the {@link ArcherView} gets displayed when {@link FrontController} receives request "Archer". When |
| 18 | + * the request is unknown, we display the error view ({@link ErrorView}). |
19 | 19 | * |
20 | 20 | */ |
21 | 21 | public class App { |
22 | 22 |
|
| 23 | + /** |
| 24 | + * Program entry point |
| 25 | + * @param args command line args |
| 26 | + */ |
23 | 27 | public static void main(String[] args) { |
24 | 28 | FrontController controller = new FrontController(); |
25 | 29 | controller.handleRequest("Archer"); |
|
0 commit comments