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.
| Constructor and Description |
|---|
SecureRequestAction() |
| Modifier and Type | Method and Description |
|---|---|
protected 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) |
public void run(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse)
throws com.liferay.portal.kernel.events.ActionException
run in class com.liferay.portal.kernel.events.Actioncom.liferay.portal.kernel.events.ActionExceptionprotected String getRedirect(javax.servlet.http.HttpServletRequest httpServletRequest)
protected boolean isRequiresSecure(javax.servlet.http.HttpServletRequest httpServletRequest)