private void setupXframeFilter(Map<String, String> params, WebAppContext webAppContext) {
    FilterHolder holder = new FilterHolder();
    holder.setClassName(QuotingInputFilter.class.getName());
    holder.setInitParameters(params);

    ServletHandler handler = webAppContext.getServletHandler();
    handler.addFilterWithMapping(holder, "/*", FilterMapping.ALL);

  }
Set servlet context attributes that can be used in jsp.
common/src/java/org/apache/hive/http/HttpServer.java