* @throws FileNotFoundException
* @throws ClassNotFoundException
* @throws ParseException
*/
public static UserDetails getRequestUserInfo(File configDir, HttpServletRequest request) throws ClassNotFoundException, FileNotFoundException, JSONException, SQLException, IOException, ParseException {
UserDetails userDetails = new UserDetails();
userDetails.setOpenId(HttpCookies.getCookieValue(request, openIdCookieName));
userDetails.setUniqueId(HttpCookies.getCookieValue(request, uniqueIdCookieName));
if (userDetails.getOpenId() != null && userDetails.getUniqueId() != null) {
//get more info
DbHelper db = new DbHelper(configDir, request);
userDetails = db.getUserDetails(userDetails);
}