public final class NashornUrlScriptSpec extends RemoteScriptSpec
engineType| Constructor and Description |
|---|
NashornUrlScriptSpec(URL url) |
| Modifier and Type | Method and Description |
|---|---|
CompiledScript |
compile(Compilable compiler)
Compiles the script for later execution.
|
boolean |
equals(Object obj) |
int |
hashCode() |
boolean |
isStatic()
Returns whether the script specification represents a script that is static (i.e.
|
protected Reader |
openReader() |
protected void |
setScriptSpecField(DocumentWorkerScript script)
Updates the relevant field in the specified script.
|
getScriptcreate, getEngineType, toDocumentWorkerScriptpublic NashornUrlScriptSpec(URL url) throws URISyntaxException
URISyntaxException@Nonnull public CompiledScript compile(Compilable compiler) throws ScriptException
RemoteScriptSpecIf the scripting engine hits an IOException when using the Reader then it wraps it in a ScriptException. By doing the same here the calling code can more easily handle both cases consistently.
compile in class RemoteScriptSpeccompiler - the engine to use to do the compilationScriptException - if compilation failspublic boolean isStatic()
AbstractScriptSpecisStatic in class AbstractScriptSpec@Nonnull protected Reader openReader() throws IOException
openReader in class RemoteScriptSpecIOExceptionprotected void setScriptSpecField(DocumentWorkerScript script)
AbstractScriptSpecsetScriptSpecField in class AbstractScriptSpecscript - the script object to be updatedCopyright © 2016–2021 EntIT Software LLC, a Micro Focus company. All rights reserved.