@Override
    public void doFilter(final ServletRequest request, final ServletResponse response, final FilterChain chain)
        throws IOException, ServletException {
      final HttpServletResponse res = (HttpServletResponse) response;
      res.setHeader("X-FRAME-OPTIONS", mode);
      chain.doFilter(request, response);
    }
Create a channel connector for "http/https" requests.
hcatalog/webhcat/svr/src/main/java/org/apache/hive/hcatalog/templeton/Main.java