|
||||||||||
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(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 Invocation
public java.lang.String getSessionKey()
Invocation
getSessionKey
in interface Invocation
public void invoke() throws InvocationException
Invocation
invoke
in interface Invocation
InvocationException
public void invoke(InvocationContext context) throws InvocationException
invoke
in interface Invocation
InvocationException
protected void doInvoke() throws InvocationException
InvocationException
protected void doInvoke(InvocationContext context) throws InvocationException
InvocationException
public boolean isProxiedInvocation()
isProxiedInvocation
in interface Invocation
public boolean isRelocatable()
Invocation
isRelocatable
in interface Invocation
public void relocate(EndPoint endPoint) throws InvocationException
Invocation
relocate
in interface Invocation
endPoint
- the EndPoint
InvocationException
public void sendError(int code, java.lang.String message) throws InvocationException
Invocation
sendError
in interface Invocation
code
- an error codemessage
- an error message
InvocationException
public void setInvocationProxy(InvocationProxy proxy)
setInvocationProxy
in interface Invocation
public void setSession(Session session)
Invocation
setSession
in interface Invocation
session
- The Sessionpublic boolean isErrorIfSessionNotAcquired()
isErrorIfSessionNotAcquired
in interface Invocation
public void setErrorIfSessionNotAcquired(boolean errorIfSessionNotAcquired)
setErrorIfSessionNotAcquired
in interface Invocation
public boolean isErrored()
public int getErrorCode()
public java.lang.String getErrorMessage()
public long getExclusiveSessionLockWaitTime()
getExclusiveSessionLockWaitTime
in interface Invocation
public 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 |