|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.naming.spi.ResolveResult
com.sun.jndi.toolkit.ctx.Continuation
public class Continuation
This class contains information required to continue the method (place where it left off, and remaining name to continue).
| Field Summary | |
|---|---|
protected boolean |
continuing
Indicates whether the Continuation instance indicates that the operation should be continued using the data in the Continuation. |
protected Hashtable |
environment
The environment used by the caller. |
protected Object |
followingLink
Whether links were encountered. |
protected Name |
relativeResolvedName
The resolved name relative to resolvedContext. |
protected Context |
resolvedContext
The last resolved context. |
protected Name |
starter
The name that we started out with. |
| Fields inherited from class javax.naming.spi.ResolveResult |
|---|
remainingName, resolvedObj |
| Constructor Summary | |
|---|---|
Continuation()
Constructs a new instance of Continuation. |
|
Continuation(Name top,
Hashtable environment)
Constructs a new instance of Continuation. |
|
| Method Summary | |
|---|---|
NamingException |
fillInException(NamingException e)
Fills in an exception's fields using data from this Continuation. |
boolean |
isContinue()
Determines whether this Continuation contains data that should be used to continue the operation. |
void |
setContinue(Object resObj,
Name relResName,
Context currCtx)
Sets this Continuation with the supplied data, and set remaining name to be the empty name. |
void |
setContinue(Object resObj,
Name relResName,
Context currCtx,
Name remain)
Sets this Continuation with the supplied data. |
void |
setContinue(Object obj,
Object currCtx)
Deprecated. |
void |
setContinue(Object resObj,
String relResName,
Context currCtx,
String remain)
String overload. |
void |
setContinueNNS(Object resObj,
Name relResName,
Context currCtx)
Sets this Continuation with the supplied data, and set remaining name to be "/". |
void |
setContinueNNS(Object resObj,
String relResName,
Context currCtx)
Overloaded form that accesses String names. |
void |
setError(Object resObj,
Name remain)
Sets this Continuation to indicated that an error has occurred and supply resolved information. |
void |
setError(Object resObj,
String remain)
Form that accepts a String name instead of a Name name. |
void |
setErrorNNS(Object resObj,
Name remain)
Sets this Continuation to indicated that an error has occurred, and that the remaining name is rename + "/". |
void |
setErrorNNS(Object resObj,
String remain)
Form that accepts a String name instead of a Name name. |
void |
setSuccess()
Sets this Continuation to indicate successful completion. |
String |
toString()
toString creates a printable string that represents this object for debugging purposes. |
String |
toString(boolean detail)
|
| Methods inherited from class javax.naming.spi.ResolveResult |
|---|
appendRemainingComponent, appendRemainingName, getRemainingName, getResolvedObj, setRemainingName, setResolvedObj |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected Name starter
protected Object followingLink
protected Hashtable environment
protected boolean continuing
protected Context resolvedContext
protected Name relativeResolvedName
| Constructor Detail |
|---|
public Continuation()
public Continuation(Name top,
Hashtable environment)
top - The name of the object that is to be resolved/operated upon.
This becomes the Continuation's 'starter' and is used to
calculate the "resolved name" when filling in a NamingException.environment - The environment used by the caller. It is used
when setting the "environment" of a CannotProceedException.| Method Detail |
|---|
public boolean isContinue()
public void setSuccess()
setError(java.lang.Object, javax.naming.Name),
setErrorNNS(java.lang.Object, javax.naming.Name)public NamingException fillInException(NamingException e)
e - The non-null naming exception to fill.
public void setErrorNNS(Object resObj,
Name remain)
After this method is called, isContinuing() returns false.
resObj - The possibly null object that was resolved to.remain - The non-null remaining name.
public void setErrorNNS(Object resObj,
String remain)
resObj - The possibly null object that was resolved to.remain - The possibly String remaining name.setErrorNNS(java.lang.Object, javax.naming.Name)
public void setError(Object resObj,
Name remain)
After this method is called, isContinuing() returns false.
resObj - The possibly null object that was resolved to.remain - The possibly null remaining name.
public void setError(Object resObj,
String remain)
resObj - The possibly null object that was resolved to.remain - The possibly String remaining name.setError(java.lang.Object, javax.naming.Name)
public void setContinueNNS(Object resObj,
Name relResName,
Context currCtx)
After this method is called, isContinuing() returns true.
resObj - The possibly null resolved object.relResName - The non-null resolved name relative to currCtx.currCtx - The non-null context from which relResName is to be resolved.
public void setContinueNNS(Object resObj,
String relResName,
Context currCtx)
resObj - The possibly null resolved object.relResName - The non-null resolved name relative to currCtx.currCtx - The non-null context from which relResName is to be resolved.setContinueNNS(java.lang.Object, javax.naming.Name, javax.naming.Context)
public void setContinue(Object resObj,
Name relResName,
Context currCtx)
After this method is called, isContinuing() returns true.
resObj - The possibly null resolved object.relResName - The non-null resolved name relative to currCtx.currCtx - The non-null context from which relResName is to be resolved.
public void setContinue(Object resObj,
Name relResName,
Context currCtx,
Name remain)
After this method is called, isContinuing() returns true.
resObj - The possibly null resolved object.relResName - The non-null resolved name relative to currCtx.currCtx - The non-null context from which relResName is to be resolved.remain - The non-null remaining name.
public void setContinue(Object resObj,
String relResName,
Context currCtx,
String remain)
resObj - The possibly null resolved object.relResName - The non-null resolved name relative to currCtx.currCtx - The non-null context from which relResName is to be resolved.remain - The non-null remaining name.setContinue(java.lang.Object, java.lang.String, javax.naming.Context, java.lang.String)
@Deprecated
public void setContinue(Object obj,
Object currCtx)
public String toString()
ObjectThe default implementation returns getClass().getName() + '@' + Integer.toHexString(hashCode()).
toString in class Objectpublic String toString(boolean detail)
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||