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