Package net.jini.io

Examples of net.jini.io.UnsupportedConstraintException


    if (support == NO_SUPPORT ||
        (!relativeOK &&
         constraint instanceof RelativeTimeConstraint))
    {
        if (isRequirement) {
      throw new UnsupportedConstraintException(
          "cannot satisfy constraint: " + constraint);
        } else {
      return;
        }
    }
View Full Code Here


        maxConnectDeadline = Long.MAX_VALUE;
    }
      }
      if (!supported) {
    if (isRequirement) {
        throw new UnsupportedConstraintException(
      "cannot satisfy constraint: " + constraint);
    } else {
        return; // maxConnectDeadline is bogus in this case
    }
      }
View Full Code Here

  {
      InvocationConstraint c = (InvocationConstraint) i.next();
      if (c == Integrity.YES) {
    integrity = true;
      } else if (!(c instanceof Integrity)) {
    throw new UnsupportedConstraintException(
        "cannot satisfy constraint: " + c);
      }
      // NYI: support ConstraintAlternatives containing Integrity
  }
  if (!integrity) {
View Full Code Here

        chosen = c;
        best = score;
    }
      }
      if (chosen == null) {
    UnsupportedConstraintException uce =
        new UnsupportedConstraintException(
      "unsupported constraints: " + constraints);
    if (se != null) {
        // At least one principal was rejected due to lack
        // of authentication permissions.
        secureThrow(se, uce);       
View Full Code Here

  public void checkConstraints() throws IOException {
      try {
    X500Constraints cons = X500Constraints.process(constraints,
                     true);
    if (cons.checkClientPrincipal(p) < 0) {
        throw new UnsupportedConstraintException(
      "principal not allowed: " + p);
    }
    Certificate cert = getCertificate(p);
    if (cert == null) {
        throw new DiscoveryProtocolException(
View Full Code Here

  throws UnsupportedConstraintException
    {
  if (constraints.requirements().isEmpty()) {
      return InvocationConstraints.EMPTY;
  }
  throw new UnsupportedConstraintException(
      "cannot satisfy constraints: " + constraints);
    }
View Full Code Here

  throws UnsupportedConstraintException
    {
  if (constraints.requirements().isEmpty()) {
      return InvocationConstraints.EMPTY;
  }
  throw new UnsupportedConstraintException(
      "cannot satisfy constraints: " + constraints);
    }
View Full Code Here

      }
     
      if ((clientConstraints != null) &&
    !(currProxy instanceof RemoteMethodControl))
      {
    throw new UnsupportedConstraintException(
         "underlying proxy does not implement RemoteMethodControl");
      }

      /*
       * Set constraints on target proxy only if relative constraints
View Full Code Here

    //inherit javadoc
    public InvocationConstraints checkConstraints(InvocationConstraints ics)
        throws UnsupportedConstraintException {
        if (!ics.isEmpty()){
            throw new UnsupportedConstraintException("This endpoint does not"
                + " support setting constraints on a remote call");
        }
        return InvocationConstraints.EMPTY;
    }
View Full Code Here

      serverCapabilities.checkConstraints(constraints);
  for (Iterator i = unfulfilled.requirements().iterator(); i.hasNext();)
  {
      InvocationConstraint c = (InvocationConstraint) i.next();
      if (!(c instanceof Integrity)) {
    throw new UnsupportedConstraintException(
        "cannot satisfy unfulfilled constraint: " + c);
      }
      // REMIND: support ConstraintAlternatives containing Integrity?
  }
    }
View Full Code Here

TOP

Related Classes of net.jini.io.UnsupportedConstraintException

Copyright © 2018 www.massapicom. 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.