Class HttpHeaderFilter

    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      protected abstract void addHeaders​(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)  
      void destroy()  
      void doFilter​(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain chain)  
      protected java.lang.String getConfigParameter​(java.lang.String key)  
      void init​(javax.servlet.FilterConfig filterConfig)  
      protected boolean isXFrameSameOriginAllowed()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • ALLOW_X_FRAME_SAME_ORIGIN

        public static final java.lang.String ALLOW_X_FRAME_SAME_ORIGIN
        See Also:
        Constant Field Values
      • HAWTIO_ALLOW_X_FRAME_SAME_ORIGIN

        public static final java.lang.String HAWTIO_ALLOW_X_FRAME_SAME_ORIGIN
        See Also:
        Constant Field Values
    • Constructor Detail

      • HttpHeaderFilter

        public HttpHeaderFilter()
    • Method Detail

      • init

        public void init​(javax.servlet.FilterConfig filterConfig)
                  throws javax.servlet.ServletException
        Specified by:
        init in interface javax.servlet.Filter
        Throws:
        javax.servlet.ServletException
      • destroy

        public void destroy()
        Specified by:
        destroy in interface javax.servlet.Filter
      • doFilter

        public void doFilter​(javax.servlet.ServletRequest request,
                             javax.servlet.ServletResponse response,
                             javax.servlet.FilterChain chain)
                      throws java.io.IOException,
                             javax.servlet.ServletException
        Specified by:
        doFilter in interface javax.servlet.Filter
        Throws:
        java.io.IOException
        javax.servlet.ServletException
      • addHeaders

        protected abstract void addHeaders​(javax.servlet.http.HttpServletRequest request,
                                           javax.servlet.http.HttpServletResponse response)
                                    throws java.io.IOException,
                                           javax.servlet.ServletException
        Throws:
        java.io.IOException
        javax.servlet.ServletException
      • getConfigParameter

        protected java.lang.String getConfigParameter​(java.lang.String key)
      • isXFrameSameOriginAllowed

        protected boolean isXFrameSameOriginAllowed()