org.apache.catalina.core.ApplicationContext.getResourcePathsInternal()方法的使用及代码示例

x33g5p2x  于2022-01-16 转载在 其他  
字(6.0k)|赞(0)|评价(0)|浏览(100)

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

ApplicationContext.getResourcePathsInternal介绍

[英]Internal implementation of getResourcesPath() logic.
[中]getResourcesPath()逻辑的内部实现。

代码示例

代码示例来源:origin: tomcat/catalina

/**
 * Return a Set containing the resource paths of resources member of the
 * specified collection. Each path will be a String starting with
 * a "/" character. The returned set is immutable.
 *
 * @param path Collection path
 */
public Set getResourcePaths(String path) {
  // Validate the path argument
  if (path == null) {
    return null;
  }
  if (!path.startsWith("/")) {
    throw new IllegalArgumentException
      (sm.getString("applicationContext.resourcePaths.iae", path));
  }
  path = normalize(path);
  if (path == null)
    return (null);
  DirContext resources = context.getResources();
  if (resources != null) {
    return (getResourcePathsInternal(resources, path));
  }
  return (null);
}

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

/**
 * Return a Set containing the resource paths of resources member of the
 * specified collection. Each path will be a String starting with
 * a "/" character. The returned set is immutable.
 *
 * @param path Collection path
 */
@Override
public Set<String> getResourcePaths(String path) {
  // Validate the path argument
  if (path == null) {
    return null;
  }
  if (!path.startsWith("/")) {
    throw new IllegalArgumentException
      (sm.getString("applicationContext.resourcePaths.iae", path));
  }
  String normalizedPath = RequestUtil.normalize(path);
  if (normalizedPath == null)
    return (null);
  DirContext resources = context.getResources();
  if (resources != null) {
    return (getResourcePathsInternal(resources, normalizedPath));
  }
  return (null);
}

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

/**
 * Return a Set containing the resource paths of resources member of the
 * specified collection. Each path will be a String starting with
 * a "/" character. The returned set is immutable.
 *
 * @param path Collection path
 */
@Override
public Set<String> getResourcePaths(String path) {
  // Validate the path argument
  if (path == null) {
    return null;
  }
  if (!path.startsWith("/")) {
    throw new IllegalArgumentException
      (sm.getString("applicationContext.resourcePaths.iae", path));
  }
  String normalizedPath = RequestUtil.normalize(path);
  if (normalizedPath == null)
    return (null);
  DirContext resources = context.getResources();
  if (resources != null) {
    return (getResourcePathsInternal(resources, normalizedPath));
  }
  return (null);
}

代码示例来源:origin: jboss.web/jbossweb

/**
 * Return a Set containing the resource paths of resources member of the
 * specified collection. Each path will be a String starting with
 * a "/" character. The returned set is immutable.
 *
 * @param path Collection path
 */
public Set getResourcePaths(String path) {
  // Validate the path argument
  if (path == null) {
    return null;
  }
  if (!path.startsWith("/")) {
    throw new IllegalArgumentException
      (sm.getString("applicationContext.resourcePaths.iae", path));
  }
  path = RequestUtil.normalize(path);
  if (path == null)
    return (null);
  DirContext resources = context.getResources();
  if (resources != null) {
    return (getResourcePathsInternal(resources, path));
  }
  return (null);
}

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

/**
 * Return a Set containing the resource paths of resources member of the
 * specified collection. Each path will be a String starting with
 * a "/" character. The returned set is immutable.
 *
 * @param path Collection path
 */
@Override
public Set<String> getResourcePaths(String path) {
  // Validate the path argument
  if (path == null) {
    return null;
  }
  if (!path.startsWith("/")) {
    throw new IllegalArgumentException
      (sm.getString("applicationContext.resourcePaths.iae", path));
  }
  String normalizedPath = RequestUtil.normalize(path);
  if (normalizedPath == null)
    return (null);
  DirContext resources = context.getResources();
  if (resources != null) {
    return (getResourcePathsInternal(resources, normalizedPath));
  }
  return (null);
}

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

/**
 * Return a Set containing the resource paths of resources member of the
 * specified collection. Each path will be a String starting with
 * a "/" character. The returned set is immutable.
 *
 * @param path Collection path
 */
@Override
public Set<String> getResourcePaths(String path) {
  // Validate the path argument
  if (path == null) {
    return null;
  }
  if (!path.startsWith("/")) {
    throw new IllegalArgumentException
      (sm.getString("applicationContext.resourcePaths.iae", path));
  }
  String normalizedPath = RequestUtil.normalize(path);
  if (normalizedPath == null)
    return (null);
  DirContext resources = context.getResources();
  if (resources != null) {
    return (getResourcePathsInternal(resources, normalizedPath));
  }
  return (null);
}

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

/**
 * Return a Set containing the resource paths of resources member of the
 * specified collection. Each path will be a String starting with
 * a "/" character. The returned set is immutable.
 *
 * @param path Collection path
 */
@Override
public Set<String> getResourcePaths(String path) {
  // Validate the path argument
  if (path == null) {
    return null;
  }
  if (!path.startsWith("/")) {
    throw new IllegalArgumentException
      (sm.getString("applicationContext.resourcePaths.iae", path));
  }
  String normalizedPath = RequestUtil.normalize(path);
  if (normalizedPath == null)
    return (null);
  DirContext resources = context.getResources();
  if (resources != null) {
    return (getResourcePathsInternal(resources, normalizedPath));
  }
  return (null);
}

代码示例来源:origin: org.jboss.web/jbossweb

/**
 * Return a Set containing the resource paths of resources member of the
 * specified collection. Each path will be a String starting with
 * a "/" character. The returned set is immutable.
 *
 * @param path Collection path
 */
public Set getResourcePaths(String path) {
  // Validate the path argument
  if (path == null) {
    return null;
  }
  if (!path.startsWith("/")) {
    throw MESSAGES.invalidDispatcherPath(path);
  }
  path = RequestUtil.normalize(path);
  if (path == null)
    return (null);
  DirContext resources = context.getResources();
  if (resources != null) {
    return (getResourcePathsInternal(resources, path));
  }
  return (null);
}

相关文章

ApplicationContext类方法