public class JSR223Script extends Object implements Script
| Constructor and Description |
|---|
JSR223Script(View view)
Builds the script object
|
| Modifier and Type | Method and Description |
|---|---|
String |
execute(Resource resource,
RenderContext context)
Execute the script and return the result as a string
|
View |
getView()
Provides access to the view associated with this script
|
protected InputStream |
getViewInputStream()
Returns an
InputStream object that serves the content of the view script. |
public JSR223Script(View view)
public String execute(Resource resource, RenderContext context) throws RenderException
execute in interface Scriptresource - resource to displaycontext - RenderExceptionpublic View getView()
protected InputStream getViewInputStream() throws IOException
InputStream object that serves the content of the view script.InputStream object that serves the content of the view scriptIOException - in case of an error retrieving the resource streamCopyright © 2004–2020 Jahia Solutions Group SA. All rights reserved.