diff options
author | Plummer, Brittany <brittany.plummer@att.com> | 2020-02-21 10:23:59 -0500 |
---|---|---|
committer | Ramesh Parthasarathy <ramesh.parthasarathy@att.com> | 2020-07-10 00:11:48 +0000 |
commit | 9045a32ba68f9ffb2b07857701cff186d4b938d3 (patch) | |
tree | 0816e8351e0e3f69dede937562e08bf9f3455916 /common | |
parent | bcfb3585d1e8c1dcd7e745de377ffea243ba1ef3 (diff) |
Added prematching to audit filter
Added prematching to audit filter
Issue-ID: SO-2673
Signed-off-by: Ramesh Parthasarathy(rp6768)<ramesh.parthasarathy@att.com>
Change-Id: Ib7a4eb662119bb797337a90d9a7c04adb7f045d2
Diffstat (limited to 'common')
-rw-r--r-- | common/src/main/java/org/onap/so/logging/jaxrs/filter/SOAuditLogContainerFilter.java | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/common/src/main/java/org/onap/so/logging/jaxrs/filter/SOAuditLogContainerFilter.java b/common/src/main/java/org/onap/so/logging/jaxrs/filter/SOAuditLogContainerFilter.java index 5ae1082464..3e85cc5ec6 100644 --- a/common/src/main/java/org/onap/so/logging/jaxrs/filter/SOAuditLogContainerFilter.java +++ b/common/src/main/java/org/onap/so/logging/jaxrs/filter/SOAuditLogContainerFilter.java @@ -3,6 +3,7 @@ package org.onap.so.logging.jaxrs.filter; import javax.annotation.Priority; import javax.ws.rs.container.ContainerRequestContext; import javax.ws.rs.container.ContainerResponseContext; +import javax.ws.rs.container.PreMatching; import org.onap.logging.ref.slf4j.ONAPLogConstants; import org.onap.so.logger.HttpHeadersConstants; import org.onap.so.logger.LogConstants; @@ -11,6 +12,7 @@ import org.springframework.stereotype.Component; import org.onap.logging.filter.base.AuditLogContainerFilter; @Priority(1) +@PreMatching @Component public class SOAuditLogContainerFilter extends AuditLogContainerFilter { @@ -26,9 +28,4 @@ public class SOAuditLogContainerFilter extends AuditLogContainerFilter { } MDC.put(LogConstants.URI_BASE, request.getUriInfo().getBaseUri().toString()); } - - @Override - protected void additionalPostHandling(ContainerResponseContext response) { - // override to add additional post handling - } } |