jdk/src/share/classes/javax/naming/ReferralException.java
changeset 21285 e740104a04f1
parent 18580 6c4badf4ffba
equal deleted inserted replaced
21284:e6dfe841a88f 21285:e740104a04f1
   154      * Discards the referral about to be processed.
   154      * Discards the referral about to be processed.
   155      * A call to this method should be followed by a call to
   155      * A call to this method should be followed by a call to
   156      * <code>getReferralContext</code> to allow the processing of
   156      * <code>getReferralContext</code> to allow the processing of
   157      * other referrals to continue.
   157      * other referrals to continue.
   158      * The following code fragment shows a typical usage pattern.
   158      * The following code fragment shows a typical usage pattern.
   159      * <p><blockquote><pre>
   159      * <blockquote><pre>
   160      *  } catch (ReferralException e) {
   160      *  } catch (ReferralException e) {
   161      *      if (!shallIFollow(e.getReferralInfo())) {
   161      *      if (!shallIFollow(e.getReferralInfo())) {
   162      *          if (!e.skipReferral()) {
   162      *          if (!e.skipReferral()) {
   163      *              return;
   163      *              return;
   164      *          }
   164      *          }
   175      * Retries the referral currently being processed.
   175      * Retries the referral currently being processed.
   176      * A call to this method should be followed by a call to
   176      * A call to this method should be followed by a call to
   177      * <code>getReferralContext</code> to allow the current
   177      * <code>getReferralContext</code> to allow the current
   178      * referral to be retried.
   178      * referral to be retried.
   179      * The following code fragment shows a typical usage pattern.
   179      * The following code fragment shows a typical usage pattern.
   180      * <p><blockquote><pre>
   180      * <blockquote><pre>
   181      *  } catch (ReferralException e) {
   181      *  } catch (ReferralException e) {
   182      *      while (true) {
   182      *      while (true) {
   183      *          try {
   183      *          try {
   184      *              ctx = e.getReferralContext(env);
   184      *              ctx = e.getReferralContext(env);
   185      *              break;
   185      *              break;