public boolean isHttpFilteringEnabled(HiveConf hiveConf){
    return hiveConf.getBoolean(HiveConf.ConfVars.HIVE_SERVER2_XSRF_FILTER_ENABLED.varname, false) ||
        hiveConf.getBoolean(HiveConf.ConfVars.HIVE_SERVER2_CSRF_FILTER_ENABLED.varname, false);
  }
The config parameter can be like "path", "/path", "/path/", "path/*", "/path1/path2/*" and so on.
httpPath should end up as "/*", "/path/*" or "/path1/../pathN/*"
@param httpPath
@return
service/src/java/org/apache/hive/service/cli/thrift/ThriftHttpCLIService.java