Class WMFrameOptionsHeaderFilter

java.lang.Object
org.springframework.web.filter.GenericFilterBean
com.wavemaker.runtime.security.filter.WMFrameOptionsHeaderFilter
All Implemented Interfaces:
jakarta.servlet.Filter, org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanNameAware, org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.InitializingBean, org.springframework.context.EnvironmentAware, org.springframework.core.env.EnvironmentCapable, org.springframework.web.context.ServletContextAware

public class WMFrameOptionsHeaderFilter extends org.springframework.web.filter.GenericFilterBean
Filter implementation to add header X-Frame-Options.
  • Field Summary

    Fields inherited from class org.springframework.web.filter.GenericFilterBean

    logger
  • Constructor Summary

    Constructors
    Constructor
    Description
    WMFrameOptionsHeaderFilter(com.wavemaker.app.security.models.FrameOptions frameOptions)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    doFilter(jakarta.servlet.ServletRequest request, jakarta.servlet.ServletResponse response, jakarta.servlet.FilterChain chain)
     
    protected void
     

    Methods inherited from class org.springframework.web.filter.GenericFilterBean

    addRequiredProperty, afterPropertiesSet, createEnvironment, destroy, getEnvironment, getFilterConfig, getFilterName, getServletContext, init, initBeanWrapper, setBeanName, setEnvironment, setServletContext

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • WMFrameOptionsHeaderFilter

      public WMFrameOptionsHeaderFilter(com.wavemaker.app.security.models.FrameOptions frameOptions)
  • Method Details

    • initFilterBean

      protected void initFilterBean() throws jakarta.servlet.ServletException
      Overrides:
      initFilterBean in class org.springframework.web.filter.GenericFilterBean
      Throws:
      jakarta.servlet.ServletException
    • doFilter

      public void doFilter(jakarta.servlet.ServletRequest request, jakarta.servlet.ServletResponse response, jakarta.servlet.FilterChain chain) throws IOException, jakarta.servlet.ServletException
      Throws:
      IOException
      jakarta.servlet.ServletException