diff options
author | Plummer, Brittany <brittany.plummer@att.com> | 2020-02-21 10:23:59 -0500 |
---|---|---|
committer | Benjamin, Max (mb388a) <mb388a@att.com> | 2020-02-21 10:23:59 -0500 |
commit | 46112301ef34490de3eb0e74a52fda14af961589 (patch) | |
tree | dfd6e56fce2fa522b196bba8c8e19cb72e0c72f6 | |
parent | 5376a65d586b37f13342f9e108f224b73d4149fc (diff) |
Added prematching to audit filter
Added prematching to audit filter
Issue-ID: SO-2673
Signed-off-by: Benjamin, Max (mb388a) <mb388a@att.com>
Change-Id: Ib7a4eb662119bb797337a90d9a7c04adb7f045d2
-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 - } } |