Package org.bremersee.spring.thymeleaf
Class TemplateResource
java.lang.Object
org.bremersee.spring.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
ConstructorsConstructorDescriptionTemplateResource(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
-
Constructor Details
-
TemplateResource
Instantiates a new template resource.- Parameters:
path- the path
-
TemplateResource
Instantiates a new template resource.- Parameters:
path- the pathcharacterEncoding- the character encoding
-
TemplateResource
Instantiates a new template resource.- Parameters:
path- the pathresourceLoader- the resource loader
-
TemplateResource
public TemplateResource(String path, String characterEncoding, org.springframework.core.io.ResourceLoader resourceLoader) Instantiates a new template resource.- Parameters:
path- the pathcharacterEncoding- the character encodingresourceLoader- the resource loader
-
-
Method Details
-
getDescription
- Specified by:
getDescriptionin interfaceorg.thymeleaf.templateresource.ITemplateResource
-
getBaseName
- Specified by:
getBaseNamein interfaceorg.thymeleaf.templateresource.ITemplateResource
-
exists
public boolean exists()- Specified by:
existsin interfaceorg.thymeleaf.templateresource.ITemplateResource
-
reader
- Specified by:
readerin interfaceorg.thymeleaf.templateresource.ITemplateResource- Throws:
IOException
-
relative
- Specified by:
relativein interfaceorg.thymeleaf.templateresource.ITemplateResource
-