Package org.springdoc.core
Class ActuatorProvider
- java.lang.Object
-
- org.springdoc.core.ActuatorProvider
-
- All Implemented Interfaces:
EventListener,org.springframework.context.ApplicationListener<org.springframework.boot.web.context.WebServerInitializedEvent>
public abstract class ActuatorProvider extends Object implements org.springframework.context.ApplicationListener<org.springframework.boot.web.context.WebServerInitializedEvent>
The type Actuator provider.- Author:
- bnasslahsen
-
-
Field Summary
Fields Modifier and Type Field Description protected org.springframework.boot.web.server.WebServeractuatorWebServerThe Actuator web server.protected org.springframework.boot.web.server.WebServerapplicationWebServerThe Application web server.protected org.springframework.context.ApplicationContextmanagementApplicationContextThe Management application context.protected org.springframework.boot.actuate.autoconfigure.web.server.ManagementServerPropertiesmanagementServerPropertiesThe Management server properties.protected org.springframework.boot.autoconfigure.web.ServerPropertiesserverPropertiesThe Server properties.protected SpringDocConfigPropertiesspringDocConfigPropertiesThe Spring doc config properties.protected org.springframework.boot.actuate.autoconfigure.endpoint.web.WebEndpointPropertieswebEndpointPropertiesThe Web endpoint properties.
-
Constructor Summary
Constructors Constructor Description ActuatorProvider(Optional<org.springframework.boot.actuate.autoconfigure.web.server.ManagementServerProperties> managementServerProperties, Optional<org.springframework.boot.actuate.autoconfigure.endpoint.web.WebEndpointProperties> webEndpointProperties, org.springframework.boot.autoconfigure.web.ServerProperties serverProperties, SpringDocConfigProperties springDocConfigProperties)Instantiates a new Actuator provider.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description StringgetActuatorPath()Gets actuator path.intgetActuatorPort()Gets actuator port.intgetApplicationPort()Gets application port.StringgetBasePath()Gets base path.StringgetContextPath()Gets context path.abstract MapgetMethods()Gets methods.static io.swagger.v3.oas.models.tags.TaggetTag()Gets tag.booleanisRestController(String operationPath, org.springframework.web.method.HandlerMethod handlerMethod)Is rest controller boolean.booleanisUseManagementPort()Is use management port boolean.voidonApplicationEvent(org.springframework.boot.web.context.WebServerInitializedEvent event)
-
-
-
Field Detail
-
managementServerProperties
protected org.springframework.boot.actuate.autoconfigure.web.server.ManagementServerProperties managementServerProperties
The Management server properties.
-
webEndpointProperties
protected org.springframework.boot.actuate.autoconfigure.endpoint.web.WebEndpointProperties webEndpointProperties
The Web endpoint properties.
-
serverProperties
protected org.springframework.boot.autoconfigure.web.ServerProperties serverProperties
The Server properties.
-
springDocConfigProperties
protected SpringDocConfigProperties springDocConfigProperties
The Spring doc config properties.
-
actuatorWebServer
protected org.springframework.boot.web.server.WebServer actuatorWebServer
The Actuator web server.
-
applicationWebServer
protected org.springframework.boot.web.server.WebServer applicationWebServer
The Application web server.
-
managementApplicationContext
protected org.springframework.context.ApplicationContext managementApplicationContext
The Management application context.
-
-
Constructor Detail
-
ActuatorProvider
public ActuatorProvider(Optional<org.springframework.boot.actuate.autoconfigure.web.server.ManagementServerProperties> managementServerProperties, Optional<org.springframework.boot.actuate.autoconfigure.endpoint.web.WebEndpointProperties> webEndpointProperties, org.springframework.boot.autoconfigure.web.ServerProperties serverProperties, SpringDocConfigProperties springDocConfigProperties)
Instantiates a new Actuator provider.- Parameters:
managementServerProperties- the management server propertieswebEndpointProperties- the web endpoint propertiesserverProperties- the server propertiesspringDocConfigProperties- the spring doc config properties
-
-
Method Detail
-
onApplicationEvent
public void onApplicationEvent(org.springframework.boot.web.context.WebServerInitializedEvent event)
- Specified by:
onApplicationEventin interfaceorg.springframework.context.ApplicationListener<org.springframework.boot.web.context.WebServerInitializedEvent>
-
getTag
public static io.swagger.v3.oas.models.tags.Tag getTag()
Gets tag.- Returns:
- the tag
-
isRestController
public boolean isRestController(String operationPath, org.springframework.web.method.HandlerMethod handlerMethod)
Is rest controller boolean.- Parameters:
operationPath- the operation pathhandlerMethod- the handler method- Returns:
- the boolean
-
isUseManagementPort
public boolean isUseManagementPort()
Is use management port boolean.- Returns:
- the boolean
-
getBasePath
public String getBasePath()
Gets base path.- Returns:
- the base path
-
getContextPath
public String getContextPath()
Gets context path.- Returns:
- the context path
-
getActuatorPath
public String getActuatorPath()
Gets actuator path.- Returns:
- the actuator path
-
getApplicationPort
public int getApplicationPort()
Gets application port.- Returns:
- the application port
-
getActuatorPort
public int getActuatorPort()
Gets actuator port.- Returns:
- the actuator port
-
getMethods
public abstract Map getMethods()
Gets methods.- Returns:
- the methods
-
-