Package org.nuxeo.ecm.core.event.script
Class URLScript
- java.lang.Object
-
- org.nuxeo.ecm.core.event.script.Script
-
- org.nuxeo.ecm.core.event.script.URLScript
-
public class URLScript extends Script
- Author:
- Bogdan Stefanescu
-
-
Field Summary
Fields Modifier and Type Field Description protected URLConnection
conn
protected URL
url
-
Fields inherited from class org.nuxeo.ecm.core.event.script.Script
lastModified, script, scripting
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getExtension()
String
getLocation()
Reader
getReader()
Reader
getReaderIfModified()
-
Methods inherited from class org.nuxeo.ecm.core.event.script.Script
compile, getCompiledScript, getExtension, getScripting, newScript, newScript, newScript, run
-
-
-
-
Field Detail
-
url
protected final URL url
-
conn
protected URLConnection conn
-
-
Constructor Detail
-
URLScript
public URLScript(URL url) throws IOException
- Throws:
IOException
-
URLScript
public URLScript(String location) throws IOException
- Throws:
IOException
-
URLScript
public URLScript(org.osgi.framework.Bundle bundle, String path) throws IOException
- Throws:
IOException
-
-
Method Detail
-
getExtension
public String getExtension()
- Specified by:
getExtension
in classScript
-
getLocation
public String getLocation()
- Specified by:
getLocation
in classScript
-
getReaderIfModified
public Reader getReaderIfModified() throws IOException
- Specified by:
getReaderIfModified
in classScript
- Throws:
IOException
-
getReader
public Reader getReader() throws IOException
- Specified by:
getReader
in classScript
- Throws:
IOException
-
-