Package com.liferay.portal.events
Class SecureRequestAction
Object
com.liferay.portal.kernel.events.Action
com.liferay.portal.events.SecureRequestAction
- All Implemented Interfaces:
com.liferay.portal.kernel.events.LifecycleAction
public class SecureRequestAction
extends com.liferay.portal.kernel.events.Action
This action ensures that all requests are secure. Extend this and override
the isRequiresSecure
method to programmatically decide when a
request requires HTTPS.
- Author:
- Brian Wing Shun Chan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected String
getRedirect
(javax.servlet.http.HttpServletRequest httpServletRequest) protected boolean
isRequiresSecure
(javax.servlet.http.HttpServletRequest httpServletRequest) void
run
(javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse) Methods inherited from class com.liferay.portal.kernel.events.Action
processLifecycleEvent, run
-
Constructor Details
-
SecureRequestAction
public SecureRequestAction()
-
-
Method Details
-
run
public void run(javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse) throws com.liferay.portal.kernel.events.ActionException - Specified by:
run
in classcom.liferay.portal.kernel.events.Action
- Throws:
com.liferay.portal.kernel.events.ActionException
-
getRedirect
-
isRequiresSecure
protected boolean isRequiresSecure(javax.servlet.http.HttpServletRequest httpServletRequest)
-