BAEL-325: Added UML diagrams reflecting the different filter strategies.
This commit is contained in:
parent
669ba5ef09
commit
5e5b0c9ce3
|
@ -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 |
|
@ -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 |
|
@ -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 |
|
@ -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
|
Loading…
Reference in New Issue