File tree Expand file tree Collapse file tree 7 files changed +17
-8
lines changed
main/java/com/iluwatar/intercepting/filter
test/java/com/iluwatar/intercepting/filter Expand file tree Collapse file tree 7 files changed +17
-8
lines changed Original file line number Diff line number Diff line change 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 */
1010public 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 ());
Original file line number Diff line number Diff line change 1515import 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 *
Original file line number Diff line number Diff line change 11package 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 *
Original file line number Diff line number Diff line change 11package 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 *
Original file line number Diff line number Diff line change 11package 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
Original file line number Diff line number Diff line change 11package 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 *
Original file line number Diff line number Diff line change 44
55import com .iluwatar .intercepting .filter .App ;
66
7+ /**
8+ *
9+ * Application test.
10+ *
11+ */
712public class AppTest {
813
914 @ Test
You can’t perform that action at this time.
0 commit comments