MCPcopy Create free account
hub / github.com/directwebremoting/dwr / Call

Class Call

core/api/main/java/org/directwebremoting/extend/Call.java:35–361  ·  view source on GitHub ↗

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 g

Source from the content-addressed store, hash-verified

33 * @author Joe Walker [joe at getahead dot ltd dot uk]
34 */
35public class Call
36{
37 public Call(String callId, String scriptName, String methodName)
38 {
39 this.callId = callId;
40 this.scriptName = scriptName;
41 this.methodName = methodName;
42 }
43
44 public void setMarshallFailure(Throwable exception)
45 {
46 this.exception = exception;
47 this.methodDeclaration = null;
48 this.parameters = null;
49 }
50
51 /**
52 * @return the exception
53 */
54 public Throwable getException()
55 {
56 return exception;
57 }
58
59 /**
60 * @return the method
61 */
62 public MethodDeclaration getMethodDeclaration()
63 {
64 return methodDeclaration;
65 }
66
67 /**
68 * @param methodDeclaration the method to set
69 */
70 public void setMethodDeclaration(MethodDeclaration methodDeclaration)
71 {
72 this.methodDeclaration = methodDeclaration;
73 }
74
75 /**
76 * @return the parameters
77 */
78 public Object[] getParameters()
79 {
80 return parameters;
81 }
82
83 /**
84 * @param parameters the parameters to set
85 */
86 public void setParameters(Object[] parameters)
87 {
88 this.parameters = parameters;
89 }
90
91 /**
92 * @return Returns the callId.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…