public class AdminLoginFormHandler extends AdminFormHandler
| Modifier and Type | Field and Description | 
|---|---|
| static java.lang.String | CLASS_VERSIONClass version string | 
RESOURCE_BUNDLE, sResources, STATUS_ERROR_REDIRECT, STATUS_ERROR_STAY, STATUS_SUCCESSPARAM_DEFER_FORWARD_OR_REDIRECT, PARAM_USE_FORWARDSSERVICE_INFO_KEYDEFAULT_LOG_TRACE_STATUSDEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS| Constructor and Description | 
|---|
| AdminLoginFormHandler()Empty as all bean consructors usually are. | 
| Modifier and Type | Method and Description | 
|---|---|
| protected int | checkFormError(java.lang.String pErrorURL,
              DynamoHttpServletRequest pRequest,
              DynamoHttpServletResponse pResponse)Check to see if there were errors during the submit operation. | 
| java.lang.String | getFailureRedirect()Returns URL to which the user will be re-directed if the Login or Logout commands failed | 
| java.lang.String | getLoginRedirect()Returns URL to which the user gets re-directed upon successfull authentication | 
| java.lang.String | getLogoutRedirect()Returns URL to which the user gets re-directed upon successful Logout | 
| java.lang.String | getPassword()Returns Password passed through from the HTML form | 
| LoginUserAuthority | getUserAuthority()Returns UserAuthority that authenticates the user | 
| UserLoginManager | getUserManager()Returns Manages the login in process | 
| java.lang.String | getUsername()Returns Username passed through from the HTML form | 
| boolean | handleLogin(DynamoHttpServletRequest pRequest,
           DynamoHttpServletResponse pResponse)on submit, takes the username and password tries to authenticate using appropriate UserAuthority | 
| boolean | handleLogout(DynamoHttpServletRequest pRequest,
            DynamoHttpServletResponse pResponse)on submit logs the user out of the  admin UserAuthority | 
| void | setFailureRedirect(java.lang.String pFailureRedirect)Sets URL to which the user will be re-directed if the Login or Logout commands failed | 
| void | setLoginRedirect(java.lang.String pLoginRedirect)Sets URL to which the user gets re-directed upon successfull authentication | 
| void | setLogoutRedirect(java.lang.String pLogoutRedirect)Sets URL to which the user gets re-directed upon successful Logout | 
| void | setPassword(java.lang.String pPassword)Sets Password passed through from the HTML form | 
| void | setUserAuthority(LoginUserAuthority pUserAuthority)Sets UserAuthority that authenticates the user | 
| void | setUserManager(UserLoginManager pUserManager)Sets Manages the login in process | 
| void | setUsername(java.lang.String pUsername)Sets Username passed through from the HTML form | 
formatUserMessage, formatUserMessage, generatePropertyPath, getErrorRedirect, getLocale, setErrorRedirectaddFormException, addUncheckedFormException, afterSet, beforeSet, checkFormRedirect, createFormSubmissionMessage, getCancelURL, getCheckForValidSession, getFormError, getFormExceptions, getFormName, getMessagePort, getMessageSource, getMessageType, getPropertyExceptions, getSendMessages, getUncheckedFormExceptions, handleCancel, handleFormException, handleUncheckedFormException, hasUncheckedFormExceptions, isDeferForwardsAndRedirects, isRestorableForm, isUseForwards, isValidSession, redirectOrForward, resetFormExceptions, setCancelURL, setCheckForValidSession, setDeferForwardsAndRedirects, setFormName, setMessagePort, setMessageSource, setMessageType, setRestorableForm, setSendMessages, setUseForwardsafterGet, beforeGetaddLogListener, createAdminServlet, doStartService, doStopService, getAbsoluteName, getAdminServlet, getAdminServletOutputStreamEncoding, getLoggingForVlogging, getLogListenerCount, getLogListeners, getName, getNameContext, getNucleus, getRoot, getServiceConfiguration, getServiceInfo, isAdminServletUseServletOutputStream, isLoggingDebug, isLoggingError, isLoggingInfo, isLoggingTrace, isLoggingWarning, isRunning, logDebug, logDebug, logDebug, logError, logError, logError, logInfo, logInfo, logInfo, logTrace, logTrace, logTrace, logWarning, logWarning, logWarning, nameContextElementBound, nameContextElementUnbound, removeLogListener, reResolveThis, resolveName, resolveName, resolveName, resolveName, sendLogEvent, setAdminServletOutputStreamEncoding, setAdminServletUseServletOutputStream, setLoggingDebug, setLoggingError, setLoggingInfo, setLoggingTrace, setLoggingWarning, setNucleus, setServiceInfo, startService, stopServicevlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogDebugTrace, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarningpublic AdminLoginFormHandler()
public void setUsername(java.lang.String pUsername)
public java.lang.String getUsername()
public void setPassword(java.lang.String pPassword)
public java.lang.String getPassword()
public void setFailureRedirect(java.lang.String pFailureRedirect)
public java.lang.String getFailureRedirect()
public void setLoginRedirect(java.lang.String pLoginRedirect)
public java.lang.String getLoginRedirect()
public void setLogoutRedirect(java.lang.String pLogoutRedirect)
public java.lang.String getLogoutRedirect()
public void setUserAuthority(LoginUserAuthority pUserAuthority)
public LoginUserAuthority getUserAuthority()
public void setUserManager(UserLoginManager pUserManager)
public UserLoginManager getUserManager()
public boolean handleLogout(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
pRequest - pResponse - javax.servlet.ServletExceptionjava.io.IOExceptionpublic boolean handleLogin(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
pRequest - pResponse - javax.servlet.ServletExceptionjava.io.IOExceptionprotected int checkFormError(java.lang.String pErrorURL,
                 DynamoHttpServletRequest pRequest,
                 DynamoHttpServletResponse pResponse)
                      throws javax.servlet.ServletException,
                             java.io.IOException
AdminFormHandlercheckFormError in class AdminFormHandlerpErrorURL - the URL to redirect to if there are any form errorspRequest - the servlet's requestpResponse - the servlet's responsejavax.servlet.ServletException - if there was an error while executing the codejava.io.IOException - if there was an error with servlet ioSTATUS_SUCCESS, 
STATUS_ERROR_STAY, 
STATUS_ERROR_REDIRECT