public interface AccessControl
GenericServlet.init()
,
HttpServlet.service(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
and GenericServlet.destroy()
. When the secured servlet is destroyed,
the access control instance is destroyed itself, by calling the
destroy()
method.Modifier and Type | Method and Description |
---|---|
void |
destroy()
Destroy the access control instance, free all resources.
|
void |
init(javax.servlet.ServletConfig config)
Initialize the access control instance.
|
java.lang.Object |
runPrivileged(java.security.PrivilegedAction action,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Run the given action with the necessary privileges.
|
void init(javax.servlet.ServletConfig config) throws javax.servlet.ServletException
config
- servlet configurationjavax.servlet.ServletException
- in case of errorsjava.lang.Object runPrivileged(java.security.PrivilegedAction action, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException
GenericServlet.init()
(after this instance
was initialized)HttpServlet.service(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
GenericServlet.destroy()
(before this
instance is destroyed)action
- privileged actionrequest
- servlet request, when a request is handled, null for the
initializationresponse
- servlet response, when a request is handled, null for the
initializationjavax.servlet.ServletException
- in case of errorsvoid destroy()
GenericServlet.destroy()
.Copyright © 2022 Gentics Software. All Rights Reserved.