|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.activemath.webapp.ws.delegation.DelegationProcess
public class DelegationProcess
A class to model the generic process of delegating a browser from one server to the other. This class is thought to be used on both the activity-server side and guide-server-side.
Subclasses of this class should be linked to the web-service-invocation logic. Subclasses of this class could be:
| Nested Class Summary | |
|---|---|
static class |
DelegationProcess.DelegationBean
A simple class with get and set for delegation states... |
| Constructor Summary | |
|---|---|
DelegationProcess(String name)
|
|
| Method Summary | |
|---|---|
protected void |
createDelegationBean()
Creates an initializes the delegation-bean which stores all states of this process. |
Hashtable |
delegatedActivityFinished(float score,
String user,
String resourceIdentifier,
Hashtable optionalParams)
Signals the end of the delegation... copy from step 3. |
protected void |
fillMapToStartDelegation(Map map)
Populates the return map using, at least, directBrowserUrlTo. |
void |
outputDelegationState(OutputStream out)
Outputs to the stream an XML document representing the state of the delegation as read from the currently stored state. |
Hashtable |
startDelegation(String resourceIdentifier,
String userId,
String urlToReturnTheResultTo,
String urlToSendEventsTo,
Hashtable optionalParams)
Starts the delegation process as in step 1 of the browser delegation scenario. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DelegationProcess(String name)
| Method Detail |
|---|
protected void createDelegationBean()
public void outputDelegationState(OutputStream out)
throws IOException
out -
IOException
public Hashtable startDelegation(String resourceIdentifier,
String userId,
String urlToReturnTheResultTo,
String urlToSendEventsTo,
Hashtable optionalParams)
#postStartDelegation.
resourceIdentifier - userId - urlToReturnTheResultTo - urlToSendEventsTo - optionalParams -
directBrowserUrlTo
which is the first place where the delegated
browser is taken toprotected void fillMapToStartDelegation(Map map)
directBrowserUrlTo.
This value should be a string URL, which will be resolved relative
to the root-URL that called us.
TODO: check if can have this!
map -
public Hashtable delegatedActivityFinished(float score,
String user,
String resourceIdentifier,
Hashtable optionalParams)
Implementations of this method should check that the user and resourceIdentifier strings are the same.
score - user - resourceIdentifier - optionalParams -
urlToComeBack
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||