E - the endpoint typepublic class IncludeExcludeEndpointFilter<E extends org.springframework.boot.actuate.endpoint.ExposableEndpoint<?>>
extends java.lang.Object
implements org.springframework.boot.actuate.endpoint.EndpointFilter<E>
EndpointFilter that will filter endpoints based on include and
exclude patterns.| Modifier and Type | Class and Description |
|---|---|
static class |
IncludeExcludeEndpointFilter.DefaultIncludes
Deprecated.
since 2.6.0 for removal in 3.0.0 in favor of
EndpointExposure. |
| Constructor and Description |
|---|
IncludeExcludeEndpointFilter(java.lang.Class<E> endpointType,
java.util.Collection<java.lang.String> include,
java.util.Collection<java.lang.String> exclude,
IncludeExcludeEndpointFilter.DefaultIncludes defaultIncludes)
Deprecated.
since 2.6.0 for removal in 3.0.0 in favor of
IncludeExcludeEndpointFilter(Class, Environment, String, String[]) |
IncludeExcludeEndpointFilter(java.lang.Class<E> endpointType,
java.util.Collection<java.lang.String> include,
java.util.Collection<java.lang.String> exclude,
java.lang.String... defaultIncludes)
Create a new
IncludeExcludeEndpointFilter with specific include/exclude
rules. |
IncludeExcludeEndpointFilter(java.lang.Class<E> endpointType,
org.springframework.core.env.Environment environment,
java.lang.String prefix,
IncludeExcludeEndpointFilter.DefaultIncludes defaultIncludes)
Deprecated.
since 2.6.0 for removal in 3.0.0 in favor of
IncludeExcludeEndpointFilter(Class, Environment, String, String[]) |
IncludeExcludeEndpointFilter(java.lang.Class<E> endpointType,
org.springframework.core.env.Environment environment,
java.lang.String prefix,
java.lang.String... defaultIncludes)
Create a new
IncludeExcludeEndpointFilter with include/exclude rules bound
from the Environment. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
match(E endpoint) |
boolean |
match(org.springframework.boot.actuate.endpoint.EndpointId endpointId)
Return
true if the filter matches. |
@Deprecated public IncludeExcludeEndpointFilter(java.lang.Class<E> endpointType, org.springframework.core.env.Environment environment, java.lang.String prefix, IncludeExcludeEndpointFilter.DefaultIncludes defaultIncludes)
IncludeExcludeEndpointFilter(Class, Environment, String, String[])IncludeExcludeEndpointFilter with include/exclude rules bound
from the Environment.endpointType - the endpoint type that should be considered (other types always
match)environment - the environment containing the propertiesprefix - the property prefix to binddefaultIncludes - the default includes to use when none are specified.public IncludeExcludeEndpointFilter(java.lang.Class<E> endpointType, org.springframework.core.env.Environment environment, java.lang.String prefix, java.lang.String... defaultIncludes)
IncludeExcludeEndpointFilter with include/exclude rules bound
from the Environment.endpointType - the endpoint type that should be considered (other types always
match)environment - the environment containing the propertiesprefix - the property prefix to binddefaultIncludes - the default includes to use when none are specified.public IncludeExcludeEndpointFilter(java.lang.Class<E> endpointType, java.util.Collection<java.lang.String> include, java.util.Collection<java.lang.String> exclude, java.lang.String... defaultIncludes)
IncludeExcludeEndpointFilter with specific include/exclude
rules.endpointType - the endpoint type that should be considered (other types always
match)include - the include patternsexclude - the exclude patternsdefaultIncludes - the default includes to use when none are specified.@Deprecated public IncludeExcludeEndpointFilter(java.lang.Class<E> endpointType, java.util.Collection<java.lang.String> include, java.util.Collection<java.lang.String> exclude, IncludeExcludeEndpointFilter.DefaultIncludes defaultIncludes)
IncludeExcludeEndpointFilter(Class, Environment, String, String[])IncludeExcludeEndpointFilter with specific include/exclude
rules.endpointType - the endpoint type that should be considered (other types always
match)include - the include patternsexclude - the exclude patternsdefaultIncludes - the default includes to use when none are specified.public boolean match(E endpoint)
match in interface org.springframework.boot.actuate.endpoint.EndpointFilter<E extends org.springframework.boot.actuate.endpoint.ExposableEndpoint<?>>public final boolean match(org.springframework.boot.actuate.endpoint.EndpointId endpointId)
true if the filter matches.endpointId - the endpoint ID to checktrue if the filter matches