src/java.naming/share/classes/javax/naming/CannotProceedException.java
author herrick
Tue, 24 Sep 2019 13:41:16 -0400
branchJDK-8200758-branch
changeset 58301 e0efb29609bd
parent 47216 71c04702a3d5
child 58531 9b40d05c9f66
permissions -rw-r--r--
8225249 : LinuxDebBundler and LinuxRpmBundler should share more code Submitted-by: asemenyuk Reviewed-by: herrick, almatvee
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     1
/*
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
     2
 * Copyright (c) 1999, 2004, Oracle and/or its affiliates. All rights reserved.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     4
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
90ce3da70b43 Initial load
duke
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
     7
 * published by the Free Software Foundation.  Oracle designates this
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     8
 * particular file as subject to the "Classpath" exception as provided
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
     9
 * by Oracle in the LICENSE file that accompanied this code.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    10
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    11
 * This code is distributed in the hope that it will be useful, but WITHOUT
90ce3da70b43 Initial load
duke
parents:
diff changeset
    12
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    13
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
90ce3da70b43 Initial load
duke
parents:
diff changeset
    14
 * version 2 for more details (a copy is included in the LICENSE file that
90ce3da70b43 Initial load
duke
parents:
diff changeset
    15
 * accompanied this code).
90ce3da70b43 Initial load
duke
parents:
diff changeset
    16
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    17
 * You should have received a copy of the GNU General Public License version
90ce3da70b43 Initial load
duke
parents:
diff changeset
    18
 * 2 along with this work; if not, write to the Free Software Foundation,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    19
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    20
 *
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
    21
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
    22
 * or visit www.oracle.com if you need additional information or have any
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
    23
 * questions.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    24
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    25
90ce3da70b43 Initial load
duke
parents:
diff changeset
    26
package javax.naming;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    27
90ce3da70b43 Initial load
duke
parents:
diff changeset
    28
import java.util.Hashtable;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    29
90ce3da70b43 Initial load
duke
parents:
diff changeset
    30
/**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    31
  * This exception is thrown to indicate that the operation reached
90ce3da70b43 Initial load
duke
parents:
diff changeset
    32
  * a point in the name where the operation cannot proceed any further.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    33
  * When performing an operation on a composite name, a naming service
90ce3da70b43 Initial load
duke
parents:
diff changeset
    34
  * provider may reach a part of the name that does not belong to its
90ce3da70b43 Initial load
duke
parents:
diff changeset
    35
  * namespace.  At that point, it can construct a
90ce3da70b43 Initial load
duke
parents:
diff changeset
    36
  * CannotProceedException and then invoke methods provided by
90ce3da70b43 Initial load
duke
parents:
diff changeset
    37
  * javax.naming.spi.NamingManager (such as getContinuationContext())
90ce3da70b43 Initial load
duke
parents:
diff changeset
    38
  * to locate another provider to continue the operation.  If this is
90ce3da70b43 Initial load
duke
parents:
diff changeset
    39
  * not possible, this exception is raised to the caller of the
90ce3da70b43 Initial load
duke
parents:
diff changeset
    40
  * context operation.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    41
  *<p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    42
  * If the program wants to handle this exception in particular, it
90ce3da70b43 Initial load
duke
parents:
diff changeset
    43
  * should catch CannotProceedException explicitly before attempting to
90ce3da70b43 Initial load
duke
parents:
diff changeset
    44
  * catch NamingException.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    45
  *<p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    46
  * A CannotProceedException instance is not synchronized against concurrent
90ce3da70b43 Initial load
duke
parents:
diff changeset
    47
  * multithreaded access. Multiple threads trying to access and modify
90ce3da70b43 Initial load
duke
parents:
diff changeset
    48
  * CannotProceedException should lock the object.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    49
  *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    50
  * @author Rosanna Lee
90ce3da70b43 Initial load
duke
parents:
diff changeset
    51
  * @author Scott Seligman
90ce3da70b43 Initial load
duke
parents:
diff changeset
    52
  * @since 1.3
90ce3da70b43 Initial load
duke
parents:
diff changeset
    53
  */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    54
90ce3da70b43 Initial load
duke
parents:
diff changeset
    55
/*
90ce3da70b43 Initial load
duke
parents:
diff changeset
    56
  * The serialized form of a CannotProceedException object consists of
90ce3da70b43 Initial load
duke
parents:
diff changeset
    57
  * the serialized fields of its NamingException superclass, the remaining new
90ce3da70b43 Initial load
duke
parents:
diff changeset
    58
  * name (a Name object), the environment (a Hashtable), the altName field
90ce3da70b43 Initial load
duke
parents:
diff changeset
    59
  * (a Name object), and the serialized form of the altNameCtx field.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    60
  */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    61
90ce3da70b43 Initial load
duke
parents:
diff changeset
    62
90ce3da70b43 Initial load
duke
parents:
diff changeset
    63
public class CannotProceedException extends NamingException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    64
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    65
     * Contains the remaining unresolved part of the second
90ce3da70b43 Initial load
duke
parents:
diff changeset
    66
     * "name" argument to Context.rename().
22974
4bf6c0d73bb8 4682009: Typo in javadocs in javax/naming
igerasim
parents: 5506
diff changeset
    67
     * This information is necessary for
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    68
     * continuing the Context.rename() operation.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    69
     * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    70
     * This field is initialized to null.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    71
     * It should not be manipulated directly:  it should
90ce3da70b43 Initial load
duke
parents:
diff changeset
    72
     * be accessed and updated using getRemainingName() and setRemainingName().
90ce3da70b43 Initial load
duke
parents:
diff changeset
    73
     * @serial
90ce3da70b43 Initial load
duke
parents:
diff changeset
    74
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    75
     * @see #getRemainingNewName
90ce3da70b43 Initial load
duke
parents:
diff changeset
    76
     * @see #setRemainingNewName
90ce3da70b43 Initial load
duke
parents:
diff changeset
    77
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    78
    protected Name remainingNewName = null;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    79
90ce3da70b43 Initial load
duke
parents:
diff changeset
    80
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    81
     * Contains the environment
90ce3da70b43 Initial load
duke
parents:
diff changeset
    82
     * relevant for the Context or DirContext method that cannot proceed.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    83
     * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    84
     * This field is initialized to null.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    85
     * It should not be manipulated directly:  it should be accessed
90ce3da70b43 Initial load
duke
parents:
diff changeset
    86
     * and updated using getEnvironment() and setEnvironment().
90ce3da70b43 Initial load
duke
parents:
diff changeset
    87
     * @serial
90ce3da70b43 Initial load
duke
parents:
diff changeset
    88
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    89
     * @see #getEnvironment
90ce3da70b43 Initial load
duke
parents:
diff changeset
    90
     * @see #setEnvironment
90ce3da70b43 Initial load
duke
parents:
diff changeset
    91
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    92
    protected Hashtable<?,?> environment = null;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    93
90ce3da70b43 Initial load
duke
parents:
diff changeset
    94
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    95
     * Contains the name of the resolved object, relative
32029
a5538163e144 8132877: docs: replace <tt> tags (obsolete in html5) for javax.naming
avstepan
parents: 25859
diff changeset
    96
     * to the context {@code altNameCtx}.  It is a composite name.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    97
     * If null, then no name is specified.
32029
a5538163e144 8132877: docs: replace <tt> tags (obsolete in html5) for javax.naming
avstepan
parents: 25859
diff changeset
    98
     * See the {@code javax.naming.spi.ObjectFactory.getObjectInstance}
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    99
     * method for details on how this is used.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   100
     * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   101
     * This field is initialized to null.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   102
     * It should not be manipulated directly:  it should
90ce3da70b43 Initial load
duke
parents:
diff changeset
   103
     * be accessed and updated using getAltName() and setAltName().
90ce3da70b43 Initial load
duke
parents:
diff changeset
   104
     * @serial
90ce3da70b43 Initial load
duke
parents:
diff changeset
   105
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   106
     * @see #getAltName
90ce3da70b43 Initial load
duke
parents:
diff changeset
   107
     * @see #setAltName
90ce3da70b43 Initial load
duke
parents:
diff changeset
   108
     * @see #altNameCtx
90ce3da70b43 Initial load
duke
parents:
diff changeset
   109
     * @see javax.naming.spi.ObjectFactory#getObjectInstance
90ce3da70b43 Initial load
duke
parents:
diff changeset
   110
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   111
    protected Name altName = null;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   112
90ce3da70b43 Initial load
duke
parents:
diff changeset
   113
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   114
     * Contains the context relative to which
32029
a5538163e144 8132877: docs: replace <tt> tags (obsolete in html5) for javax.naming
avstepan
parents: 25859
diff changeset
   115
     * {@code altName} is specified.  If null, then the default initial
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   116
     * context is implied.
32029
a5538163e144 8132877: docs: replace <tt> tags (obsolete in html5) for javax.naming
avstepan
parents: 25859
diff changeset
   117
     * See the {@code javax.naming.spi.ObjectFactory.getObjectInstance}
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   118
     * method for details on how this is used.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   119
     * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   120
     * This field is initialized to null.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   121
     * It should not be manipulated directly:  it should
90ce3da70b43 Initial load
duke
parents:
diff changeset
   122
     * be accessed and updated using getAltNameCtx() and setAltNameCtx().
90ce3da70b43 Initial load
duke
parents:
diff changeset
   123
     * @serial
90ce3da70b43 Initial load
duke
parents:
diff changeset
   124
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   125
     * @see #getAltNameCtx
90ce3da70b43 Initial load
duke
parents:
diff changeset
   126
     * @see #setAltNameCtx
90ce3da70b43 Initial load
duke
parents:
diff changeset
   127
     * @see #altName
90ce3da70b43 Initial load
duke
parents:
diff changeset
   128
     * @see javax.naming.spi.ObjectFactory#getObjectInstance
90ce3da70b43 Initial load
duke
parents:
diff changeset
   129
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   130
    protected Context altNameCtx = null;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   131
90ce3da70b43 Initial load
duke
parents:
diff changeset
   132
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   133
     * Constructs a new instance of CannotProceedException using an
90ce3da70b43 Initial load
duke
parents:
diff changeset
   134
     * explanation. All unspecified fields default to null.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   135
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   136
     * @param   explanation     A possibly null string containing additional
90ce3da70b43 Initial load
duke
parents:
diff changeset
   137
     *                          detail about this exception.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   138
     *   If null, this exception has no detail message.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   139
     * @see java.lang.Throwable#getMessage
90ce3da70b43 Initial load
duke
parents:
diff changeset
   140
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   141
    public CannotProceedException(String explanation) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   142
        super(explanation);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   143
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   144
90ce3da70b43 Initial load
duke
parents:
diff changeset
   145
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   146
      * Constructs a new instance of CannotProceedException.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   147
      * All fields default to null.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   148
      */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   149
    public CannotProceedException() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   150
        super();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   151
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   152
90ce3da70b43 Initial load
duke
parents:
diff changeset
   153
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   154
     * Retrieves the environment that was in effect when this exception
90ce3da70b43 Initial load
duke
parents:
diff changeset
   155
     * was created.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   156
     * @return Possibly null environment property set.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   157
     *          null means no environment was recorded for this exception.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   158
     * @see #setEnvironment
90ce3da70b43 Initial load
duke
parents:
diff changeset
   159
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   160
    public Hashtable<?,?> getEnvironment() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   161
        return environment;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   162
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   163
90ce3da70b43 Initial load
duke
parents:
diff changeset
   164
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   165
     * Sets the environment that will be returned when getEnvironment()
90ce3da70b43 Initial load
duke
parents:
diff changeset
   166
     * is called.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   167
     * @param environment A possibly null environment property set.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   168
     *          null means no environment is being recorded for
90ce3da70b43 Initial load
duke
parents:
diff changeset
   169
     *          this exception.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   170
     * @see #getEnvironment
90ce3da70b43 Initial load
duke
parents:
diff changeset
   171
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   172
    public void setEnvironment(Hashtable<?,?> environment) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   173
        this.environment = environment; // %%% clone it??
90ce3da70b43 Initial load
duke
parents:
diff changeset
   174
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   175
90ce3da70b43 Initial load
duke
parents:
diff changeset
   176
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   177
     * Retrieves the "remaining new name" field of this exception, which is
90ce3da70b43 Initial load
duke
parents:
diff changeset
   178
     * used when this exception is thrown during a rename() operation.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   179
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   180
     * @return The possibly null part of the new name that has not been resolved.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   181
     *          It is a composite name. It can be null, which means
90ce3da70b43 Initial load
duke
parents:
diff changeset
   182
     *          the remaining new name field has not been set.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   183
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   184
     * @see #setRemainingNewName
90ce3da70b43 Initial load
duke
parents:
diff changeset
   185
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   186
    public Name getRemainingNewName() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   187
        return remainingNewName;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   188
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   189
90ce3da70b43 Initial load
duke
parents:
diff changeset
   190
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   191
     * Sets the "remaining new name" field of this exception.
32029
a5538163e144 8132877: docs: replace <tt> tags (obsolete in html5) for javax.naming
avstepan
parents: 25859
diff changeset
   192
     * This is the value returned by {@code getRemainingNewName()}.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   193
     *<p>
32029
a5538163e144 8132877: docs: replace <tt> tags (obsolete in html5) for javax.naming
avstepan
parents: 25859
diff changeset
   194
     * {@code newName} is a composite name. If the intent is to set
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   195
     * this field using a compound name or string, you must
90ce3da70b43 Initial load
duke
parents:
diff changeset
   196
     * "stringify" the compound name, and create a composite
90ce3da70b43 Initial load
duke
parents:
diff changeset
   197
     * name with a single component using the string. You can then
90ce3da70b43 Initial load
duke
parents:
diff changeset
   198
     * invoke this method using the resulting composite name.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   199
     *<p>
32029
a5538163e144 8132877: docs: replace <tt> tags (obsolete in html5) for javax.naming
avstepan
parents: 25859
diff changeset
   200
     * A copy of {@code newName} is made and stored.
a5538163e144 8132877: docs: replace <tt> tags (obsolete in html5) for javax.naming
avstepan
parents: 25859
diff changeset
   201
     * Subsequent changes to {@code name} does not
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   202
     * affect the copy in this NamingException and vice versa.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   203
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   204
     * @param newName The possibly null name to set the "remaining new name" to.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   205
     *          If null, it sets the remaining name field to null.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   206
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   207
     * @see #getRemainingNewName
90ce3da70b43 Initial load
duke
parents:
diff changeset
   208
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   209
    public void setRemainingNewName(Name newName) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   210
        if (newName != null)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   211
            this.remainingNewName = (Name)(newName.clone());
90ce3da70b43 Initial load
duke
parents:
diff changeset
   212
        else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   213
            this.remainingNewName = null;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   214
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   215
90ce3da70b43 Initial load
duke
parents:
diff changeset
   216
    /**
32029
a5538163e144 8132877: docs: replace <tt> tags (obsolete in html5) for javax.naming
avstepan
parents: 25859
diff changeset
   217
     * Retrieves the {@code altName} field of this exception.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   218
     * This is the name of the resolved object, relative to the context
32029
a5538163e144 8132877: docs: replace <tt> tags (obsolete in html5) for javax.naming
avstepan
parents: 25859
diff changeset
   219
     * {@code altNameCtx}. It will be used during a subsequent call to the
a5538163e144 8132877: docs: replace <tt> tags (obsolete in html5) for javax.naming
avstepan
parents: 25859
diff changeset
   220
     * {@code javax.naming.spi.ObjectFactory.getObjectInstance} method.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   221
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   222
     * @return The name of the resolved object, relative to
32029
a5538163e144 8132877: docs: replace <tt> tags (obsolete in html5) for javax.naming
avstepan
parents: 25859
diff changeset
   223
     *          {@code altNameCtx}.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   224
     *          It is a composite name.  If null, then no name is specified.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   225
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   226
     * @see #setAltName
90ce3da70b43 Initial load
duke
parents:
diff changeset
   227
     * @see #getAltNameCtx
90ce3da70b43 Initial load
duke
parents:
diff changeset
   228
     * @see javax.naming.spi.ObjectFactory#getObjectInstance
90ce3da70b43 Initial load
duke
parents:
diff changeset
   229
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   230
    public Name getAltName() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   231
        return altName;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   232
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   233
90ce3da70b43 Initial load
duke
parents:
diff changeset
   234
    /**
32029
a5538163e144 8132877: docs: replace <tt> tags (obsolete in html5) for javax.naming
avstepan
parents: 25859
diff changeset
   235
     * Sets the {@code altName} field of this exception.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   236
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   237
     * @param altName   The name of the resolved object, relative to
32029
a5538163e144 8132877: docs: replace <tt> tags (obsolete in html5) for javax.naming
avstepan
parents: 25859
diff changeset
   238
     *                  {@code altNameCtx}.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   239
     *                  It is a composite name.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   240
     *                  If null, then no name is specified.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   241
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   242
     * @see #getAltName
90ce3da70b43 Initial load
duke
parents:
diff changeset
   243
     * @see #setAltNameCtx
90ce3da70b43 Initial load
duke
parents:
diff changeset
   244
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   245
    public void setAltName(Name altName) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   246
        this.altName = altName;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   247
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   248
90ce3da70b43 Initial load
duke
parents:
diff changeset
   249
    /**
32029
a5538163e144 8132877: docs: replace <tt> tags (obsolete in html5) for javax.naming
avstepan
parents: 25859
diff changeset
   250
     * Retrieves the {@code altNameCtx} field of this exception.
a5538163e144 8132877: docs: replace <tt> tags (obsolete in html5) for javax.naming
avstepan
parents: 25859
diff changeset
   251
     * This is the context relative to which {@code altName} is named.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   252
     * It will be used during a subsequent call to the
32029
a5538163e144 8132877: docs: replace <tt> tags (obsolete in html5) for javax.naming
avstepan
parents: 25859
diff changeset
   253
     * {@code javax.naming.spi.ObjectFactory.getObjectInstance} method.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   254
     *
32029
a5538163e144 8132877: docs: replace <tt> tags (obsolete in html5) for javax.naming
avstepan
parents: 25859
diff changeset
   255
     * @return  The context relative to which {@code altName} is named.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   256
     *          If null, then the default initial context is implied.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   257
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   258
     * @see #setAltNameCtx
90ce3da70b43 Initial load
duke
parents:
diff changeset
   259
     * @see #getAltName
90ce3da70b43 Initial load
duke
parents:
diff changeset
   260
     * @see javax.naming.spi.ObjectFactory#getObjectInstance
90ce3da70b43 Initial load
duke
parents:
diff changeset
   261
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   262
    public Context getAltNameCtx() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   263
        return altNameCtx;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   264
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   265
90ce3da70b43 Initial load
duke
parents:
diff changeset
   266
    /**
32029
a5538163e144 8132877: docs: replace <tt> tags (obsolete in html5) for javax.naming
avstepan
parents: 25859
diff changeset
   267
     * Sets the {@code altNameCtx} field of this exception.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   268
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   269
     * @param altNameCtx
32029
a5538163e144 8132877: docs: replace <tt> tags (obsolete in html5) for javax.naming
avstepan
parents: 25859
diff changeset
   270
     *                  The context relative to which {@code altName}
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   271
     *                  is named.  If null, then the default initial context
90ce3da70b43 Initial load
duke
parents:
diff changeset
   272
     *                  is implied.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   273
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   274
     * @see #getAltNameCtx
90ce3da70b43 Initial load
duke
parents:
diff changeset
   275
     * @see #setAltName
90ce3da70b43 Initial load
duke
parents:
diff changeset
   276
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   277
    public void setAltNameCtx(Context altNameCtx) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   278
        this.altNameCtx = altNameCtx;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   279
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   280
90ce3da70b43 Initial load
duke
parents:
diff changeset
   281
90ce3da70b43 Initial load
duke
parents:
diff changeset
   282
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   283
     * Use serialVersionUID from JNDI 1.1.1 for interoperability
90ce3da70b43 Initial load
duke
parents:
diff changeset
   284
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   285
    private static final long serialVersionUID = 1219724816191576813L;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   286
}