com.liferay.portal.events
Class SecureRequestAction
java.lang.Object
com.liferay.portal.kernel.events.Action
com.liferay.portal.events.SecureRequestAction
public class SecureRequestAction
- extends Action
This action ensures that all requests are secure. Extend this and override
the isRequiresSecure
method to programmatically decide when a
request requires HTTPS.
Method Summary |
protected String |
getRedirect(javax.servlet.http.HttpServletRequest request)
|
protected boolean |
isRequiresSecure(javax.servlet.http.HttpServletRequest request)
|
void |
run(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
|
Methods inherited from class com.liferay.portal.kernel.events.Action |
run |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SecureRequestAction
public SecureRequestAction()
run
public void run(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws ActionException
- Specified by:
run
in class Action
- Throws:
ActionException
getRedirect
protected String getRedirect(javax.servlet.http.HttpServletRequest request)
isRequiresSecure
protected boolean isRequiresSecure(javax.servlet.http.HttpServletRequest request)