BAEL-325: Added UML diagrams reflecting the different filter strategies.

This commit is contained in:
Christian Rädel 2016-10-24 15:38:31 +02:00 committed by slavisa-baeldung
parent 669ba5ef09
commit 5e5b0c9ce3
7 changed files with 80 additions and 1 deletions

View File

@ -9,7 +9,6 @@ import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
public abstract class TemplateFilter extends BaseFilter {
protected abstract void preFilter(
HttpServletRequest request,
HttpServletResponse response

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

View File

@ -0,0 +1,29 @@
@startuml
scale 1.5
class FrontControllerServlet {
void doGet()
void doPost()
}
class FilterManager {
{static} void process()
}
class FilterChainImpl {
void doFilter()
}
class AuthenticationFilter {
void doFilter()
}
class VisitorCounterFilter {
void doFilter()
}
class FrontCommand {
void process()
}
FrontControllerServlet -- FrontCommand
FrontCommand .right.-- FilterManager
FilterManager -- FilterChainImpl
FilterChainImpl .right.-- AuthenticationFilter
AuthenticationFilter .right.-- VisitorCounterFilter
@enduml

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

View File

@ -0,0 +1,26 @@
@startuml
scale 1.5
class FrontControllerServlet {
void doGet()
void doPost()
}
abstract class BaseFilter {
void init()
void destroy()
}
class LoggingFilter {
void doFilter()
}
class EncodingFilter {
void doFilter()
}
class FrontCommand {
void process()
}
FrontControllerServlet .right.-- FrontCommand
FrontControllerServlet -- BaseFilter
BaseFilter <|-- LoggingFilter
BaseFilter <|-- EncodingFilter
@enduml

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

View File

@ -0,0 +1,25 @@
@startuml
scale 1.5
class FrontControllerServlet {
void doGet()
void doPost()
}
abstract class BaseFilter {
void init()
void destroy()
}
abstract class TemplateFilter {
{abstract} void preFilter()
{abstract} void postFilter()
--
void doFilter()
}
class FrontCommand {
void process()
}
FrontControllerServlet .right.-- FrontCommand
FrontControllerServlet -- BaseFilter
BaseFilter <|-- TemplateFilter
@enduml