Class AbstractExposableEndpoint<O extends Operation>
java.lang.Object
org.springframework.boot.actuate.endpoint.AbstractExposableEndpoint<O>
- Type Parameters:
O- the operation type.
- All Implemented Interfaces:
ExposableEndpoint<O>
- Direct Known Subclasses:
AbstractDiscoveredEndpoint
public abstract class AbstractExposableEndpoint<O extends Operation>
extends Object
implements ExposableEndpoint<O>
Abstract base class for
ExposableEndpoint implementations.- Since:
- 2.0.0
- Author:
- Phillip Webb
-
Constructor Summary
ConstructorsConstructorDescriptionAbstractExposableEndpoint(EndpointId id, Access defaultAccess, Collection<? extends O> operations) Create a newAbstractExposableEndpointinstance. -
Method Summary
Modifier and TypeMethodDescriptionReturns the access to the endpoint that is permitted by default.Return the endpoint ID.Returns the operations of the endpoint.
-
Constructor Details
-
AbstractExposableEndpoint
public AbstractExposableEndpoint(EndpointId id, Access defaultAccess, Collection<? extends O> operations) Create a newAbstractExposableEndpointinstance.- Parameters:
id- the endpoint iddefaultAccess- access to the endpoint that is permitted by defaultoperations- the endpoint operations- Since:
- 3.4.0
-
-
Method Details
-
getEndpointId
Description copied from interface:ExposableEndpointReturn the endpoint ID.- Specified by:
getEndpointIdin interfaceExposableEndpoint<O extends Operation>- Returns:
- the endpoint ID
-
getDefaultAccess
Description copied from interface:ExposableEndpointReturns the access to the endpoint that is permitted by default.- Specified by:
getDefaultAccessin interfaceExposableEndpoint<O extends Operation>- Returns:
- access that is permitted by default
-
getOperations
Description copied from interface:ExposableEndpointReturns the operations of the endpoint.- Specified by:
getOperationsin interfaceExposableEndpoint<O extends Operation>- Returns:
- the operations
-