public class URLScriptSource extends Object implements ScriptSource
ATTR_NAME, ATTR_REQUEST_BINDING, ATTR_REVISION, ATTR_SOURCE, ATTR_TYPE, ATTR_VISIBILITY, AUTO_DETECT
Constructor and Description |
---|
URLScriptSource(ScriptEntry.Visibility visibility,
URL source,
ScriptName scriptName) |
URLScriptSource(ScriptEntry.Visibility visibility,
URL source,
ScriptName scriptName,
SourceContainer parent) |
Modifier and Type | Method and Description |
---|---|
ScriptName[] |
getDependencies() |
ScriptName |
getName() |
SourceContainer |
getParentContainer()
Get the parent container if there is one.
|
Reader |
getReader()
Returns a new Reader on the underlying source object.
|
URL |
getSource() |
URI |
getSourceURI() |
static long |
getURLRevision(URL source,
String revision) |
ScriptEntry.Visibility |
getVisibility() |
String |
guessType() |
public URLScriptSource(ScriptEntry.Visibility visibility, URL source, ScriptName scriptName) throws URISyntaxException
URISyntaxException
public URLScriptSource(ScriptEntry.Visibility visibility, URL source, ScriptName scriptName, SourceContainer parent) throws URISyntaxException
URISyntaxException
public String guessType()
guessType
in interface ScriptSource
public ScriptName getName()
getName
in interface SourceUnit
public URL getSource()
getSource
in interface SourceUnit
public URI getSourceURI()
getSourceURI
in interface SourceUnit
public Reader getReader() throws IOException
ScriptSource
getReader
in interface ScriptSource
IOException
- if there was an error opening for streampublic ScriptEntry.Visibility getVisibility()
getVisibility
in interface SourceUnit
public ScriptName[] getDependencies()
getDependencies
in interface ScriptSource
public SourceContainer getParentContainer()
SourceUnit
getParentContainer
in interface SourceUnit
Copyright © 2025 Open Identity Platform Community. All rights reserved.