Package dev.dsf.fhir.adapter
Class ThymeleafAdapter
java.lang.Object
dev.dsf.fhir.adapter.ThymeleafAdapter
- All Implemented Interfaces:
jakarta.ws.rs.ext.MessageBodyWriter<org.hl7.fhir.r4.model.Resource>,org.springframework.beans.factory.InitializingBean
@Provider
@Produces("text/html")
public class ThymeleafAdapter
extends Object
implements jakarta.ws.rs.ext.MessageBodyWriter<org.hl7.fhir.r4.model.Resource>, org.springframework.beans.factory.InitializingBean
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleanisWriteable(Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType) voidwriteTo(org.hl7.fhir.r4.model.Resource resource, Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType, jakarta.ws.rs.core.MultivaluedMap<String, Object> httpHeaders, OutputStream entityStream) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface jakarta.ws.rs.ext.MessageBodyWriter
getSize
-
Constructor Details
-
ThymeleafAdapter
-
-
Method Details
-
afterPropertiesSet
- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Throws:
Exception
-
isWriteable
public boolean isWriteable(Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType) - Specified by:
isWriteablein interfacejakarta.ws.rs.ext.MessageBodyWriter<org.hl7.fhir.r4.model.Resource>
-
writeTo
public void writeTo(org.hl7.fhir.r4.model.Resource resource, Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType, jakarta.ws.rs.core.MultivaluedMap<String, Object> httpHeaders, OutputStream entityStream) throws IOException, jakarta.ws.rs.WebApplicationException- Specified by:
writeToin interfacejakarta.ws.rs.ext.MessageBodyWriter<org.hl7.fhir.r4.model.Resource>- Throws:
IOExceptionjakarta.ws.rs.WebApplicationException
-