|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.codehaus.wadi.core.contextualiser.BasicInvocation
public class BasicInvocation
| Constructor Summary | |
|---|---|
BasicInvocation(java.lang.String sessionKey,
long exclusiveSessionLockWaitTime)
|
|
| Method Summary | |
|---|---|
protected void |
doInvoke()
|
protected void |
doInvoke(InvocationContext context)
|
int |
getErrorCode()
|
java.lang.String |
getErrorMessage()
|
long |
getExclusiveSessionLockWaitTime()
|
Session |
getSession()
|
java.lang.String |
getSessionKey()
Return the key carried by the Invocation associating it with server-side state - a Session |
void |
invoke()
Actually make the encapsulated Invocation. |
void |
invoke(InvocationContext context)
|
boolean |
isDoNotExecuteOnEndProcessing()
|
boolean |
isErrored()
|
boolean |
isErrorIfSessionNotAcquired()
|
boolean |
isProxiedInvocation()
|
boolean |
isRelocatable()
Does this Invocation know how to 'relocate' itself to another EndPoint ? |
InvocationContext |
newContext(Session context)
|
void |
relocate(org.codehaus.wadi.group.EndPoint endPoint)
Ask this Invocation to relocate itself to a given EndPoint |
void |
sendError(int code,
java.lang.String message)
Send an error back to the client from which the Invocation originated |
void |
setDoNotExecuteOnEndProcessing(boolean doNotExecuteOnEndProcessing)
|
void |
setErrorIfSessionNotAcquired(boolean errorIfSessionNotAcquired)
|
void |
setInvocationProxy(InvocationProxy proxy)
|
void |
setSession(Session session)
Attach the relevant Session to this Invocation for its lifetime |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BasicInvocation(java.lang.String sessionKey,
long exclusiveSessionLockWaitTime)
| Method Detail |
|---|
public Session getSession()
getSession in interface Invocationpublic java.lang.String getSessionKey()
Invocation
getSessionKey in interface Invocation
public void invoke()
throws InvocationException
Invocation
invoke in interface InvocationInvocationException
public void invoke(InvocationContext context)
throws InvocationException
invoke in interface InvocationInvocationException
protected void doInvoke()
throws InvocationException
InvocationException
protected void doInvoke(InvocationContext context)
throws InvocationException
InvocationExceptionpublic boolean isProxiedInvocation()
isProxiedInvocation in interface Invocationpublic boolean isRelocatable()
Invocation
isRelocatable in interface Invocation
public void relocate(org.codehaus.wadi.group.EndPoint endPoint)
throws InvocationException
Invocation
relocate in interface InvocationendPoint - the EndPoint
InvocationException
public void sendError(int code,
java.lang.String message)
throws InvocationException
Invocation
sendError in interface Invocationcode - an error codemessage - an error message
InvocationExceptionpublic void setInvocationProxy(InvocationProxy proxy)
setInvocationProxy in interface Invocationpublic void setSession(Session session)
Invocation
setSession in interface Invocationsession - The Sessionpublic boolean isErrorIfSessionNotAcquired()
isErrorIfSessionNotAcquired in interface Invocationpublic void setErrorIfSessionNotAcquired(boolean errorIfSessionNotAcquired)
setErrorIfSessionNotAcquired in interface Invocationpublic boolean isErrored()
public int getErrorCode()
public java.lang.String getErrorMessage()
public long getExclusiveSessionLockWaitTime()
getExclusiveSessionLockWaitTime in interface Invocationpublic boolean isDoNotExecuteOnEndProcessing()
public void setDoNotExecuteOnEndProcessing(boolean doNotExecuteOnEndProcessing)
public InvocationContext newContext(Session context)
newContext in interface Invocation
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||