Package org.springdoc.core.providers
Class ActuatorProvider
java.lang.Object
org.springdoc.core.providers.ActuatorProvider
- All Implemented Interfaces:
org.springframework.beans.factory.Aware,org.springframework.context.ApplicationContextAware
public abstract class ActuatorProvider
extends Object
implements org.springframework.context.ApplicationContextAware
The type Actuator provider.
- Author:
- bnasslahsen
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.springframework.context.ApplicationContextThe Application context.protected org.springframework.boot.actuate.autoconfigure.web.server.ManagementServerPropertiesThe Management server properties.protected SpringDocConfigPropertiesThe Spring doc config properties.The server contextprotected org.springframework.boot.actuate.autoconfigure.endpoint.web.WebEndpointPropertiesThe Web endpoint properties. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedActuatorProvider(Optional<org.springframework.boot.actuate.autoconfigure.web.server.ManagementServerProperties> managementServerProperties, Optional<org.springframework.boot.actuate.autoconfigure.endpoint.web.WebEndpointProperties> webEndpointProperties, SpringDocWebServerConfiguration.SpringDocWebServerContext springDocWebServerContext, SpringDocConfigProperties springDocConfigProperties) Instantiates a new Actuator provider. -
Method Summary
Modifier and TypeMethodDescriptionGets actuator path.intGets actuator port.intGets application port.Gets base path.Gets context path.abstract MapGets methods.static io.swagger.v3.oas.models.tags.TaggetTag()Gets tag.booleanisRestController(String operationPath, org.springframework.web.method.HandlerMethod handlerMethod) Is rest controller boolean.booleanIs use management port boolean.voidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext)
-
Field Details
-
managementServerProperties
protected org.springframework.boot.actuate.autoconfigure.web.server.ManagementServerProperties managementServerPropertiesThe Management server properties. -
webEndpointProperties
protected org.springframework.boot.actuate.autoconfigure.endpoint.web.WebEndpointProperties webEndpointPropertiesThe Web endpoint properties. -
springDocWebServerContext
The server context -
springDocConfigProperties
The Spring doc config properties. -
applicationContext
protected org.springframework.context.ApplicationContext applicationContextThe Application context.
-
-
Constructor Details
-
ActuatorProvider
protected ActuatorProvider(Optional<org.springframework.boot.actuate.autoconfigure.web.server.ManagementServerProperties> managementServerProperties, Optional<org.springframework.boot.actuate.autoconfigure.endpoint.web.WebEndpointProperties> webEndpointProperties, SpringDocWebServerConfiguration.SpringDocWebServerContext springDocWebServerContext, SpringDocConfigProperties springDocConfigProperties) Instantiates a new Actuator provider.- Parameters:
managementServerProperties- the management server propertieswebEndpointProperties- the web endpoint propertiesspringDocWebServerContext- the server contextspringDocConfigProperties- the spring doc config properties
-
-
Method Details
-
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
Gets base path.- Returns:
- the base path
-
getContextPath
Gets context path.- Returns:
- the context path
-
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
Gets methods.- Returns:
- the methods
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException - Specified by:
setApplicationContextin interfaceorg.springframework.context.ApplicationContextAware- Throws:
org.springframework.beans.BeansException
-