Class RestResourceMethodInterceptor
java.lang.Object
ch.tocco.nice2.metrics.impl.servlet.RestResourceMethodInterceptor
- All Implemented Interfaces:
ResourceMethodInvocationInterceptor
@Component
public class RestResourceMethodInterceptor
extends Object
implements ResourceMethodInvocationInterceptor
-
Nested Class Summary
Nested classes/interfaces inherited from interface ch.tocco.nice2.rest.core.spi.ResourceMethodInvocationInterceptor
ResourceMethodInvocationInterceptor.InterceptorChain
-
Constructor Summary
ConstructorDescriptionRestResourceMethodInterceptor
(MetricsRecorderService metricsRecorderService) -
Method Summary
Modifier and TypeMethodDescriptiononResourceMethodInvocation
(Method resourceMethod, Object[] params, ResourceMethodInvocationInterceptor.InterceptorChain interceptorChain) void
setCategoryExtractors
(List<MetricsCategoryExtractor> categoryExtractors) void
setRequestExclusionPattern
(String requestExclusionPattern)
-
Constructor Details
-
RestResourceMethodInterceptor
-
-
Method Details
-
setRequestExclusionPattern
@Value("${nice2.metrics.requestExclusionPattern}") public void setRequestExclusionPattern(String requestExclusionPattern) -
setCategoryExtractors
-
onResourceMethodInvocation
public Object onResourceMethodInvocation(Method resourceMethod, Object[] params, ResourceMethodInvocationInterceptor.InterceptorChain interceptorChain) throws Exception - Specified by:
onResourceMethodInvocation
in interfaceResourceMethodInvocationInterceptor
- Throws:
Exception
-