Fields Summary |
---|
protected Name | remainingNewNameContains the remaining unresolved part of the second
"name" argument to Context.rename().
This information necessary for
continuing the Context.rename() operation.
This field is initialized to null.
It should not be manipulated directly: it should
be accessed and updated using getRemainingName() and setRemainingName(). |
protected Hashtable | environmentContains the environment
relevant for the Context or DirContext method that cannot proceed.
This field is initialized to null.
It should not be manipulated directly: it should be accessed
and updated using getEnvironment() and setEnvironment(). |
protected Name | altNameContains the name of the resolved object, relative
to the context altNameCtx . It is a composite name.
If null, then no name is specified.
See the javax.naming.spi.ObjectFactory.getObjectInstance
method for details on how this is used.
This field is initialized to null.
It should not be manipulated directly: it should
be accessed and updated using getAltName() and setAltName(). |
protected Context | altNameCtxContains the context relative to which
altName is specified. If null, then the default initial
context is implied.
See the javax.naming.spi.ObjectFactory.getObjectInstance
method for details on how this is used.
This field is initialized to null.
It should not be manipulated directly: it should
be accessed and updated using getAltNameCtx() and setAltNameCtx(). |
private static final long | serialVersionUIDUse serialVersionUID from JNDI 1.1.1 for interoperability |
Methods Summary |
---|
public javax.naming.Name | getAltName()Retrieves the altName field of this exception.
This is the name of the resolved object, relative to the context
altNameCtx . It will be used during a subsequent call to the
javax.naming.spi.ObjectFactory.getObjectInstance method.
return altName;
|
public javax.naming.Context | getAltNameCtx()Retrieves the altNameCtx field of this exception.
This is the context relative to which altName is named.
It will be used during a subsequent call to the
javax.naming.spi.ObjectFactory.getObjectInstance method.
return altNameCtx;
|
public java.util.Hashtable | getEnvironment()Retrieves the environment that was in effect when this exception
was created.
return environment;
|
public javax.naming.Name | getRemainingNewName()Retrieves the "remaining new name" field of this exception, which is
used when this exception is thrown during a rename() operation.
return remainingNewName;
|
public void | setAltName(javax.naming.Name altName)Sets the altName field of this exception.
this.altName = altName;
|
public void | setAltNameCtx(javax.naming.Context altNameCtx)Sets the altNameCtx field of this exception.
this.altNameCtx = altNameCtx;
|
public void | setEnvironment(java.util.Hashtable environment)Sets the environment that will be returned when getEnvironment()
is called.
this.environment = environment; // %%% clone it??
|
public void | setRemainingNewName(javax.naming.Name newName)Sets the "remaining new name" field of this exception.
This is the value returned by getRemainingNewName() .
newName is a composite name. If the intent is to set
this field using a compound name or string, you must
"stringify" the compound name, and create a composite
name with a single component using the string. You can then
invoke this method using the resulting composite name.
A copy of newName is made and stored.
Subsequent changes to name does not
affect the copy in this NamingException and vice versa.
if (newName != null)
this.remainingNewName = (Name)(newName.clone());
else
this.remainingNewName = null;
|