Class DefaultTemplateLoader
- java.lang.Object
-
- org.opennms.features.jest.client.template.DefaultTemplateLoader
-
- All Implemented Interfaces:
TemplateLoader
- Direct Known Subclasses:
OsgiTemplateLoader
public class DefaultTemplateLoader extends Object implements TemplateLoader
-
-
Constructor Summary
Constructors Constructor Description DefaultTemplateLoader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
getResource(String resource)
protected InputStream
getResourceAsStream(String resource)
String
load(Version serverVersion, String resource)
-
-
-
Method Detail
-
load
public String load(Version serverVersion, String resource) throws IOException
- Specified by:
load
in interfaceTemplateLoader
- Throws:
IOException
-
getResource
protected String getResource(String resource) throws IOException
- Throws:
IOException
-
getResourceAsStream
protected InputStream getResourceAsStream(String resource) throws IOException
- Throws:
IOException
-
-