org.rhq.bindings.script
Class BaseRhqSchemeScriptSourceProvider

java.lang.Object
  extended by org.rhq.bindings.script.BaseRhqSchemeScriptSourceProvider
All Implemented Interfaces:
ScriptSourceProvider
Direct Known Subclasses:
RepoScriptSourceProvider

public abstract class BaseRhqSchemeScriptSourceProvider
extends Object
implements ScriptSourceProvider

Author:
Lukas Krejci

Field Summary
static String SCHEME
           
 
Constructor Summary
protected BaseRhqSchemeScriptSourceProvider(String expectedAuthority)
           
 
Method Summary
protected abstract  Reader doGetScriptSource(URI scriptUri)
          Implement this method to provide the script source.
 Reader getScriptSource(URI scriptUri)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SCHEME

public static final String SCHEME
See Also:
Constant Field Values
Constructor Detail

BaseRhqSchemeScriptSourceProvider

protected BaseRhqSchemeScriptSourceProvider(String expectedAuthority)
Method Detail

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.