4A Server -
2.0
|
Servlet which allows Drupal CMS to send informations about it's users. More...
Public Member Functions | |
String | getServletInfo () |
Protected Member Functions | |
void | doGet (HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException |
void | doPost (HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException |
Private Member Functions | |
void | saveUsers (List users, Map< String, String > aData) |
User | processUser (Element userEl, Map< String, String > authData, String drupalAddress) |
String | loadDefaultSettings (User user) |
boolean | isAuthorizedByIp (String ipAdderess) |
boolean | isAuthorizedByName (String hostName) |
Static Private Member Functions | |
static String | getError () |
static Document | parseXml (String XMLString) throws SAXException, ParserConfigurationException, IOException |
Servlet which allows Drupal CMS to send informations about it's users.
Servlet which allows Drupal CMS to send informations about it's users, so users can be authenticated automatically with these informations. If user haven't account yet, it will be created.
Definition at line 67 of file DrupAuthServlet.java.
|
protected |
Handles the HTTP GET
method.
request | servlet request |
response | servlet response |
ServletException | if a servlet-specific error occurs |
IOException | if an I/O error occurs |
Definition at line 78 of file DrupAuthServlet.java.
|
protected |
Handles the HTTP POST
method.
request | servlet request |
response | servlet response |
ServletException | if a servlet-specific error occurs |
IOException | if an I/O error occurs |
Definition at line 101 of file DrupAuthServlet.java.
|
staticprivate |
Gets error page (there is not much informations because it can be used by attacker)
Definition at line 370 of file DrupAuthServlet.java.
String cz.vutbr.fit.knot.annotations.comet.DrupAuthServlet.getServletInfo | ( | ) |
Returns a short description of the servlet.
Definition at line 407 of file DrupAuthServlet.java.
|
private |
Method checks if request come from authorized server.
ipAdderess | ip addres of server |
Definition at line 441 of file DrupAuthServlet.java.
|
private |
Method checks if request come from authorized server.
hostName | host name of server |
Definition at line 464 of file DrupAuthServlet.java.
|
private |
Definition at line 411 of file DrupAuthServlet.java.
|
staticprivate |
Parses XML with data
XMLString | String with XML with data from Drupal |
Definition at line 388 of file DrupAuthServlet.java.
|
private |
Processes XML element with data about user and returns User object. If user is already in database, saved object will be returned. If user is not in database, new object will be created. It also stores authentication data into the given map.
userEl | XML element with data about user |
authData | Map to which authentication data will be stored. |
drupalAddress | Address from which user comes |
Definition at line 282 of file DrupAuthServlet.java.
|
private |
Saves data about users to the database and authentication data to AppBean
users | List of users to save |
aData | Map with authentication data |
Definition at line 207 of file DrupAuthServlet.java.