Package org.bremersee.thymeleaf
Class TemplateResource
- java.lang.Object
-
- org.bremersee.thymeleaf.TemplateResource
-
- All Implemented Interfaces:
org.thymeleaf.templateresource.ITemplateResource
public class TemplateResource extends Object implements org.thymeleaf.templateresource.ITemplateResource
The template resource.- Author:
- Christian Bremer
-
-
Constructor Summary
Constructors Constructor Description TemplateResource(String path)
Instantiates a new template resource.TemplateResource(String path, String characterEncoding)
Instantiates a new template resource.TemplateResource(String path, String characterEncoding, org.springframework.core.io.ResourceLoader resourceLoader)
Instantiates a new template resource.TemplateResource(String path, org.springframework.core.io.ResourceLoader resourceLoader)
Instantiates a new template resource.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
exists()
String
getBaseName()
String
getDescription()
Reader
reader()
org.thymeleaf.templateresource.ITemplateResource
relative(String relativeLocation)
-
-
-
Constructor Detail
-
TemplateResource
public TemplateResource(String path)
Instantiates a new template resource.- Parameters:
path
- the path
-
TemplateResource
public TemplateResource(String path, String characterEncoding)
Instantiates a new template resource.- Parameters:
path
- the pathcharacterEncoding
- the character encoding
-
TemplateResource
public TemplateResource(String path, org.springframework.core.io.ResourceLoader resourceLoader)
Instantiates a new template resource.- Parameters:
path
- the pathresourceLoader
- the resource loader
-
-
Method Detail
-
getDescription
public String getDescription()
- Specified by:
getDescription
in interfaceorg.thymeleaf.templateresource.ITemplateResource
-
getBaseName
public String getBaseName()
- Specified by:
getBaseName
in interfaceorg.thymeleaf.templateresource.ITemplateResource
-
exists
public boolean exists()
- Specified by:
exists
in interfaceorg.thymeleaf.templateresource.ITemplateResource
-
reader
public Reader reader() throws IOException
- Specified by:
reader
in interfaceorg.thymeleaf.templateresource.ITemplateResource
- Throws:
IOException
-
relative
public org.thymeleaf.templateresource.ITemplateResource relative(String relativeLocation)
- Specified by:
relative
in interfaceorg.thymeleaf.templateresource.ITemplateResource
-
-