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
Default include patterns that can be used.
|
| 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)
Create a new
IncludeExcludeEndpointFilter with specific include/exclude
rules. |
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)
Create a new
IncludeExcludeEndpointFilter with include/exclude rules bound
from the Environment. |
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) |
protected boolean |
match(org.springframework.boot.actuate.endpoint.EndpointId endpointId)
Return
true if the filter matches. |
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, org.springframework.core.env.Environment environment, java.lang.String prefix, IncludeExcludeEndpointFilter.DefaultIncludes 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.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 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<?>>protected 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