Annotation Interface ServletEndpoint
@Target(TYPE)
@Retention(RUNTIME)
@Documented
@Endpoint
@FilteredEndpoint(org.springframework.boot.actuate.endpoint.web.annotation.ServletEndpointFilter.class)
@Deprecated(since="3.3.0",
forRemoval=true)
public @interface ServletEndpoint
Deprecated, for removal: This API element is subject to removal in a future version.
Identifies a type as being an endpoint that supplies a servlet to expose.
Implementations must also implement
Supplier<EndpointServlet>
and return a valid EndpointServlet
.
This annotation can be used when existing servlets need to be exposed as actuator
endpoints, but it is at the expense of portability. Most users should prefer the
@Endpoint
or @WebEndpoint
annotations whenever
possible.
- Since:
- 2.0.0
- Author:
- Phillip Webb
-
Required Element Summary
-
Optional Element Summary
Modifier and TypeOptional ElementDescriptionboolean
Deprecated, for removal: This API element is subject to removal in a future version.If the endpoint should be enabled or disabled by default.
-
Element Details
-
id
Deprecated, for removal: This API element is subject to removal in a future version.The id of the endpoint.- Returns:
- the id
-
-
-
enableByDefault
Deprecated, for removal: This API element is subject to removal in a future version.If the endpoint should be enabled or disabled by default.- Returns:
true
if the endpoint is enabled by default
- Default:
- true
-
@Endpoint
and@WebEndpoint