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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    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)
     

    Methods inherited from class com.liferay.portal.kernel.events.Action

    processLifecycleEvent, run

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 class com.liferay.portal.kernel.events.Action
      Throws:
      com.liferay.portal.kernel.events.ActionException
    • getRedirect

      protected String getRedirect(javax.servlet.http.HttpServletRequest httpServletRequest)
    • isRequiresSecure

      protected boolean isRequiresSecure(javax.servlet.http.HttpServletRequest httpServletRequest)