public final class ScriptImpl extends DocumentWorkerObjectImpl implements Script
application| Constructor and Description |
|---|
ScriptImpl(ApplicationImpl application,
AbstractTask task) |
ScriptImpl(ApplicationImpl application,
AbstractTask task,
DocumentWorkerScript script) |
| Modifier and Type | Method and Description |
|---|---|
int |
getIndex() |
String |
getName() |
Object |
getObject() |
String |
getScript() |
Task |
getTask() |
void |
install() |
boolean |
isInstalled() |
boolean |
isLoaded() |
void |
load() |
void |
raiseEvent(String event,
Object... args)
Raises the specified event in this script if it is currently loaded.
|
void |
setName(String name) |
void |
setScriptByReference(String reference) |
void |
setScriptByReference(String reference,
ScriptEngineType engineType) |
void |
setScriptByUrl(URL url) |
void |
setScriptByUrl(URL url,
ScriptEngineType engineType) |
void |
setScriptInline(String script) |
void |
setScriptInline(String script,
ScriptEngineType engineType) |
boolean |
shouldIncludeInResponse() |
DocumentWorkerScript |
toDocumentWorkerScript() |
void |
uninstall() |
void |
unload() |
getApplicationclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetApplicationpublic ScriptImpl(ApplicationImpl application, AbstractTask task)
public ScriptImpl(ApplicationImpl application, AbstractTask task, DocumentWorkerScript script) throws InvalidScriptException
InvalidScriptExceptionpublic String getScript() throws IOException
getScript in interface ScriptIOExceptionpublic boolean isInstalled()
isInstalled in interface Scriptpublic void load()
throws ScriptException
load in interface ScriptScriptExceptionpublic void setScriptByReference(String reference)
setScriptByReference in interface Scriptpublic void setScriptByReference(String reference, ScriptEngineType engineType)
setScriptByReference in interface Scriptpublic void setScriptByUrl(URL url)
setScriptByUrl in interface Scriptpublic void setScriptByUrl(URL url, ScriptEngineType engineType)
setScriptByUrl in interface Scriptpublic void setScriptInline(String script)
setScriptInline in interface Scriptpublic void setScriptInline(String script, ScriptEngineType engineType)
setScriptInline in interface Scriptpublic void raiseEvent(String event, Object... args)
If the event throws a checked exception then this will be wrapped in a RuntimeException.
event - the event to raiseargs - the arguments to be passed to the eventpublic boolean shouldIncludeInResponse()
public DocumentWorkerScript toDocumentWorkerScript()
Copyright © 2016–2021 EntIT Software LLC, a Micro Focus company. All rights reserved.