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
ConstructorDescriptionAbstractExposableEndpoint
(EndpointId id, boolean enabledByDefault, Collection<? extends O> operations) Deprecated, for removal: This API element is subject to removal in a future version.AbstractExposableEndpoint
(EndpointId id, Access defaultAccess, Collection<? extends O> operations) Create a newAbstractExposableEndpoint
instance. -
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.boolean
Deprecated, for removal: This API element is subject to removal in a future version.
-
Constructor Details
-
AbstractExposableEndpoint
@Deprecated(since="3.4.0", forRemoval=true) public AbstractExposableEndpoint(EndpointId id, boolean enabledByDefault, Collection<? extends O> operations) Deprecated, for removal: This API element is subject to removal in a future version.since 3.4.0 for removal in 3.6.0 in favor ofAbstractExposableEndpoint(EndpointId, Access, Collection)
Create a newAbstractExposableEndpoint
instance.- Parameters:
id
- the endpoint idenabledByDefault
- if the endpoint is enabled by defaultoperations
- the endpoint operations
-
AbstractExposableEndpoint
public AbstractExposableEndpoint(EndpointId id, Access defaultAccess, Collection<? extends O> operations) Create a newAbstractExposableEndpoint
instance.- 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:ExposableEndpoint
Return the endpoint ID.- Specified by:
getEndpointId
in interfaceExposableEndpoint<O extends Operation>
- Returns:
- the endpoint ID
-
isEnableByDefault
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:ExposableEndpoint
Returns if the endpoint is enabled by default.- Specified by:
isEnableByDefault
in interfaceExposableEndpoint<O extends Operation>
- Returns:
- if the endpoint is enabled by default
-
getDefaultAccess
Description copied from interface:ExposableEndpoint
Returns the access to the endpoint that is permitted by default.- Specified by:
getDefaultAccess
in interfaceExposableEndpoint<O extends Operation>
- Returns:
- access that is permitted by default
-
getOperations
Description copied from interface:ExposableEndpoint
Returns the operations of the endpoint.- Specified by:
getOperations
in interfaceExposableEndpoint<O extends Operation>
- Returns:
- the operations
-
AbstractExposableEndpoint(EndpointId, Access, Collection)