| javax.servlet.http.HttpServlet org.jboss.test.web.servlets.UserInRoleServlet
UserInRoleServlet | public class UserInRoleServlet extends HttpServlet (Code) | | A servlet that calls isUserInRole for every role name defined in the
expectedUserRoles init parameter and validates that each role is assigned
to the user. Any role in the expectedUserRoles for which isUserInRole is
false is added to the X-ExpectedUserRoles-Errors reply header. If the user
has every role from the expectedUserRoles list, the X-ExpectedUserRoles-Errors
header will not be in the reply.
This servlet also calls isUserInRole for every role name defined in the
unexpectedUserRoles init parameter and validates that each role is NOT
assigned to the user. Any role in the unexpectedUserRoles for which
isUserInRole is true is added to the X-UnexpectedUserRoles-Errors reply
header. If the user has no roles from the unexpectedUserRoles list, the
X-UnexpectedUserRoles-Errors header will not be in the reply.
author: Scott.Stark@jboss.org version: $Revision: 57211 $ |
Methods inherited from javax.servlet.http.HttpServlet | protected void doDelete(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) protected void doHead(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) protected void doOptions(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) protected void doPut(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) protected void doTrace(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) protected long getLastModified(HttpServletRequest req)(Code)(Java Doc) protected void service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) public void service(ServletRequest req, ServletResponse res) throws ServletException, IOException(Code)(Java Doc)
|
|
|