org.directwebremoting.extend
Class Call
java.lang.Object
org.directwebremoting.extend.Call
public class Call
- extends java.lang.Object
Call is a POJO to encapsulate the information required to make a single java
call, including the result of the call (either returned data or exception).
Either the Method and Parameters should be filled in to allow a call to be
made or, the exception should be filled in indicating that things have gone
wrong already.
- Author:
- Joe Walker [joe at getahead dot ltd dot uk]
|
Constructor Summary |
Call(java.lang.String callId,
java.lang.String scriptName,
java.lang.String methodName)
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Call
public Call(java.lang.String callId,
java.lang.String scriptName,
java.lang.String methodName)
setMarshallFailure
public void setMarshallFailure(java.lang.Throwable exception)
getException
public java.lang.Throwable getException()
- Returns:
- the exception
getMethodDeclaration
public MethodDeclaration getMethodDeclaration()
- Returns:
- the method
setMethodDeclaration
public void setMethodDeclaration(MethodDeclaration methodDeclaration)
- Parameters:
methodDeclaration - the method to set
getParameters
public java.lang.Object[] getParameters()
- Returns:
- the parameters
setParameters
public void setParameters(java.lang.Object[] parameters)
- Parameters:
parameters - the parameters to set
getCallId
public java.lang.String getCallId()
- Returns:
- Returns the callId.
getScriptName
public java.lang.String getScriptName()
- Returns:
- Returns the scriptName.
getMethodName
public java.lang.String getMethodName()
- Returns:
- Returns the methodName.
findMethod
public void findMethod(ModuleManager moduleManager,
ConverterManager converterManager,
InboundContext inctx,
int callNum)
- Find the method the best matches the method name and parameters.
This method used to be significantly more detailed in its matching
sequences, this simpler version is less defined in the order in which it
matches methods, but able to find more matches. If we discover that this
version creates problems, the old version was around up to revision 2317.
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object