Class RestResourceMethodInterceptor
java.lang.Object
ch.tocco.nice2.metrics.impl.servlet.RestResourceMethodInterceptor
- All Implemented Interfaces:
ResourceMethodInvocationInterceptor
@Component
@ConditionalOnProperty(value="ch.tocco.nice2.enableUpgradeMode",
havingValue="false",
matchIfMissing=true)
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
ConstructorsConstructorDescriptionRestResourceMethodInterceptor(MetricsRecorderService metricsRecorderService) -
Method Summary
Modifier and TypeMethodDescriptiononResourceMethodInvocation(Method resourceMethod, Object[] params, ResourceMethodInvocationInterceptor.InterceptorChain interceptorChain) voidsetCategoryExtractors(List<MetricsCategoryExtractor> categoryExtractors) voidsetRequestExclusionPattern(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:
onResourceMethodInvocationin interfaceResourceMethodInvocationInterceptor- Throws:
Exception
-