public class LoginServlet extends AbstractFreemarkerHttpServlet
| Modifier and Type | Field and Description |
|---|---|
static String |
PARAMETER_PASSWORD |
static String |
PARAMETER_USERNAME |
CONTENT_TYPE_MESSAGEHTTP, CONTENT_TYPE_TEXTHTML, COOKIE_REDIRECT_AFTER_LOGIN, HEADER_IFMODSINCE, HEADER_LASTMOD, METHOD_DELETE, METHOD_GET, METHOD_HEAD, METHOD_OPTIONS, METHOD_POST, METHOD_PUT, METHOD_TRACE| Constructor and Description |
|---|
LoginServlet() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterLogin(AbstractHttpRequestContext context) |
void |
doGet(AbstractHttpRequestContext context) |
void |
doPost(AbstractHttpRequestContext context) |
protected String |
getLoginFailedMessage(AbstractHttpRequestContext context)
Return value for "loginErrorMessage".
|
String |
getLoginSuccessPath() |
String |
getLoginTemplateFileName(AbstractHttpRequestContext context) |
String |
getPath() |
ServletSecureMode |
getSecureMode()
Return servlet secure mode
Non-registered users attempting to access servlet, redirected to login page (whe allowed - for example at http calls)
|
boolean |
isAllowedSessionConcurrentCalls()
Return 'true' if serlvet can be called concurrently at one time in some portal session
override to return 'false' for servlets that perform operations that MUST by finished before next call
|
LoginServletDataModel |
login(AbstractHttpRequestContext context) |
void |
redirectSuccessLogin(AbstractHttpRequestContext context) |
protected void |
writeLoginPage(AbstractHttpRequestContext context,
LoginServletDataModel dataModel) |
getConfiguration, getFreemarkerTemplatesPath, processFreemarkerTemplate, processFreemarkerTemplatecheckSecure, doConnect, doDelete, doHead, doOptions, doPatch, doPut, doTrace, fromJson, fromJson, getTemplateDataModel, sendApplicationRedirect, sendExternalRedirect, service, toJson, write, write, writelngetLock, isLocked, isSessionIdRequired, releaseLockcommit, coreException, destroy, executeQuery, executeQueryBigDecimal, executeQueryDate, executeQueryString, executeUpdate, getLogger, getSavepoint, getService, getService, getService, getServiceScope, getSession, init, logDebug, logError, logInfo, notNull, processExtensions, processExtensions, rollback, rollbackToSavepoint, setServiceScope, setSession, throwExceptionpublic static final String PARAMETER_USERNAME
public static final String PARAMETER_PASSWORD
public boolean isAllowedSessionConcurrentCalls()
AbstractServletisAllowedSessionConcurrentCalls in class AbstractServletpublic String getPath()
getPath in class AbstractServletpublic String getLoginTemplateFileName(AbstractHttpRequestContext context)
public String getLoginSuccessPath()
public ServletSecureMode getSecureMode()
AbstractServletgetSecureMode in class AbstractServletAbstractSiteContext.getLoginPath()protected void writeLoginPage(AbstractHttpRequestContext context, LoginServletDataModel dataModel)
public void doGet(AbstractHttpRequestContext context)
doGet in class AbstractHttpServletprotected String getLoginFailedMessage(AbstractHttpRequestContext context)
context - public LoginServletDataModel login(AbstractHttpRequestContext context)
public void afterLogin(AbstractHttpRequestContext context)
public void redirectSuccessLogin(AbstractHttpRequestContext context)
public void doPost(AbstractHttpRequestContext context)
doPost in class AbstractHttpServletCopyright © 2018. All rights reserved.