You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/manual/src/docs/asciidoc/_includes/servlet/architecture/overview.adoc
+7-6
Original file line number
Diff line number
Diff line change
@@ -4,14 +4,15 @@ Spring Security’s servlet support relies on the servlet `Filter` API.
4
4
This means that it can work with any application that runs in a servlet container.
5
5
It does not require that you use Spring in any other part of your application.
6
6
7
-
// FIXME: This might be a primer to describe in summary some of the external items (servlet container, spring's ApplicationContext being initialized, etc)
7
+
// FIXME: This might be a primer to describe in summary some of the external items (servlet container, Spring Frameworks's ApplicationContext being initialized, etc)
8
8
9
9
== Understanding the Servlet Filter API
10
10
11
-
Spring Security's servlet container support (whether you run in Tomcat or other Servlet container) is built on top of the `Filter` API.
12
-
This is done because the `Filter` API is a standard that allows injecting logic into an application in any Servlet container.
11
+
Spring Security's servlet container support (whether you run in Apache Tomcat or other servlet container) is built on top of the `Filter` API.
12
+
This is done because the `Filter` API is a standard that allows injecting logic into an application in any servlet container.
13
13
14
-
Since Spring Security is built on top of `Filter` objects, you should know how Servlet `Filter` objects work.
14
+
Since Spring Security is built on top of `javax.servlet.Filter` objects.
15
+
It will greatly benefit you if you understand the concept of interceptors and how `Filter` objects work.
15
16
16
17
The following example shows a simple `Filter` implementation:
17
18
@@ -46,12 +47,12 @@ public class SimpleFilter implements Filter {
46
47
47
48
IMPORTANT: If `chain.doFilter` is never invoked, neither is the rest of the application.
48
49
49
-
A Servlet `Filter` lets us apply logic around the rest of the application.
50
+
A servlet `Filter` lets us apply logic around the rest of the application.
50
51
This means that we can perform logic before, conditionally invoke the rest of the application, and perform logic afterwards in any servlet container.
51
52
52
53
== Registering a Servlet Filter
53
54
54
-
In order for a servlet `Filter` to be invoked, it must be registered with the Servlet container.
55
+
In order for a servlet `Filter` to be invoked, it must be registered with the servlet container.
0 commit comments