String password = req.getParameter("password");
if (username == null
|| password == null
|| username.trim().equals("")
|| password.trim().equals("")) {
throw new AxisFault("invalid user name");
}
String adminUserName =
(String) ((AxisConfigurationImpl) configContext.getAxisConfiguration())
.getParameter(Constants.USER_NAME)
.getValue();
String adminPassword =
(String) ((AxisConfigurationImpl) configContext.getAxisConfiguration())
.getParameter(Constants.PASSWORD)
.getValue();
if (username != null
&& password != null
&& username.equals(adminUserName)
&& password.equals(adminPassword)) {
req.getSession().setAttribute(Constants.LOGGED, "Yes");
res.sendRedirect(ADMIN_JSP_NAME);
} else {
throw new AxisFault("invalid user name");
}
}