Package io.swagger.v3.jaxrs2
Class SwaggerSerializers
- java.lang.Object
-
- io.swagger.v3.jaxrs2.SwaggerSerializers
-
-
Constructor Summary
Constructors Constructor Description SwaggerSerializers()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetSize(OpenAPI data, Class type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)booleanisWriteable(Class type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)static voidsetOpenapi31(boolean openapi31)static voidsetPrettyPrint(boolean shouldPrettyPrint)voidwriteTo(OpenAPI data, Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String,Object> headers, OutputStream out)
-
-
-
Method Detail
-
setPrettyPrint
public static void setPrettyPrint(boolean shouldPrettyPrint)
-
setOpenapi31
public static void setOpenapi31(boolean openapi31)
-
isWriteable
public boolean isWriteable(Class type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
- Specified by:
isWriteablein interfacejavax.ws.rs.ext.MessageBodyWriter<OpenAPI>
-
getSize
public long getSize(OpenAPI data, Class type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
- Specified by:
getSizein interfacejavax.ws.rs.ext.MessageBodyWriter<OpenAPI>
-
writeTo
public void writeTo(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
- Specified by:
writeToin interfacejavax.ws.rs.ext.MessageBodyWriter<OpenAPI>- Throws:
IOException
-
-