Examples of implies()


Examples of com.quickwebframework.util.pattern.WildcardPattern.implies()

        WildcardPattern pattern = pathWildcardPatternMap.get(path);
        if (pattern == null) {
          pattern = new WildcardPattern(path);
          pathWildcardPatternMap.put(path, pattern);
        }
        if (pattern.implies(alias)) {
          return pathServletMap.get(path);
        }
      } else {
        if (path.equals(alias)) {
          return pathServletMap.get(alias);
View Full Code Here

Examples of com.sun.enterprise.deployment.MethodDescriptor.implies()

      MessageDescriptor nextMD =
    (MessageDescriptor) messageDescriptors.get(i);
      MethodDescriptor mD = nextMD.getMethodDescriptor();
      String opName = nextMD.getOperationName();

      if (opName == null && (mD == null || mD.implies(targetMD))){
    return true;
      }
  }

  return false;
View Full Code Here

Examples of com.sun.jini.start.AggregatePolicyProvider.implies()

      policy.getPermissions((ProtectionDomain) null);
  if (pc.elements().hasMoreElements()) {
      throw new TestException(
                    "permissions returned for null protection domain");
  }
  if (policy.implies(null, new RuntimePermission("foo"))) {
      throw new TestException(
                    "policy implies(null, new RuntimePermission(\"foo\"))");
  }
    }
}
View Full Code Here

Examples of com.sun.jini.start.LoaderSplitPolicyProvider.implies()

  ((DynamicPolicy) dynDefPolicy).grant(
      null, null, new Permission[]{ perm });

  if (!pol.implies(myPd, perm) ||
      pol.implies(fooPd, perm) ||
      pol.implies(barPd, perm) ||
      pol.implies(nullPd, perm))
  {
      throw new TestException("Does not satisfy implies conditions for "
                    + perm + ".");
  }
View Full Code Here

Examples of com.sun.security.auth.PrincipalComparator.implies()

Subject subject = new Subject(true,
pSet,
Collections.EMPTY_SET,
Collections.EMPTY_SET);

if (!pc.implies(subject)) {
if (debug != null) {
debug.println
("evaluation (principal comparator) failed");
}
View Full Code Here

Examples of de.fosd.typechef.featureexpr.FeatureExpr.implies()

            if (visible &&
                    (expr.isContradiction(featureModel) ||
                            expr.isTautology(featureModel) ||
                            fullPresenceCondition.isContradiction(featureModel) ||
                            fullPresenceCondition.isTautology(featureModel) ||
                            parentPc.implies(expr).isTautology(featureModel) ||
                            parentPc.implies(expr.not()).isTautology(featureModel)))
                visible = false;
            return visible;
        }
View Full Code Here

Examples of gabriel.Permission.implies()

  public boolean checkPermission(Permission checkPermission) {
    boolean hasPermission = false;
    Iterator iterator = permissions.iterator();
    while (iterator.hasNext()) {
      Permission permission = (Permission) iterator.next();
      if (permission.implies(checkPermission)) {
        hasPermission = true;
      }
    }
    return hasPermission;
  }
View Full Code Here

Examples of java.io.FilePermission.implies()

    p.add(new FilePermission("/tmp/p", "read"));
    p.add(new FilePermission("/tmp/p", "read"));

    // Classpath didn't handle dirs without a file separator correctly
    FilePermission fp1 = new FilePermission("/tmp", "read");
    harness.check(fp1.implies(fp1));

    // Test the constructor's checking of its arguments.
    harness.checkPoint("constructor file arg checking");
    try {
      harness.check(new FilePermission(null, "read") == null);
View Full Code Here

Examples of java.net.SocketPermission.implies()

        assertEquals("Wrong name3", "localhost:*", sp3.getName());
        // For all ports
        SocketPermission spAllPorts = new SocketPermission("localhost:0-65535",
                "listen");
        assertTrue("Port range error", sp3.implies(spAllPorts));
        assertTrue("Port range error", spAllPorts.implies(sp3));
    }

    /**
     * @tests java.net.SocketPermission#equals(java.lang.Object)
     */
 
View Full Code Here

Examples of java.security.BasicPermission.implies()

        StringBuffer sb = new StringBuffer();

        // First, make sure the old restrictions on exitVM and exitVM.* still hold.
        if (!bp1.implies(bp2)) sb.append("bp1 does not implies bp2\n");
        if (!bp2.implies(bp1)) sb.append("bp2 does not implies bp1\n");

        // Test against hashCode spec
        if (bp1.hashCode() != bp1.getName().hashCode())
            sb.append("bp1 hashCode not spec consistent\n");
        if (bp2.hashCode() != bp2.getName().hashCode())
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.