Class MetricsInterceptor
- java.lang.Object
-
- fr.gouv.vitam.common.serverv2.metrics.MetricsInterceptor
-
- All Implemented Interfaces:
javax.ws.rs.container.ContainerRequestFilter
,javax.ws.rs.container.ContainerResponseFilter
public class MetricsInterceptor extends java.lang.Object implements javax.ws.rs.container.ContainerRequestFilter, javax.ws.rs.container.ContainerResponseFilter
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
CONTEXT_KEY
-
Constructor Summary
Constructors Constructor Description MetricsInterceptor(com.codahale.metrics.Timer timer, com.codahale.metrics.Meter meter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
filter(javax.ws.rs.container.ContainerRequestContext requestContext)
void
filter(javax.ws.rs.container.ContainerRequestContext requestContext, javax.ws.rs.container.ContainerResponseContext responseContext)
-
-
-
Field Detail
-
CONTEXT_KEY
public static final java.lang.String CONTEXT_KEY
- See Also:
- Constant Field Values
-
-
Method Detail
-
filter
public void filter(javax.ws.rs.container.ContainerRequestContext requestContext)
- Specified by:
filter
in interfacejavax.ws.rs.container.ContainerRequestFilter
-
filter
public void filter(javax.ws.rs.container.ContainerRequestContext requestContext, javax.ws.rs.container.ContainerResponseContext responseContext)
- Specified by:
filter
in interfacejavax.ws.rs.container.ContainerResponseFilter
-
-