Skip to content

Commit 0d8b3c9

Browse files
committed
iluwatar#107 Intercepting Filter example JavaDoc
1 parent 665dc70 commit 0d8b3c9

File tree

7 files changed

+17
-8
lines changed

7 files changed

+17
-8
lines changed

intercepting-filter/src/main/java/com/iluwatar/intercepting/filter/App.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,17 @@
22

33
/**
44
*
5-
* This is an app that checks whether the order request is valid through pre-processing done via Filters
6-
* Each field has its own corresponding Filter
5+
* This is an app that checks whether the order request is valid through pre-processing done via {@link Filter}.
6+
* Each field has its own corresponding {@link Filter}
77
* @author joshzambales
88
*
99
*/
1010
public class App{
1111

12+
/**
13+
* Program entry point
14+
* @param args command line args
15+
*/
1216
public static void main(String[] args) {
1317
FilterManager filterManager = new FilterManager(new Target());
1418
filterManager.addFilter(new NameFilter());

intercepting-filter/src/main/java/com/iluwatar/intercepting/filter/Client.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
import javax.swing.SwingUtilities;
1616

1717
/**
18-
* The Client class is responsible for handling the input and running them through filters inside the filterManager
18+
* The Client class is responsible for handling the input and running them through filters inside the {@link FilterManager}.
1919
*
20-
* This is where Filters come to play as the client pre-processes the request before being displayed in the Target
20+
* This is where {@link Filter}s come to play as the client pre-processes the request before being displayed in the {@link Target}.
2121
*
2222
* @author joshzambales
2323
*

intercepting-filter/src/main/java/com/iluwatar/intercepting/filter/Filter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package com.iluwatar.intercepting.filter;
22

33
/**
4-
* Filter interface Filters perform certain tasks prior or after execution of
4+
* Filters perform certain tasks prior or after execution of
55
* request by request handler. In this case, before the request is handled by
66
* the target, the request undergoes through each Filter
77
*

intercepting-filter/src/main/java/com/iluwatar/intercepting/filter/FilterManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package com.iluwatar.intercepting.filter;
22

33
/**
4-
* Filter Manager manages the filters and Filter Chain.
4+
* Filter Manager manages the filters and {@link FilterChain}.
55
*
66
* @author joshzambales
77
*

intercepting-filter/src/main/java/com/iluwatar/intercepting/filter/NameFilter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package com.iluwatar.intercepting.filter;
22

33
/**
4-
* Concrete implementation of filter This filter checks if the input in the Name
4+
* Concrete implementation of filter. This filter checks if the input in the Name
55
* field is valid. (alphanumeric)
66
*
77
* @author joshzambales

intercepting-filter/src/main/java/com/iluwatar/intercepting/filter/OrderFilter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package com.iluwatar.intercepting.filter;
22

33
/**
4-
* Concrete implementation of filter This checks for the order field
4+
* Concrete implementation of filter. This checks for the order field.
55
*
66
* @author joshzambales
77
*

intercepting-filter/src/test/java/com/iluwatar/intercepting/filter/AppTest.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@
44

55
import com.iluwatar.intercepting.filter.App;
66

7+
/**
8+
*
9+
* Application test.
10+
*
11+
*/
712
public class AppTest {
813

914
@Test

0 commit comments

Comments
 (0)