org.mortbay.jetty.servlet.Context.getServletHandler()方法的使用及代码示例

x33g5p2x  于2022-01-18 转载在 其他  
字(9.3k)|赞(0)|评价(0)|浏览(112)

本文整理了Java中org.mortbay.jetty.servlet.Context.getServletHandler()方法的一些代码示例,展示了Context.getServletHandler()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Context.getServletHandler()方法的具体详情如下:
包路径:org.mortbay.jetty.servlet.Context
类名称:Context
方法名:getServletHandler

Context.getServletHandler介绍

暂无

代码示例

代码示例来源:origin: com.github.jiayuhan-it/hadoop-common

/**
 * Define a filter for a context and set up default url mappings.
 */
private static void defineFilter(Context ctx, FilterHolder holder,
  FilterMapping fmap) {
 ServletHandler handler = ctx.getServletHandler();
 handler.addFilter(holder, fmap);
}

代码示例来源:origin: ch.cern.hadoop/hadoop-common

/**
 * Define a filter for a context and set up default url mappings.
 */
private static void defineFilter(Context ctx, FilterHolder holder,
  FilterMapping fmap) {
 ServletHandler handler = ctx.getServletHandler();
 handler.addFilter(holder, fmap);
}

代码示例来源:origin: io.hops/hadoop-common

/**
 * Define a filter for a context and set up default url mappings.
 */
private static void defineFilter(Context ctx, FilterHolder holder,
  FilterMapping fmap) {
 ServletHandler handler = ctx.getServletHandler();
 handler.addFilter(holder, fmap);
}

代码示例来源:origin: io.hops/hadoop-common

/**
 * Add the path spec to the filter path mapping.
 * @param pathSpec The path spec
 * @param webAppCtx The WebApplicationContext to add to
 */
protected void addFilterPathMapping(String pathSpec,
  Context webAppCtx) {
 ServletHandler handler = webAppCtx.getServletHandler();
 for(String name : filterNames) {
  FilterMapping fmap = new FilterMapping();
  fmap.setPathSpec(pathSpec);
  fmap.setFilterName(name);
  fmap.setDispatches(Handler.ALL);
  handler.addFilterMapping(fmap);
 }
}

代码示例来源:origin: io.hops/hadoop-common

/**
 * Add the path spec to the filter path mapping.
 * @param pathSpec The path spec
 * @param webAppCtx The WebApplicationContext to add to
 */
protected void addFilterPathMapping(String pathSpec,
  Context webAppCtx) {
 ServletHandler handler = webAppCtx.getServletHandler();
 for(String name : filterNames) {
  FilterMapping fmap = new FilterMapping();
  fmap.setPathSpec(pathSpec);
  fmap.setFilterName(name);
  fmap.setDispatches(Handler.ALL);
  handler.addFilterMapping(fmap);
 }
}

代码示例来源:origin: io.hops/hadoop-common

/**
 * Add the path spec to the filter path mapping.
 * @param pathSpec The path spec
 * @param webAppCtx The WebApplicationContext to add to
 */
protected void addFilterPathMapping(String pathSpec,
  Context webAppCtx) {
 ServletHandler handler = webAppCtx.getServletHandler();
 for(String name : filterNames) {
  FilterMapping fmap = new FilterMapping();
  fmap.setPathSpec(pathSpec);
  fmap.setFilterName(name);
  fmap.setDispatches(Handler.ALL);
  handler.addFilterMapping(fmap);
 }
}

代码示例来源:origin: com.github.jiayuhan-it/hadoop-common

/**
 * Add the path spec to the filter path mapping.
 * @param pathSpec The path spec
 * @param webAppCtx The WebApplicationContext to add to
 */
protected void addFilterPathMapping(String pathSpec,
  Context webAppCtx) {
 ServletHandler handler = webAppCtx.getServletHandler();
 for(String name : filterNames) {
  FilterMapping fmap = new FilterMapping();
  fmap.setPathSpec(pathSpec);
  fmap.setFilterName(name);
  fmap.setDispatches(Handler.ALL);
  handler.addFilterMapping(fmap);
 }
}

代码示例来源:origin: org.apache.tajo/tajo-core

/**
 * Add the path spec to the filter path mapping.
 * @param pathSpec The path spec
 * @param webAppCtx The WebApplicationContext to add to
 */
protected void addFilterPathMapping(String pathSpec,
  Context webAppCtx) {
 ServletHandler handler = webAppCtx.getServletHandler();
 for(String name : filterNames) {
  FilterMapping fmap = new FilterMapping();
  fmap.setPathSpec(pathSpec);
  fmap.setFilterName(name);
  fmap.setDispatches(Handler.ALL);
  handler.addFilterMapping(fmap);
 }
}

代码示例来源:origin: org.apache.hama/hama-core

/**
 * Add the path spec to the filter path mapping.
 * 
 * @param pathSpec The path spec
 * @param webAppCtx The WebApplicationContext to add to
 */
protected void addFilterPathMapping(String pathSpec, Context webAppCtx) {
 ServletHandler handler = webAppCtx.getServletHandler();
 for (String name : filterNames) {
  FilterMapping fmap = new FilterMapping();
  fmap.setPathSpec(pathSpec);
  fmap.setFilterName(name);
  fmap.setDispatches(Handler.ALL);
  handler.addFilterMapping(fmap);
 }
}

代码示例来源:origin: io.fabric8/fabric-hadoop

/**
 * Add the path spec to the filter path mapping.
 * @param pathSpec The path spec
 * @param webAppCtx The WebApplicationContext to add to
 */
protected void addFilterPathMapping(String pathSpec,
  Context webAppCtx) {
 ServletHandler handler = webAppCtx.getServletHandler();
 for(String name : filterNames) {
  FilterMapping fmap = new FilterMapping();
  fmap.setPathSpec(pathSpec);
  fmap.setFilterName(name);
  fmap.setDispatches(Handler.ALL);
  handler.addFilterMapping(fmap);
 }
}

代码示例来源:origin: com.github.jiayuhan-it/hadoop-common

/**
 * Add the path spec to the filter path mapping.
 * @param pathSpec The path spec
 * @param webAppCtx The WebApplicationContext to add to
 */
protected void addFilterPathMapping(String pathSpec,
  Context webAppCtx) {
 ServletHandler handler = webAppCtx.getServletHandler();
 for(String name : filterNames) {
  FilterMapping fmap = new FilterMapping();
  fmap.setPathSpec(pathSpec);
  fmap.setFilterName(name);
  fmap.setDispatches(Handler.ALL);
  handler.addFilterMapping(fmap);
 }
}

代码示例来源:origin: ch.cern.hadoop/hadoop-common

/**
 * Add the path spec to the filter path mapping.
 * @param pathSpec The path spec
 * @param webAppCtx The WebApplicationContext to add to
 */
protected void addFilterPathMapping(String pathSpec,
  Context webAppCtx) {
 ServletHandler handler = webAppCtx.getServletHandler();
 for(String name : filterNames) {
  FilterMapping fmap = new FilterMapping();
  fmap.setPathSpec(pathSpec);
  fmap.setFilterName(name);
  fmap.setDispatches(Handler.ALL);
  handler.addFilterMapping(fmap);
 }
}

代码示例来源:origin: ch.cern.hadoop/hadoop-common

/**
 * Add the path spec to the filter path mapping.
 * @param pathSpec The path spec
 * @param webAppCtx The WebApplicationContext to add to
 */
protected void addFilterPathMapping(String pathSpec,
  Context webAppCtx) {
 ServletHandler handler = webAppCtx.getServletHandler();
 for(String name : filterNames) {
  FilterMapping fmap = new FilterMapping();
  fmap.setPathSpec(pathSpec);
  fmap.setFilterName(name);
  fmap.setDispatches(Handler.ALL);
  handler.addFilterMapping(fmap);
 }
}

代码示例来源:origin: apache/tajo

/**
 * Add the path spec to the filter path mapping.
 * @param pathSpec The path spec
 * @param webAppCtx The WebApplicationContext to add to
 */
protected void addFilterPathMapping(String pathSpec,
  Context webAppCtx) {
 ServletHandler handler = webAppCtx.getServletHandler();
 for(String name : filterNames) {
  FilterMapping fmap = new FilterMapping();
  fmap.setPathSpec(pathSpec);
  fmap.setFilterName(name);
  fmap.setDispatches(Handler.ALL);
  handler.addFilterMapping(fmap);
 }
}

代码示例来源:origin: io.hops/hadoop-common

/**
 * Define a filter for a context and set up default url mappings.
 */
public static void defineFilter(Context ctx, String name,
  String classname, Map<String,String> parameters, String[] urls) {
 FilterHolder holder = new FilterHolder();
 holder.setName(name);
 holder.setClassName(classname);
 holder.setInitParameters(parameters);
 FilterMapping fmap = new FilterMapping();
 fmap.setPathSpecs(urls);
 fmap.setDispatches(Handler.ALL);
 fmap.setFilterName(name);
 ServletHandler handler = ctx.getServletHandler();
 handler.addFilter(holder, fmap);
}

代码示例来源:origin: io.hops/hadoop-common

/**
 * Define a filter for a context and set up default url mappings.
 */
public void defineFilter(Context ctx, String name,
  String classname, Map<String,String> parameters, String[] urls) {
 FilterHolder holder = new FilterHolder();
 holder.setName(name);
 holder.setClassName(classname);
 holder.setInitParameters(parameters);
 FilterMapping fmap = new FilterMapping();
 fmap.setPathSpecs(urls);
 fmap.setDispatches(Handler.ALL);
 fmap.setFilterName(name);
 ServletHandler handler = ctx.getServletHandler();
 handler.addFilter(holder, fmap);
}

代码示例来源:origin: ch.cern.hadoop/hadoop-common

/**
 * Define a filter for a context and set up default url mappings.
 */
public void defineFilter(Context ctx, String name,
  String classname, Map<String,String> parameters, String[] urls) {
 FilterHolder holder = new FilterHolder();
 holder.setName(name);
 holder.setClassName(classname);
 holder.setInitParameters(parameters);
 FilterMapping fmap = new FilterMapping();
 fmap.setPathSpecs(urls);
 fmap.setDispatches(Handler.ALL);
 fmap.setFilterName(name);
 ServletHandler handler = ctx.getServletHandler();
 handler.addFilter(holder, fmap);
}

代码示例来源:origin: com.github.jiayuhan-it/hadoop-common

/**
 * Define a filter for a context and set up default url mappings.
 */
public void defineFilter(Context ctx, String name,
  String classname, Map<String,String> parameters, String[] urls) {
 FilterHolder holder = new FilterHolder();
 holder.setName(name);
 holder.setClassName(classname);
 holder.setInitParameters(parameters);
 FilterMapping fmap = new FilterMapping();
 fmap.setPathSpecs(urls);
 fmap.setDispatches(Handler.ALL);
 fmap.setFilterName(name);
 ServletHandler handler = ctx.getServletHandler();
 handler.addFilter(holder, fmap);
}

代码示例来源:origin: io.fabric8/fabric-hadoop

/**
 * Define a filter for a context and set up default url mappings.
 */
protected void defineFilter(Context ctx, String name,
  String classname, Map<String,String> parameters, String[] urls) {
 FilterHolder holder = new FilterHolder();
 holder.setName(name);
 holder.setClassName(classname);
 holder.setInitParameters(parameters);
 FilterMapping fmap = new FilterMapping();
 fmap.setPathSpecs(urls);
 fmap.setDispatches(Handler.ALL);
 fmap.setFilterName(name);
 ServletHandler handler = ctx.getServletHandler();
 handler.addFilter(holder, fmap);
}

代码示例来源:origin: apache/hama

/**
 * Define a filter for a context and set up default url mappings.
 */
protected void defineFilter(Context ctx, String name, String classname,
  Map<String, String> parameters, String[] urls) {
 FilterHolder holder = new FilterHolder();
 holder.setName(name);
 holder.setClassName(classname);
 holder.setInitParameters(parameters);
 FilterMapping fmap = new FilterMapping();
 fmap.setPathSpecs(urls);
 fmap.setDispatches(Handler.ALL);
 fmap.setFilterName(name);
 ServletHandler handler = ctx.getServletHandler();
 handler.addFilter(holder, fmap);
}

相关文章