public class RemoteHTMLContext extends AbstractHTMLContext implements URLContext, java.io.Serializable
HTMLContext that does not create any browsers or alike
but just provides the interaction between webserver and
ExecutableComponent. Additionally, this context can be
serialised to allow for accessing the GUI (HTML) remotely. Since the event
handling of a normal HTMLContext prevents serialisation, only
the URL is serialised (by replacing this context with a
URLContext). This URL can then be called remotely while
the interaction between webserver and ExecutableComponent is
further handled by this context (instance).
Note that as stated above this context is not really serialisable. When
serialising it is replaced by a URLContext which implies that
only a URLContext can be deserialised.
HTMLContext.Attachment, HTMLContext.HTTPReply, HTMLContext.Response| Modifier and Type | Field and Description |
|---|---|
protected HTTPService |
httpService
The HTTP service for deregistering this reply handler.
|
protected SessionToken |
session
The session token for deregistering at the
HTTPService. |
protected java.lang.String |
sessionID
The ID of the session in which the GUI context is needed (required for
deregistering this reply handler).
|
protected TransferredURLContext |
urlContext
The context for transferring this
HTMLContext for remote
usage. |
baseURL, DEFAULT_FINAL_RESPONSE, finalResponse, initialContent, logger, replies, replyHandlerTerminated, responses, thread| Constructor and Description |
|---|
RemoteHTMLContext(java.lang.Thread thread,
SessionToken session,
HTTPService httpService,
java.lang.String sessionID,
ActivityInstance activityInstance,
EBPInstanceReference activity,
ExecutionContext executionContext)
Creates a new
HTMLContext for handling the interaction between
webserver and ExecutableComponent and also to provide the
URL to a client allowing to call the URL
remotely. |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the GUI for this context.
|
void |
setBaseURL(java.net.URL baseURL)
Sets the base URL on which the reply handler is reachable via HTTP.
|
checkForValidExecutorThread, getResponse, getURL, getURL, setFinalResponse, setFinalResponse, setInitialContent, setResponse, waitForHTTPReplyclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetURLprotected final SessionToken session
HTTPService. This
should be retrieved from the client service instead of reusing the
registering token.protected final HTTPService httpService
protected TransferredURLContext urlContext
HTMLContext for remote
usage. Note that this will not have a URL until setBaseURL(URL)
has been called.protected final java.lang.String sessionID
public RemoteHTMLContext(java.lang.Thread thread,
SessionToken session,
HTTPService httpService,
java.lang.String sessionID,
ActivityInstance activityInstance,
EBPInstanceReference activity,
ExecutionContext executionContext)
HTMLContext for handling the interaction between
webserver and ExecutableComponent and also to provide the
URL to a client allowing to call the URL
remotely.thread - The thread which executes the component using this context
(locally).session - The session token used for deregistering at the
HTTPService.httpService - The HTTPService to deregister this context.sessionID - The session ID used for deregistering at the
HTTPService.activityInstance - The activity instance this GUI context has been
created for.activity - The EBPInstanceReference identifying the
process instance node this GUI context has been created for.executionContext - The execution context of the activity for which
this GUI context has been created for.public void close()
GUIContextclose in interface GUIContextclose in interface HTMLContextpublic void setBaseURL(java.net.URL baseURL)
HTTPReplyHandlersetBaseURL in interface HTTPReplyHandlersetBaseURL in class AbstractHTMLContextbaseURL - The URL on which this reply handler is reachable via HTTP.