Class AbstractWriter
- java.lang.Object
-
- fish.payara.microprofile.openapi.impl.rest.app.provider.writer.AbstractWriter
-
- All Implemented Interfaces:
jakarta.ws.rs.ext.MessageBodyWriter<org.eclipse.microprofile.openapi.models.OpenAPI>
- Direct Known Subclasses:
JsonWriter
,YamlWriter
public abstract class AbstractWriter extends Object implements jakarta.ws.rs.ext.MessageBodyWriter<org.eclipse.microprofile.openapi.models.OpenAPI>
-
-
Field Summary
Fields Modifier and Type Field Description protected com.fasterxml.jackson.databind.ObjectMapper
mapper
-
Constructor Summary
Constructors Constructor Description AbstractWriter(com.fasterxml.jackson.databind.ObjectMapper mapper)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isWriteable(Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType)
void
writeTo(org.eclipse.microprofile.openapi.models.OpenAPI t, Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType, jakarta.ws.rs.core.MultivaluedMap<String,Object> httpHeaders, OutputStream entityStream)
-
-
-
Method Detail
-
isWriteable
public boolean isWriteable(Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType)
- Specified by:
isWriteable
in interfacejakarta.ws.rs.ext.MessageBodyWriter<org.eclipse.microprofile.openapi.models.OpenAPI>
-
writeTo
public void writeTo(org.eclipse.microprofile.openapi.models.OpenAPI t, Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType, jakarta.ws.rs.core.MultivaluedMap<String,Object> httpHeaders, OutputStream entityStream) throws IOException
- Specified by:
writeTo
in interfacejakarta.ws.rs.ext.MessageBodyWriter<org.eclipse.microprofile.openapi.models.OpenAPI>
- Throws:
IOException
-
-