Skip to content

Commit 5e5b0c9

Browse files
christian-raedelslavisa-baeldung
authored andcommitted
BAEL-325: Added UML diagrams reflecting the different filter strategies.
1 parent 669ba5e commit 5e5b0c9

7 files changed

Lines changed: 80 additions & 1 deletion

File tree

‎patterns/intercepting-filter/src/main/java/com/baeldung/patterns/intercepting/filter/filters/TemplateFilter.java‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
import java.io.IOException;
1010

1111
public abstract class TemplateFilter extends BaseFilter {
12-
1312
protected abstract void preFilter(
1413
HttpServletRequest request,
1514
HttpServletResponse response
26 KB
Loading
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
@startuml
2+
scale 1.5
3+
4+
class FrontControllerServlet {
5+
void doGet()
6+
void doPost()
7+
}
8+
class FilterManager {
9+
{static} void process()
10+
}
11+
class FilterChainImpl {
12+
void doFilter()
13+
}
14+
class AuthenticationFilter {
15+
void doFilter()
16+
}
17+
class VisitorCounterFilter {
18+
void doFilter()
19+
}
20+
class FrontCommand {
21+
void process()
22+
}
23+
24+
FrontControllerServlet -- FrontCommand
25+
FrontCommand .right.-- FilterManager
26+
FilterManager -- FilterChainImpl
27+
FilterChainImpl .right.-- AuthenticationFilter
28+
AuthenticationFilter .right.-- VisitorCounterFilter
29+
@enduml
25.1 KB
Loading
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
@startuml
2+
scale 1.5
3+
4+
class FrontControllerServlet {
5+
void doGet()
6+
void doPost()
7+
}
8+
abstract class BaseFilter {
9+
void init()
10+
void destroy()
11+
}
12+
class LoggingFilter {
13+
void doFilter()
14+
}
15+
class EncodingFilter {
16+
void doFilter()
17+
}
18+
class FrontCommand {
19+
void process()
20+
}
21+
22+
FrontControllerServlet .right.-- FrontCommand
23+
FrontControllerServlet -- BaseFilter
24+
BaseFilter <|-- LoggingFilter
25+
BaseFilter <|-- EncodingFilter
26+
@enduml
25.4 KB
Loading
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
@startuml
2+
scale 1.5
3+
4+
class FrontControllerServlet {
5+
void doGet()
6+
void doPost()
7+
}
8+
abstract class BaseFilter {
9+
void init()
10+
void destroy()
11+
}
12+
abstract class TemplateFilter {
13+
{abstract} void preFilter()
14+
{abstract} void postFilter()
15+
--
16+
void doFilter()
17+
}
18+
class FrontCommand {
19+
void process()
20+
}
21+
22+
FrontControllerServlet .right.-- FrontCommand
23+
FrontControllerServlet -- BaseFilter
24+
BaseFilter <|-- TemplateFilter
25+
@enduml

0 commit comments

Comments
 (0)