|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.strutsme.client.RemoteExecutor
public final class RemoteExecutor
RemoteExecutor provides a method to execute an action at the server. The serverbase-url has to be set before.
| Method Summary | |
|---|---|
static SafeHashtable |
executeAtServer(java.lang.String actionName,
java.util.Hashtable actionParameter,
java.lang.String session,
SafeHashtable parameters)
Calls an action at the server and returns the result (values of the formbean). |
static SafeHashtable |
executeAtServer(java.lang.String actionName,
SafeHashtable parameters)
Wrapper around executeAtServer(String, Hashtable, String, SafeHashtable). |
static java.lang.String |
getServerBaseUrl()
|
static void |
setServerBaseUrl(java.lang.String serverBaseUrl)
The base url, which is extended by the action part to yield the complete url. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static SafeHashtable executeAtServer(java.lang.String actionName,
SafeHashtable parameters)
throws java.io.IOException,
SerializationException
executeAtServer(String, Hashtable, String, SafeHashtable).
Equal to executeAtServer(actionName, null, null, parameters).
actionName - the name of the actionparameters - the parameters for the formbean
java.io.IOException - if the network connection to the server fails
SerializationException - if the parameters contain unsupported
objectsServerResultWrapper
public static SafeHashtable executeAtServer(java.lang.String actionName,
java.util.Hashtable actionParameter,
java.lang.String session,
SafeHashtable parameters)
throws java.io.IOException,
SerializationException
actionName - the name of the actionactionParameter - addional HTTP-GET parameter (may be null)session - the sessionid (may be null)parameters - the parameters for the formbean
java.io.IOException - if the network connection to the server fails
SerializationException - if the parameters or the serverresponse
contains unsupported objectsServerResultWrapperpublic static java.lang.String getServerBaseUrl()
public static void setServerBaseUrl(java.lang.String serverBaseUrl)
serverBaseUrl - the new base url.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||