org.apache.lenya.cms.cocoon.acting
Class SslRedirectAction
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.cocoon.acting.AbstractAction
org.apache.cocoon.acting.AbstractConfigurableAction
org.apache.cocoon.acting.ConfigurableServiceableAction
org.apache.lenya.cms.cocoon.acting.SslRedirectAction
- All Implemented Interfaces:
- org.apache.avalon.framework.component.Component, org.apache.avalon.framework.configuration.Configurable, org.apache.avalon.framework.logger.LogEnabled, org.apache.avalon.framework.service.Serviceable, org.apache.cocoon.acting.Action
public class SslRedirectAction
- extends org.apache.cocoon.acting.ConfigurableServiceableAction
Returns a map if the current request needs a redirect to the https://
protocol.
This is the case if the policy requires SSL protection and the current request is not secure. The
map contains the redirect URI as value for the key redirectUri. Otherwise,
null
is returned.
Field Summary |
static java.lang.String |
KEY_REDIRECT_URI
The key to obtain the redirect URI from the returned map. |
Fields inherited from class org.apache.cocoon.acting.ConfigurableServiceableAction |
manager |
Fields inherited from class org.apache.cocoon.acting.AbstractConfigurableAction |
settings |
Fields inherited from class org.apache.cocoon.acting.AbstractAction |
EMPTY_MAP |
Fields inherited from interface org.apache.cocoon.acting.Action |
ROLE |
Method Summary |
java.util.Map |
act(org.apache.cocoon.environment.Redirector redirector,
org.apache.cocoon.environment.SourceResolver sourceResolver,
java.util.Map objectModel,
java.lang.String source,
org.apache.avalon.framework.parameters.Parameters parameters)
|
Methods inherited from class org.apache.cocoon.acting.ConfigurableServiceableAction |
service |
Methods inherited from class org.apache.cocoon.acting.AbstractConfigurableAction |
configure |
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled |
enableLogging, getLogger, setupLogger, setupLogger, setupLogger |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
KEY_REDIRECT_URI
public static final java.lang.String KEY_REDIRECT_URI
- The key to obtain the redirect URI from the returned map.
- See Also:
- Constant Field Values
SslRedirectAction
public SslRedirectAction()
act
public java.util.Map act(org.apache.cocoon.environment.Redirector redirector,
org.apache.cocoon.environment.SourceResolver sourceResolver,
java.util.Map objectModel,
java.lang.String source,
org.apache.avalon.framework.parameters.Parameters parameters)
throws java.lang.Exception
- Throws:
java.lang.Exception
Copyright © $ Apache Software Foundation. All Rights Reserved.