Liferay 6.1.2-ce-ga3

com.liferay.portal.events
Class SecureRequestAction

java.lang.Object
  extended by com.liferay.portal.kernel.events.Action
      extended by 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.


Constructor Summary
SecureRequestAction()
           
 
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
 

Constructor Detail

SecureRequestAction

public SecureRequestAction()
Method Detail

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)

Liferay 6.1.2-ce-ga3