public class XmlSecurityDatabase
extends javax.servlet.http.HttpServlet
| Constructor and Description |
|---|
XmlSecurityDatabase() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
booleanAuthenticate(String username,
String password) |
void |
destroy()
Destroys the servlet.
|
protected void |
doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Handles the HTTP
GET method. |
protected void |
doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Handles the HTTP
POST method. |
static WebappUsers |
getSecurityDatabase()
Return the jndi path for this database.
|
String |
getServletInfo()
Returns a short description of the servlet.
|
void |
init(javax.servlet.ServletConfig config)
Initializes the servlet.
|
static boolean |
isInitialized() |
static boolean |
isUserInRole(String username,
String role) |
protected void |
processRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Processes requests for both HTTP
GET and POST methods. |
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, servicepublic void init(javax.servlet.ServletConfig config)
throws javax.servlet.ServletException
init in interface javax.servlet.Servletinit in class javax.servlet.GenericServletjavax.servlet.ServletExceptionpublic void destroy()
destroy in interface javax.servlet.Servletdestroy in class javax.servlet.GenericServletprotected void processRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
IOException
GET and POST methods.request - servlet requestresponse - servlet responsejavax.servlet.ServletExceptionIOExceptionprotected void doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
IOException
GET method.doGet in class javax.servlet.http.HttpServletrequest - servlet requestresponse - servlet responsejavax.servlet.ServletExceptionIOExceptionprotected void doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
IOException
POST method.doPost in class javax.servlet.http.HttpServletrequest - servlet requestresponse - servlet responsejavax.servlet.ServletExceptionIOExceptionpublic static WebappUsers getSecurityDatabase()
public static boolean isInitialized()
public String getServletInfo()
getServletInfo in interface javax.servlet.ServletgetServletInfo in class javax.servlet.GenericServletCopyright © 2019 B3Partners B.V.. All rights reserved.