public interface Authorizer
| Modifier and Type | Method and Description |
|---|---|
boolean |
authorize(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
String role)
Decide is this request is authorized in the named role.
|
void |
doGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Process this request.
|
void |
init(javax.servlet.http.HttpServlet servlet)
Initialize with servlet parameters.
|
void |
setRoleSource(RoleSource roleSource)
Set the role source, if there is one.
|
void init(javax.servlet.http.HttpServlet servlet)
throws javax.servlet.ServletException
servlet - get init parameters from here.javax.servlet.ServletException - if errorvoid setRoleSource(RoleSource roleSource)
roleSource - tells whether a user has the named role.boolean authorize(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
String role)
throws IOException,
javax.servlet.ServletException
req - the requestres - the responserole - need this roleIOException - I/O error, eg networkjavax.servlet.ServletException - other errorsvoid doGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
throws javax.servlet.ServletException,
IOException
req - the requestres - the responseIOException - I/O error, eg networkjavax.servlet.ServletException - other errorsCopyright © 1999–2013 UCAR/Unidata. All rights reserved.