|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.lightdev.app.trec.client.Request
public class Request
A request as expected by a Client object of the Light Development
Transparent Remote Computing (TREC) platform.
| Constructor Summary | |
|---|---|
Request(String agentName,
String methodName)
create a new instance of a Request object |
|
| Method Summary | |
|---|---|
void |
addParameter(Object parameter)
add a parameter to this request The TREC platform uses Apache XML-RPC for all communication between clients and servers. |
String |
getAgentName()
get name of agent this request is meant for |
String |
getMethodName()
get name of method this request is meant to call |
Vector |
getParameters()
get the parameter vector of this request |
void |
setParameters(Vector parameters)
set all parameters of this request |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Request(String agentName,
String methodName)
methodName - name of remote method to callagentName - name of agent to call| Method Detail |
|---|
public void setParameters(Vector parameters)
parameters - a vector with all parameterspublic void addParameter(Object parameter)
The TREC platform uses Apache XML-RPC for all communication between clients and servers. When a data type is not supported by XML-RPC it needs to be serialized to a byte array. The parameter vector expects all parameters to be valid XML-RPC types. Use methods serialize and deserialize of class Client to transform not supported types or implement a custom serialization/deserialization method in a subclass of Client.
For a listing of types supported by XML-RPC see http://ws.apache.org/xmlrpc/types.html
parameter - the parameter to addpublic String getAgentName()
public String getMethodName()
public Vector getParameters()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||