< prev index next >

src/java.naming/share/classes/com/sun/jndi/toolkit/ctx/Continuation.java

Print this page


   1 /*
   2  * Copyright (c) 1999, 2013, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.  Oracle designates this
   8  * particular file as subject to the "Classpath" exception as provided
   9  * by Oracle in the LICENSE file that accompanied this code.
  10  *
  11  * This code is distributed in the hope that it will be useful, but WITHOUT
  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any


  34   * the method (place where it left off, and remaining name to
  35   * continue).
  36   *
  37   * @author Rosanna Lee
  38   */
  39 
  40 public class Continuation extends ResolveResult {
  41     /**
  42      * The name that we started out with. It is initialized by the constructor
  43      * and used to calculate to "resolved name" in NamingException in
  44      * fillInException().
  45      * %%% Note that this approach does not always do the calculation
  46      * correctly with respect to absence or presence of the trailing slash
  47      * for resolved name.
  48      */
  49     protected Name starter;
  50 
  51     /**
  52      * Whether links were encountered.
  53      */

  54     protected Object followingLink = null;
  55 
  56     /**
  57      * The environment used by the caller. Initialized by constructor and
  58      * used when filling out a CannotProceedException.
  59      */
  60     protected Hashtable<?,?> environment = null;
  61 
  62     /**
  63      * Indicates whether the Continuation instance indicates that the operation
  64      * should be continued using the data in the Continuation.
  65      * Typically, this is only false if an error has been encountered or if
  66      * the operation has succeeded.
  67      */
  68     protected boolean continuing = false;
  69 
  70     /**
  71      * The last resolved context. Used to set the "AltNameCtx" in a
  72      * CannotProceedException.
  73      */

  74     protected Context resolvedContext = null;
  75 
  76     /**
  77      * The resolved name relative to resolvedContext. Used to set the
  78      * "AltName" in a CannotProceedException.
  79      */
  80     protected Name relativeResolvedName = null;
  81 
  82     /**
  83      * Constructs a new instance of Continuation.
  84      * Used as dummy for contexts that do not do federation (e.g. for schema ops)
  85      */
  86     public Continuation() {
  87     }
  88 
  89     /**
  90      * Constructs a new instance of Continuation.
  91      * @param top The name of the object that is to be resolved/operated upon.
  92      *          This becomes the Continuation's 'starter' and is used to
  93      *          calculate the "resolved name" when filling in a NamingException.


   1 /*
   2  * Copyright (c) 1999, 2019, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.  Oracle designates this
   8  * particular file as subject to the "Classpath" exception as provided
   9  * by Oracle in the LICENSE file that accompanied this code.
  10  *
  11  * This code is distributed in the hope that it will be useful, but WITHOUT
  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any


  34   * the method (place where it left off, and remaining name to
  35   * continue).
  36   *
  37   * @author Rosanna Lee
  38   */
  39 
  40 public class Continuation extends ResolveResult {
  41     /**
  42      * The name that we started out with. It is initialized by the constructor
  43      * and used to calculate to "resolved name" in NamingException in
  44      * fillInException().
  45      * %%% Note that this approach does not always do the calculation
  46      * correctly with respect to absence or presence of the trailing slash
  47      * for resolved name.
  48      */
  49     protected Name starter;
  50 
  51     /**
  52      * Whether links were encountered.
  53      */
  54     @SuppressWarnings("serial") // Not statically typed as Serializable
  55     protected Object followingLink = null;
  56 
  57     /**
  58      * The environment used by the caller. Initialized by constructor and
  59      * used when filling out a CannotProceedException.
  60      */
  61     protected Hashtable<?,?> environment = null;
  62 
  63     /**
  64      * Indicates whether the Continuation instance indicates that the operation
  65      * should be continued using the data in the Continuation.
  66      * Typically, this is only false if an error has been encountered or if
  67      * the operation has succeeded.
  68      */
  69     protected boolean continuing = false;
  70 
  71     /**
  72      * The last resolved context. Used to set the "AltNameCtx" in a
  73      * CannotProceedException.
  74      */
  75     @SuppressWarnings("serial") // Not statically typed as Serializable
  76     protected Context resolvedContext = null;
  77 
  78     /**
  79      * The resolved name relative to resolvedContext. Used to set the
  80      * "AltName" in a CannotProceedException.
  81      */
  82     protected Name relativeResolvedName = null;
  83 
  84     /**
  85      * Constructs a new instance of Continuation.
  86      * Used as dummy for contexts that do not do federation (e.g. for schema ops)
  87      */
  88     public Continuation() {
  89     }
  90 
  91     /**
  92      * Constructs a new instance of Continuation.
  93      * @param top The name of the object that is to be resolved/operated upon.
  94      *          This becomes the Continuation's 'starter' and is used to
  95      *          calculate the "resolved name" when filling in a NamingException.


< prev index next >