Package org.ametys.web.frontoffice
Class FrontLoginScreenRedirectAction
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.cocoon.acting.AbstractAction
org.apache.cocoon.acting.ServiceableAction
org.ametys.web.frontoffice.FrontLoginScreenRedirectAction
- All Implemented Interfaces:
Component
,LogEnabled
,Serviceable
,Action
This action redirects to the login page
Can be /LANG/login.html if it does exist
Otherwise redirects to cocoon://SITE/LANG/_plugins/web/page/frontoffice-formbasedauthentication/default-display/ACTION.html
The LANG is determined from the requested url*, otherwise "en" is selected, otherwise the first available language is selected.
Parameters are
action: login or failed, transmitted to render.
site: the current site.
siteContextPath: the site's context path.
requestedURL: the requestedURL for authentication, starting with the site's context path.
-
Field Summary
Fields inherited from class org.apache.cocoon.acting.ServiceableAction
manager
Fields inherited from class org.apache.cocoon.acting.AbstractAction
EMPTY_MAP
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionact
(Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters parameters) void
service
(ServiceManager smanager) Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
Constructor Details
-
FrontLoginScreenRedirectAction
public FrontLoginScreenRedirectAction()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Overrides:
service
in classServiceableAction
- Throws:
ServiceException
-
act
public Map act(Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters parameters) throws Exception - Throws:
Exception
-