public class SessionPoolingScriptData extends Object
All members of this class are made public and non-final for performance and access reasons, but should be modified with care!
| Modifier and Type | Field and Description |
|---|---|
Element | currentElementThe current Element tag being executed. |
DefaultSessionPoolingHandler | handlerThe default script handler. |
long | maxTimeThe time in milliseconds (from GMT 1970) that the script must have completed before. |
boolean | returnCodeThe current return code of the script. |
String | scriptNameThe name of the script executing. |
Node | scriptStartThe start node of the script. |
| Constructor and Description |
|---|
SessionPoolingScriptData(DefaultSessionPoolingHandler handler, String scriptName, Node scriptStart, long maxTime)Creates an instance of script execution for one of the scripts. |
| Modifier and Type | Method and Description |
|---|---|
void | checkScriptDisposed()Check for script disposal (the maximum time and session disposal is checked). |
void | executeRemainingElements()Executes all sibling tags including the current element. |
void | executeRemainingElements(Element lastElement)Executes all sibling tags including the current element up to the lastElement. |
Element | getFirstElement(Node parent)Gets the first executable child element of a tag. |
Element | getNextElement(Node currentNode)Gets the next tag to execute if no "nesting" is present, i.e. |
int | getParamInt(String name)Helper function to get a parameter for the current element. |
int | getParamInt(String name, boolean logError)Helper function to get a parameter for the current element. |
int | getParamInt(String name, int defaultValue, boolean logError)Helper function to get a parameter for the current element. |
String | getParamString(String name)Helper function to get a String parameter for the current element. |
String | getParamString(String name, boolean logError)Helper function to get a String parameter for the current element. |
String | getParamString(String name, String defaultValue, boolean logError)Helper function to get a parameter String for an Element. |
boolean | hasElementAttribute(String name)Checks if the current element has a attribute defined. |
void | invokeScriptMethod()Invokes a script method that is previously registered at the currentElement position. |
void | logError(String txt)Logs an session pooling error event in the event log. |
void | logInfo(String txt)Logs an session pooling informational event in the event log. |
void | logWarning(String txt)Logs an session pooling warning event in the event log. |
boolean | setNextCurrentElement()Sets the currentElement to the next sibling element, or null if no other is found. |
void | trace(String txt)Adds a trace output for session pooling if client verbose trace is turned on. |
public final Node scriptStart
public final DefaultSessionPoolingHandler handler
public boolean returnCode
public Element currentElement
Element tag being executed. This variable should be changed after execution of a tag to point to the next element to execute in the script. If this variable is null, it means the end of the script.public final long maxTime
public final String scriptName
public SessionPoolingScriptData(DefaultSessionPoolingHandler handler, String scriptName, Node scriptStart, long maxTime)
public void checkScriptDisposed()
throws SessionPoolingDisposedSessionPoolingDisposed - if time is exceeded or session is disposed of.public int getParamInt(String name)
The name parameter is case sensitive.
public int getParamInt(String name, boolean logError)
If the parameter is not found, logError parameter will log a warning in the server event log.
The name parameter is case sensitive.
public int getParamInt(String name, int defaultValue, boolean logError)
If the parameter is not found or not a valid integer, logError parameter will log a warning in the server event log.
The name parameter is case sensitive.
public String getParamString(String name)
String parameter for the current element.The name parameter is case sensitive.
public String getParamString(String name, boolean logError)
String parameter for the current element.If the parameter is not found, logError parameter will log a warning in the server event log.
The name parameter is case sensitive.
public String getParamString(String name, String defaultValue, boolean logError)
String for an Element.If the parameter is not found, logError parameter will log a warning in the server event log.
The name parameter is case sensitive.
public boolean hasElementAttribute(String name)
The name parameter is case sensitive.
public Element getFirstElement(Node parent) throws SessionPoolingDisposed
SessionPoolingDisposed - when a script is disposed.NullPointerException - when the script is already at the end when this function is called.public Element getNextElement(Node currentNode) throws SessionPoolingDisposed
SessionPoolingDisposed - when a script is disposed.public void executeRemainingElements()
throws SessionPoolingDisposedcurrentElement variable is then null). If currentElement is null, no further processing is done.If a host error occurs, this function locates a sibling ONERROR tag. If found, all its siblings are executed. If not found, the SessionPoolingScriptHostError exception is thrown and should be handled by tags allowing children elements, such as IF/ELSEIF/ELSE, WHILE, CONDITIONS, SCREEN.
SessionPoolingDisposed - when a script has been disposed.SessionPoolingScriptHostError - when a host error is encountered.public void executeRemainingElements(Element lastElement) throws SessionPoolingDisposed
lastElement. The last element is not executed. The function then returns (the currentElement variable is then null or lastElement). If currentElement is null or set to lastElement, no further processing is done.If a host error occurs, this function locates a sibling ONERROR tag. If found, all its siblings are executed. If not found, the SessionPoolingScriptHostError exception is thrown and should be handled by tags allowing children elements, such as IF/ELSEIF/ELSE, WHILE, CONDITIONS, SCREEN.
SessionPoolingDisposed - when a script has been disposed.SessionPoolingScriptHostError - when a host error is encountered.public boolean setNextCurrentElement()
throws SessionPoolingDisposedcurrentElement to the next sibling element, or null if no other is found.SessionPoolingDisposed - if the session is disposed.public void invokeScriptMethod()
throws SessionPoolingDisposedcurrentElement position.If the name is a valid Element and the name is not valid, an error is logged in the server event log.
SessionPoolingDisposed - if the session is disposed.NullPointerException - if the script currentElement variable is null.public void trace(String txt)
public void logError(String txt)
public void logWarning(String txt)
public void logInfo(String txt)
Phantom® and NetPhantom® are registered trademarks of Mindus SARL.
© 2026 Mindus SARL. All rights reserved.