Class IncludeExcludeEndpointFilter<E extends org.springframework.boot.actuate.endpoint.ExposableEndpoint<?>>
java.lang.Object
org.springframework.boot.actuate.autoconfigure.endpoint.expose.IncludeExcludeEndpointFilter<E>
- Type Parameters:
E- the endpoint type
- All Implemented Interfaces:
org.springframework.boot.actuate.endpoint.EndpointFilter<E>
public class IncludeExcludeEndpointFilter<E extends org.springframework.boot.actuate.endpoint.ExposableEndpoint<?>>
extends Object
implements org.springframework.boot.actuate.endpoint.EndpointFilter<E>
EndpointFilter that will filter endpoints based on include and
exclude patterns.- Since:
- 2.2.7
-
Constructor Summary
ConstructorsConstructorDescriptionIncludeExcludeEndpointFilter(Class<E> endpointType, Collection<String> include, Collection<String> exclude, String... defaultIncludes) Create a newIncludeExcludeEndpointFilterwith specific include/exclude rules.IncludeExcludeEndpointFilter(Class<E> endpointType, org.springframework.core.env.Environment environment, String prefix, String... defaultIncludes) Create a newIncludeExcludeEndpointFilterwith include/exclude rules bound from theEnvironment. -
Method Summary
-
Constructor Details
-
IncludeExcludeEndpointFilter
public IncludeExcludeEndpointFilter(Class<E> endpointType, org.springframework.core.env.Environment environment, String prefix, String... defaultIncludes) Create a newIncludeExcludeEndpointFilterwith include/exclude rules bound from theEnvironment.- Parameters:
endpointType- the endpoint type that should be considered (other types always match)environment- the environment containing the propertiesprefix- the property prefix to binddefaultIncludes- the defaultincludesto use when none are specified.
-
IncludeExcludeEndpointFilter
public IncludeExcludeEndpointFilter(Class<E> endpointType, Collection<String> include, Collection<String> exclude, String... defaultIncludes) Create a newIncludeExcludeEndpointFilterwith specific include/exclude rules.- Parameters:
endpointType- the endpoint type that should be considered (other types always match)include- the include patternsexclude- the exclude patternsdefaultIncludes- the defaultincludesto use when none are specified.
-
-
Method Details
-
match
- Specified by:
matchin interfaceorg.springframework.boot.actuate.endpoint.EndpointFilter<E extends org.springframework.boot.actuate.endpoint.ExposableEndpoint<?>>
-
match
public final boolean match(org.springframework.boot.actuate.endpoint.EndpointId endpointId) Returntrueif the filter matches.- Parameters:
endpointId- the endpoint ID to check- Returns:
trueif the filter matches- Since:
- 2.6.0
-