Class SwaggerSerializers

  • All Implemented Interfaces:
    javax.ws.rs.ext.MessageBodyWriter<OpenAPI>

    @Provider
    @Produces({"application/json","application/xml","application/yaml"})
    public class SwaggerSerializers
    extends Object
    implements javax.ws.rs.ext.MessageBodyWriter<OpenAPI>
    • Constructor Detail

      • SwaggerSerializers

        public SwaggerSerializers()
    • 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:
        isWriteable in interface javax.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:
        getSize in interface javax.ws.rs.ext.MessageBodyWriter<OpenAPI>