Class EndpointServlet
java.lang.Object
org.springframework.boot.actuate.endpoint.web.EndpointServlet
Contains details of a servlet that is exposed as an actuator endpoint.
- Since:
- 2.0.0
- Author:
- Phillip Webb, Julio José Gómez Díaz
-
Constructor Summary
ConstructorDescriptionEndpointServlet
(Servlet servlet) EndpointServlet
(Class<? extends Servlet> servlet) -
Method Summary
Modifier and TypeMethodDescriptionwithInitParameter
(String name, String value) withInitParameters
(Map<String, String> initParameters) withLoadOnStartup
(int loadOnStartup) Sets theloadOnStartup
priority that will be set on Servlet registration.
-
Constructor Details
-
EndpointServlet
-
EndpointServlet
-
-
Method Details
-
withInitParameter
-
withInitParameters
-
withLoadOnStartup
Sets theloadOnStartup
priority that will be set on Servlet registration. The default value forloadOnStartup
is-1
.- Parameters:
loadOnStartup
- the initialization priority of the Servlet- Returns:
- a new instance of
EndpointServlet
with the providedloadOnStartup
value set - Since:
- 2.2.0
- See Also:
-