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()
Deprecated.
|
String |
getLoginURL() |
String |
getSuccessPage()
Deprecated.
|
String |
getSuccessURL() |
String |
getUnauthorizedPage()
Deprecated.
|
String |
getUnauthorizedURL() |
void |
redirectToSavedRequest(String fallbackUrl) |
void |
removeSavedRequest() |
void |
saveRequest() |
void |
saveRequest(String contextPath)
Deprecated.
|
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)
@Deprecated public String getLoginPage()
getLoginPage
in interface LoginContextService
@Deprecated public String getSuccessPage()
getSuccessPage
in interface LoginContextService
@Deprecated public String getUnauthorizedPage()
getUnauthorizedPage
in interface LoginContextService
public String getLoginURL()
getLoginURL
in interface LoginContextService
public String getSuccessURL()
getSuccessURL
in interface LoginContextService
public String getUnauthorizedURL()
getUnauthorizedURL
in interface LoginContextService
public String getLocalelessPathWithinApplication()
getLocalelessPathWithinApplication
in interface LoginContextService
public String getLocaleFromPath(String path)
getLocaleFromPath
in interface LoginContextService
public void removeSavedRequest()
removeSavedRequest
in interface LoginContextService
public void saveRequest()
saveRequest
in interface LoginContextService
@Deprecated public void saveRequest(String contextPath)
saveRequest
in interface LoginContextService
public void redirectToSavedRequest(String fallbackUrl) throws IOException
redirectToSavedRequest
in interface LoginContextService
IOException
Copyright © 2004–2015. All rights reserved.