org.apache.catalina.Context.findFilterDef()方法的使用及代码示例

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

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

Context.findFilterDef介绍

[英]Return the filter definition for the specified filter name, if any; otherwise return null.
[中]返回指定筛选器名称的筛选器定义(如果有);否则返回null

代码示例

代码示例来源:origin: psi-probe/psi-probe

FilterDef fd = context.findFilterDef(filterMap.getFilterName());
if (fd != null) {
 filterClass = fd.getFilterClass();

代码示例来源:origin: psi-probe/psi-probe

FilterDef fd = context.findFilterDef(filterMap.getFilterName());
if (fd != null) {
 filterClass = fd.getFilterClass();

代码示例来源:origin: psi-probe/psi-probe

FilterDef fd = context.findFilterDef(filterMap.getFilterName());
if (fd != null) {
 filterClass = fd.getFilterClass();

代码示例来源:origin: psi-probe/psi-probe

FilterDef fd = context.findFilterDef(filterMap.getFilterName());
if (fd != null) {
 filterClass = fd.getFilterClass();

代码示例来源:origin: org.apache.tomcat/tomcat-catalina

/**
 * Return the filter definition for the specified filter name, if any;
 * otherwise return <code>null</code>.
 *
 * @param name Filter name to look up
 * @return a string representation of the filter definition
 * @throws MBeanException propagated from the managed resource access
 */
public String findFilterDef(String name) throws MBeanException {
  Context context = doGetManagedResource();
  FilterDef filterDef = context.findFilterDef(name);
  return filterDef.toString();
}

代码示例来源:origin: org.ops4j.pax.tipi/org.ops4j.pax.tipi.tomcat-embed-core

/**
 * Return the filter definition for the specified filter name, if any;
 * otherwise return <code>null</code>.
 *
 * @param name Filter name to look up
 * @return a string representation of the filter definition
 * @throws MBeanException propagated from the managed resource access
 */
public String findFilterDef(String name) throws MBeanException {
  Context context = doGetManagedResource();
  FilterDef filterDef = context.findFilterDef(name);
  return filterDef.toString();
}

代码示例来源:origin: org.apache.catalina/com.springsource.org.apache.catalina

/**
 * Return the filter definition for the specified filter name, if any;
 * otherwise return <code>null</code>.
 *
 * @param name Filter name to look up
 */
public String findFilterDef(String name) throws MBeanException {
  
  Context context; 
  try {
    context = (Context)getManagedResource();
  } catch (InstanceNotFoundException e) {
    throw new MBeanException(e);
  } catch (RuntimeOperationsException e) {
    throw new MBeanException(e);
  } catch (InvalidTargetObjectTypeException e) {
    throw new MBeanException(e);
  }
  
  FilterDef filterDef = context.findFilterDef(name);
  return filterDef.toString();
  
}

代码示例来源:origin: codefollower/Tomcat-Research

/**
 * Return the filter definition for the specified filter name, if any;
 * otherwise return <code>null</code>.
 *
 * @param name Filter name to look up
 */
public String findFilterDef(String name) throws MBeanException {
  Context context;
  try {
    context = (Context)getManagedResource();
  } catch (InstanceNotFoundException e) {
    throw new MBeanException(e);
  } catch (RuntimeOperationsException e) {
    throw new MBeanException(e);
  } catch (InvalidTargetObjectTypeException e) {
    throw new MBeanException(e);
  }
  FilterDef filterDef = context.findFilterDef(name);
  return filterDef.toString();
}

代码示例来源:origin: com.ovea.tajin.server/tajin-server-jetty9

/**
 * Return the filter definition for the specified filter name, if any;
 * otherwise return <code>null</code>.
 *
 * @param name Filter name to look up
 */
public String findFilterDef(String name) throws MBeanException {
  
  Context context; 
  try {
    context = (Context)getManagedResource();
  } catch (InstanceNotFoundException e) {
    throw new MBeanException(e);
  } catch (RuntimeOperationsException e) {
    throw new MBeanException(e);
  } catch (InvalidTargetObjectTypeException e) {
    throw new MBeanException(e);
  }
  
  FilterDef filterDef = context.findFilterDef(name);
  return filterDef.toString();
  
}

代码示例来源:origin: com.ovea.tajin.servers/tajin-server-jetty9

/**
 * Return the filter definition for the specified filter name, if any;
 * otherwise return <code>null</code>.
 *
 * @param name Filter name to look up
 */
public String findFilterDef(String name) throws MBeanException {
  
  Context context; 
  try {
    context = (Context)getManagedResource();
  } catch (InstanceNotFoundException e) {
    throw new MBeanException(e);
  } catch (RuntimeOperationsException e) {
    throw new MBeanException(e);
  } catch (InvalidTargetObjectTypeException e) {
    throw new MBeanException(e);
  }
  
  FilterDef filterDef = context.findFilterDef(name);
  return filterDef.toString();
  
}

代码示例来源:origin: org.apache.geronimo.ext.tomcat/catalina

/**
 * Return the filter definition for the specified filter name, if any;
 * otherwise return <code>null</code>.
 *
 * @param name Filter name to look up
 */
public String findFilterDef(String name) throws MBeanException {
  
  Context context; 
  try {
    context = (Context)getManagedResource();
  } catch (InstanceNotFoundException e) {
    throw new MBeanException(e);
  } catch (RuntimeOperationsException e) {
    throw new MBeanException(e);
  } catch (InvalidTargetObjectTypeException e) {
    throw new MBeanException(e);
  }
  
  FilterDef filterDef = context.findFilterDef(name);
  return filterDef.toString();
  
}

代码示例来源:origin: com.ovea.tajin.server/tajin-server-tomcat7

/**
 * Return the filter definition for the specified filter name, if any;
 * otherwise return <code>null</code>.
 *
 * @param name Filter name to look up
 */
public String findFilterDef(String name) throws MBeanException {
  
  Context context; 
  try {
    context = (Context)getManagedResource();
  } catch (InstanceNotFoundException e) {
    throw new MBeanException(e);
  } catch (RuntimeOperationsException e) {
    throw new MBeanException(e);
  } catch (InvalidTargetObjectTypeException e) {
    throw new MBeanException(e);
  }
  
  FilterDef filterDef = context.findFilterDef(name);
  return filterDef.toString();
  
}

相关文章

微信公众号

最新文章

更多

Context类方法