public class LoginContextServiceImpl extends Object implements LoginContextService
| Modifier and Type | Field and Description |
|---|---|
protected String |
defaultSuccessPage |
protected org.apache.tapestry5.services.ComponentEventLinkEncoder |
linkEncoder |
protected String |
loginPage |
protected String |
requestEncoding |
protected org.apache.tapestry5.services.RequestGlobals |
requestGlobals |
protected javax.servlet.http.HttpServletRequest |
servletRequest |
protected javax.servlet.http.HttpServletResponse |
servletResponse |
protected org.apache.tapestry5.internal.services.TapestrySessionFactory |
sessionFactory |
protected String |
unauthorizedPage |
| Constructor and Description |
|---|
LoginContextServiceImpl(String successUrl,
String loginUrl,
String unauthorizedUrl,
String requestEncoding,
javax.servlet.http.HttpServletRequest serlvetRequest,
javax.servlet.http.HttpServletResponse servletResponse,
org.apache.tapestry5.services.LocalizationSetter localizationSetter,
org.apache.tapestry5.internal.services.LinkSource linkSource,
org.apache.tapestry5.services.ComponentEventLinkEncoder linkEncoder,
org.apache.tapestry5.internal.services.TapestrySessionFactory sessionFactory,
org.apache.tapestry5.services.RequestGlobals requestGlobals) |
| Modifier and Type | Method and Description |
|---|---|
String |
getLocaleFromPath(String path) |
String |
getLocalelessPathWithinApplication() |
String |
getLoginPage() |
String |
getLoginURL() |
String |
getSuccessPage() |
String |
getSuccessURL() |
String |
getUnauthorizedPage() |
String |
getUnauthorizedURL() |
void |
redirectToSavedRequest(String fallbackUrl) |
void |
removeSavedRequest() |
void |
saveRequest() |
void |
saveRequest(String contextPath)
Deprecated.
|
protected final String loginPage
protected final String defaultSuccessPage
protected final String unauthorizedPage
protected final javax.servlet.http.HttpServletRequest servletRequest
protected final javax.servlet.http.HttpServletResponse servletResponse
protected final org.apache.tapestry5.services.ComponentEventLinkEncoder linkEncoder
protected final org.apache.tapestry5.internal.services.TapestrySessionFactory sessionFactory
protected final org.apache.tapestry5.services.RequestGlobals requestGlobals
protected final String requestEncoding
public LoginContextServiceImpl(@Inject @Symbol(value="security.successurl")
String successUrl,
@Inject @Symbol(value="security.loginurl")
String loginUrl,
@Inject @Symbol(value="security.unauthorizedurl")
String unauthorizedUrl,
@Inject @Symbol(value="tapestry.charset")
String requestEncoding,
javax.servlet.http.HttpServletRequest serlvetRequest,
javax.servlet.http.HttpServletResponse servletResponse,
org.apache.tapestry5.services.LocalizationSetter localizationSetter,
org.apache.tapestry5.internal.services.LinkSource linkSource,
org.apache.tapestry5.services.ComponentEventLinkEncoder linkEncoder,
org.apache.tapestry5.internal.services.TapestrySessionFactory sessionFactory,
org.apache.tapestry5.services.RequestGlobals requestGlobals)
public String getLoginPage()
getLoginPage in interface LoginContextServicepublic String getSuccessPage()
getSuccessPage in interface LoginContextServicepublic String getUnauthorizedPage()
getUnauthorizedPage in interface LoginContextServicepublic String getLoginURL()
getLoginURL in interface LoginContextServicepublic String getSuccessURL()
getSuccessURL in interface LoginContextServicepublic String getUnauthorizedURL()
getUnauthorizedURL in interface LoginContextServicepublic String getLocalelessPathWithinApplication()
getLocalelessPathWithinApplication in interface LoginContextServicepublic String getLocaleFromPath(String path)
getLocaleFromPath in interface LoginContextServicepublic void removeSavedRequest()
removeSavedRequest in interface LoginContextServicepublic void saveRequest()
saveRequest in interface LoginContextService@Deprecated public void saveRequest(String contextPath)
saveRequest in interface LoginContextServicepublic void redirectToSavedRequest(String fallbackUrl) throws IOException
redirectToSavedRequest in interface LoginContextServiceIOExceptionCopyright © 2004–2018. All rights reserved.