Class TransferredURLContext

java.lang.Object
de.aristaflow.adept2.ui.remotegui.AbstractTransferableGUIContext
de.aristaflow.adept2.ui.htmlgui.TransferredURLContext
All Implemented Interfaces:
Localiser, GUIContext, de.aristaflow.adept2.model.runtimeenvironment.guicontext.TransferableGUIContext, URLContext, Closeable, Serializable, AutoCloseable

public class TransferredURLContext extends AbstractTransferableGUIContext implements URLContext
A simple implementation of the transfer object for a URLContext.
See Also:
  • Field Details

    • url

      protected final URL url
      The URL of the corresponding HTMLContext to allow for remote calling.
  • Constructor Details

    • TransferredURLContext

      public TransferredURLContext(URL url, ActivityInstance activityInstance, EBPInstanceReference activity, String sessionID, ExecutionContext executionContext)
      Creates a new URLContext providing the designated URL that contains the GUI of the corresponding HTMLContext.
      Parameters:
      url - The URL of the corresponding HTMLContext to allow for remote calling.
      activityInstance - The activity instance the corresponding HTMLContext has been created for.
      activity - The EBPInstanceReference identifying the process instance node the corresponding HTMLContext has been created for.
      sessionID - The ID of the execution session the corresponding HTMLContext has been created for uniquely identifying the component execution on the (remote) runtime manager.
      executionContext - The execution context of the activity for which the corresponding HTMLContext has been created for.
    • TransferredURLContext

      protected TransferredURLContext(TransferredURLContext context, URL url)
      Creates a new TransferredURLContext having having the fields of the designated GUI context and the designated URL.
      Parameters:
      context - The GUI context from which to retrieve the fields.
      url - The URL of the corresponding HTMLContext to allow for remote calling.
  • Method Details

    • getURL

      public URL getURL()
      Description copied from interface: URLContext
      Gets the URL of the (remote) HTMLContext which provides the GUI.
      Specified by:
      getURL in interface URLContext
      Returns:
      The URL of the (remote) HTMLContext which provides the GUI.
    • getGUIContextAttributes

      public Map<String,String> getGUIContextAttributes()
      Description copied from class: AbstractTransferableGUIContext
      Always returns the empty map.
      Specified by:
      getGUIContextAttributes in interface de.aristaflow.adept2.model.runtimeenvironment.guicontext.TransferableGUIContext
      Overrides:
      getGUIContextAttributes in class AbstractTransferableGUIContext