@Provider @Produces(value={"application/json","application/xml","application/yaml"}) public class SwaggerSerializers extends Object implements javax.ws.rs.ext.MessageBodyWriter<io.swagger.v3.oas.models.OpenAPI>
Constructor and Description |
---|
SwaggerSerializers() |
Modifier and Type | Method and Description |
---|---|
long |
getSize(io.swagger.v3.oas.models.OpenAPI data,
Class type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType) |
boolean |
isWriteable(Class type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType) |
static void |
setPrettyPrint(boolean shouldPrettyPrint) |
void |
writeTo(io.swagger.v3.oas.models.OpenAPI data,
Class<?> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType,
javax.ws.rs.core.MultivaluedMap<String,Object> headers,
OutputStream out) |
public static void setPrettyPrint(boolean shouldPrettyPrint)
public boolean isWriteable(Class type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
isWriteable
in interface javax.ws.rs.ext.MessageBodyWriter<io.swagger.v3.oas.models.OpenAPI>
public long getSize(io.swagger.v3.oas.models.OpenAPI data, Class type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
getSize
in interface javax.ws.rs.ext.MessageBodyWriter<io.swagger.v3.oas.models.OpenAPI>
public void writeTo(io.swagger.v3.oas.models.OpenAPI data, Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String,Object> headers, OutputStream out) throws IOException
writeTo
in interface javax.ws.rs.ext.MessageBodyWriter<io.swagger.v3.oas.models.OpenAPI>
IOException
Copyright © 2020 JBoss by Red Hat. All rights reserved.