Class OpenApiDocumentService
- java.lang.Object
-
- io.quarkus.smallrye.openapi.runtime.OpenApiDocumentService
-
- All Implemented Interfaces:
OpenApiDocumentHolder
@ApplicationScoped public class OpenApiDocumentService extends Object implements OpenApiDocumentHolder
Loads the document and make it available
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static classOpenApiDocumentService.DynamicDocumentGenerate the document on every request.(package private) static classOpenApiDocumentService.StaticDocumentGenerate the document once on creation.
-
Constructor Summary
Constructors Constructor Description OpenApiDocumentService(org.eclipse.microprofile.openapi.OASFilter autoSecurityFilter, OpenApiRecorder.UserDefinedRuntimeFilters userDefinedRuntimeFilters, org.eclipse.microprofile.config.Config config)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]getJsonDocument()byte[]getYamlDocument()(package private) voidreset(ShutdownEvent event)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.quarkus.smallrye.openapi.runtime.OpenApiDocumentHolder
getDocument
-
-
-
-
Constructor Detail
-
OpenApiDocumentService
public OpenApiDocumentService(org.eclipse.microprofile.openapi.OASFilter autoSecurityFilter, OpenApiRecorder.UserDefinedRuntimeFilters userDefinedRuntimeFilters, org.eclipse.microprofile.config.Config config)
-
-
Method Detail
-
reset
void reset(@Observes ShutdownEvent event)
-
getJsonDocument
public byte[] getJsonDocument()
- Specified by:
getJsonDocumentin interfaceOpenApiDocumentHolder
-
getYamlDocument
public byte[] getYamlDocument()
- Specified by:
getYamlDocumentin interfaceOpenApiDocumentHolder
-
-