congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
IncludeExcludeSet.test
Code IndexAdd Tabnine to your IDE (free)

How to use
test
method
in
org.eclipse.jetty.util.IncludeExcludeSet

Best Java code snippets using org.eclipse.jetty.util.IncludeExcludeSet.test (Showing top 10 results out of 315)

origin: org.eclipse.jetty/jetty-webapp

/**
 * Match the class name against the pattern
 *
 * @param name name of the class to match
 * @return true if class matches the pattern
 */
public boolean match(String name)
{       
  return _patterns.test(name);
}

origin: org.eclipse.jetty/jetty-util

@Deprecated
public boolean matches(P t)
{
  return test(t);
}

origin: org.eclipse.jetty/jetty-util

@Override
public boolean test(Path path)
{
  if (excludeHidden && isHidden(path))
  {
    if (LOG.isDebugEnabled())
      LOG.debug("test({}) -> [Hidden]", toShortPath(path));
    return false;
  }
  if (!path.startsWith(this.path))
  {
    if (LOG.isDebugEnabled())
      LOG.debug("test({}) -> [!child {}]", toShortPath(path), this.path);
    return false;
  }
  if (recurseDepth!=UNLIMITED_DEPTH)
  {
    int depth = path.getNameCount() - this.path.getNameCount() - 1;
    if (depth>recurseDepth)
    {
      if (LOG.isDebugEnabled())
        LOG.debug("test({}) -> [depth {}>{}]",toShortPath(path),depth,recurseDepth);
      return false;
    }
  }
  boolean matched = includeExclude.test(path);
  if (LOG.isDebugEnabled())
    LOG.debug("test({}) -> {}", toShortPath(path), matched);
  return matched;
}
origin: Nextdoor/bender

/**
 * Check if specified request is allowed by current IPAccess rules.
 *
 * @param address internet address
 * @return true if address is allowed
 *
 */
protected boolean isAllowed(InetAddress address)
{
  return _set.test(address);
}
origin: jenkinsci/winstone

/**
 * Match the class name against the pattern
 *
 * @param name name of the class to match
 * @return true if class matches the pattern
 */
public boolean match(String name)
{       
  return _patterns.test(name);
}

origin: Nextdoor/bender

public boolean matches(T t)
{
  return test(t);
}

origin: jenkinsci/winstone

@Deprecated
public boolean matches(P t)
{
  return test(t);
}

origin: jenkinsci/winstone

/**
 * Checks if specified address and request are allowed by current InetAddress rules.
 *
 * @param address the inetAddress to check
 * @param request the request to check
 * @return true if inetAddress and request are allowed
 */
protected boolean isAllowed(InetAddress address, HttpServletRequest request)
{
  boolean allowed = _set.test(address);
  if (LOG.isDebugEnabled())
    LOG.debug("{} {} {} for {}", this, allowed ? "allowed" : "denied", address, request);
  return allowed;
}
origin: jenkinsci/winstone

protected int getThreadLimit(String ip)
{
  if (!_includeExcludeSet.isEmpty())
  {
    try
    {
      if (!_includeExcludeSet.test(InetAddress.getByName(ip)))
      {
        LOG.debug("excluded {}",ip);
        return 0;
      }
    }
    catch(Exception e)
    {
      LOG.ignore(e);
    }
  }
  return _threadLimit;
}
origin: jenkinsci/winstone

@Override
public boolean test(Path path)
{
  if (excludeHidden && isHidden(path))
  {
    if (LOG.isDebugEnabled())
      LOG.debug("test({}) -> [Hidden]", toShortPath(path));
    return false;
  }
  if (!path.startsWith(this.path))
  {
    if (LOG.isDebugEnabled())
      LOG.debug("test({}) -> [!child {}]", toShortPath(path), this.path);
    return false;
  }
  if (recurseDepth!=UNLIMITED_DEPTH)
  {
    int depth = path.getNameCount() - this.path.getNameCount() - 1;
    if (depth>recurseDepth)
    {
      if (LOG.isDebugEnabled())
        LOG.debug("test({}) -> [depth {}>{}]",toShortPath(path),depth,recurseDepth);
      return false;
    }
  }
  boolean matched = includeExclude.test(path);
  if (LOG.isDebugEnabled())
    LOG.debug("test({}) -> {}", toShortPath(path), matched);
  return matched;
}
org.eclipse.jetty.utilIncludeExcludeSettest

Popular methods of IncludeExcludeSet

  • exclude
  • include
  • <init>
    Construct an IncludeExclude
  • clear
  • getExcluded
  • getIncluded
  • hasIncludes
  • isIncludedAndNotExcluded
    Test Included and not Excluded
  • isEmpty

Popular in Java

  • Start an intent from android
  • getContentResolver (Context)
  • getResourceAsStream (ClassLoader)
  • getSharedPreferences (Context)
  • Kernel (java.awt.image)
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • Notification (javax.management)
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • JTextField (javax.swing)
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • Top Sublime Text plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now