Fields Summary |
---|
protected Name | linkResolvedNameContains the part of the link that has been successfully resolved.
It is a composite name and can be null.
This field is initialized by the constructors.
You should access and manipulate this field
through its get and set methods. |
protected Object | linkResolvedObjContains the object to which resolution of the part of the link was successful.
Can be null. This field is initialized by the constructors.
You should access and manipulate this field
through its get and set methods. |
protected Name | linkRemainingNameContains the remaining link name that has not been resolved yet.
It is a composite name and can be null.
This field is initialized by the constructors.
You should access and manipulate this field
through its get and set methods. |
protected String | linkExplanationContains the exception of why resolution of the link failed.
Can be null. This field is initialized by the constructors.
You should access and manipulate this field
through its get and set methods. |
private static final long | serialVersionUIDUse serialVersionUID from JNDI 1.1.1 for interoperability |
Methods Summary |
---|
public java.lang.String | getLinkExplanation()Retrieves the explanation associated with the problem encounter
when resolving a link.
return this.linkExplanation;
|
public javax.naming.Name | getLinkRemainingName()Retrieves the remaining unresolved portion of the link name.
return this.linkRemainingName;
|
public javax.naming.Name | getLinkResolvedName()Retrieves the leading portion of the link name that was resolved
successfully.
return this.linkResolvedName;
|
public java.lang.Object | getLinkResolvedObj()Retrieves the object to which resolution was successful.
This is the object to which the resolved link name is bound.
return this.linkResolvedObj;
|
public void | setLinkExplanation(java.lang.String msg)Sets the explanation associated with the problem encounter
when resolving a link.
this.linkExplanation = msg;
|
public void | setLinkRemainingName(javax.naming.Name name)Sets the remaining link name field of this exception.
name 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 name is made and stored.
Subsequent changes to name does not
affect the copy in this NamingException and vice versa.
if (name != null)
this.linkRemainingName = (Name)(name.clone());
else
this.linkRemainingName = null;
|
public void | setLinkResolvedName(javax.naming.Name name)Sets the resolved link name field of this exception.
name 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 name is made and stored.
Subsequent changes to name does not
affect the copy in this NamingException and vice versa.
if (name != null) {
this.linkResolvedName = (Name)(name.clone());
} else {
this.linkResolvedName = null;
}
|
public void | setLinkResolvedObj(java.lang.Object obj)Sets the link resolved object field of this exception.
This indicates the last successfully resolved object of link name.
this.linkResolvedObj = obj;
|
public java.lang.String | toString()Generates the string representation of this exception.
This string consists of the NamingException information plus
the link's remaining name.
This string is used for debugging and not meant to be interpreted
programmatically.
return super.toString() + "; Link Remaining Name: '" +
this.linkRemainingName + "'";
|
public java.lang.String | toString(boolean detail)Generates the string representation of this exception.
This string consists of the NamingException information plus
the additional information of resolving the link.
If 'detail' is true, the string also contains information on
the link resolved object. If false, this method is the same
as the form of toString() that accepts no parameters.
This string is used for debugging and not meant to be interpreted
programmatically.
if (!detail || this.linkResolvedObj == null)
return this.toString();
return this.toString() + "; Link Resolved Object: " +
this.linkResolvedObj;
|