Package dev.dsf.fhir.adapter
Class ThymeleafTemplateServiceImpl
java.lang.Object
dev.dsf.fhir.adapter.ThymeleafTemplateServiceImpl
- All Implemented Interfaces:
ThymeleafTemplateService,org.springframework.beans.factory.InitializingBean
public class ThymeleafTemplateServiceImpl
extends Object
implements ThymeleafTemplateService, org.springframework.beans.factory.InitializingBean
-
Constructor Summary
ConstructorsConstructorDescriptionThymeleafTemplateServiceImpl(String serverBaseUrl, Theme theme, ca.uhn.fhir.context.FhirContext fhirContext, List<? extends ThymeleafContext> contexts, boolean cacheEnabled, boolean modCssExists) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidwriteTo(org.hl7.fhir.r4.model.Resource resource, Class<?> type, jakarta.ws.rs.core.MediaType mediaType, jakarta.ws.rs.core.UriInfo uriInfo, jakarta.ws.rs.core.SecurityContext securityContext, OutputStream outputStream)
-
Constructor Details
-
ThymeleafTemplateServiceImpl
public ThymeleafTemplateServiceImpl(String serverBaseUrl, Theme theme, ca.uhn.fhir.context.FhirContext fhirContext, List<? extends ThymeleafContext> contexts, boolean cacheEnabled, boolean modCssExists) - Parameters:
serverBaseUrl- notnulltheme- may benullfhirContext- notnullcontexts- may benullcacheEnabled-modCssExists-
-
-
Method Details
-
afterPropertiesSet
- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Throws:
Exception
-
writeTo
public void writeTo(org.hl7.fhir.r4.model.Resource resource, Class<?> type, jakarta.ws.rs.core.MediaType mediaType, jakarta.ws.rs.core.UriInfo uriInfo, jakarta.ws.rs.core.SecurityContext securityContext, OutputStream outputStream) throws IOException - Specified by:
writeToin interfaceThymeleafTemplateService- Throws:
IOException
-