org.rhq.bindings.script
Class BaseRhqSchemeScriptSourceProvider
java.lang.Object
org.rhq.bindings.script.BaseRhqSchemeScriptSourceProvider
- All Implemented Interfaces:
- ScriptSourceProvider
- Direct Known Subclasses:
- RepoScriptSourceProvider
public abstract class BaseRhqSchemeScriptSourceProvider
- extends Object
- implements ScriptSourceProvider
- Author:
- Lukas Krejci
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SCHEME
public static final String SCHEME
- See Also:
- Constant Field Values
BaseRhqSchemeScriptSourceProvider
protected BaseRhqSchemeScriptSourceProvider(String expectedAuthority)
getScriptSource
public Reader getScriptSource(URI scriptUri)
- Specified by:
getScriptSource in interface ScriptSourceProvider
doGetScriptSource
protected abstract Reader doGetScriptSource(URI scriptUri)
- Implement this method to provide the script source.
The base implementation of the
getScriptSource(URI) method
only checks that the scheme of the URI is "rhq" and that the scheme
specific part starts with "//".
- Parameters:
scriptUri -
- Returns:
- the reader of the script or null if the script could not be
found using the URI
- See Also:
getScriptSource(URI)
Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.