Class EndpointMvcAdapter
- java.lang.Object
- org.springframework.boot.actuate.endpoint.mvc.AbstractEndpointMvcAdapter<Endpoint<?>>
- org.springframework.boot.actuate.endpoint.mvc.EndpointMvcAdapter
- All Implemented Interfaces:
MvcEndpoint
,NamedMvcEndpoint
- Direct Known Subclasses:
EnvironmentMvcEndpoint
,LoggersMvcEndpoint
,MetricsMvcEndpoint
,ShutdownMvcEndpoint
public class EndpointMvcAdapter extends AbstractEndpointMvcAdapter<Endpoint<?>>
Adapter class to exposeEndpoint
s asMvcEndpoint
s.
Field Summary
Fields inherited from interface org.springframework.boot.actuate.endpoint.mvc.MvcEndpoint
DISABLED_RESPONSE
Constructor Summary
Constructors Constructor Description EndpointMvcAdapter(Endpoint<?> delegate)
Create a newEndpointMvcAdapter
.
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
invoke()
Methods inherited from class org.springframework.boot.actuate.endpoint.mvc.AbstractEndpointMvcAdapter
getDelegate, getDisabledResponse, getEndpointType, getName, getPath, isSensitive, setPath
Constructor Detail
EndpointMvcAdapter
public EndpointMvcAdapter(Endpoint<?> delegate)
Create a newEndpointMvcAdapter
.- Parameters:
delegate
- the underlyingEndpoint
to adapt.
Method Detail
invoke
@ActuatorGetMapping @ResponseBody public Object invoke()
- Overrides:
invoke
in classAbstractEndpointMvcAdapter<Endpoint<?>>