diff options
author | Fiete Ostkamp <Fiete.Ostkamp@telekom.de> | 2022-10-14 09:30:31 +0000 |
---|---|---|
committer | Fiete Ostkamp <Fiete.Ostkamp@telekom.de> | 2022-10-14 09:30:31 +0000 |
commit | d629b626036a1ef1bc37e2b9aa5b5d2fcad1be66 (patch) | |
tree | bbb64ce713a6f3407d73ed256d48a5c83da1cdf3 /aai-aaf-auth/src/main | |
parent | 271e8f5f853c7ed8c277f5c12607a4633dd5b136 (diff) |
Remove the apache commons-lang dependency in aai-common
Issue-ID: AAI-3551
Signed-off-by: Fiete Ostkamp <Fiete.Ostkamp@telekom.de>
Change-Id: Ib68b6fb43044532abf39c1ac088ef969c5aa00c2
Diffstat (limited to 'aai-aaf-auth/src/main')
-rw-r--r-- | aai-aaf-auth/src/main/java/org/onap/aai/aaf/filters/GremlinFilter.java | 21 | ||||
-rw-r--r-- | aai-aaf-auth/src/main/java/org/onap/aai/aaf/filters/PayloadBufferingRequestWrapper.java | 9 |
2 files changed, 16 insertions, 14 deletions
diff --git a/aai-aaf-auth/src/main/java/org/onap/aai/aaf/filters/GremlinFilter.java b/aai-aaf-auth/src/main/java/org/onap/aai/aaf/filters/GremlinFilter.java index 23ff0c6d..ce96acf1 100644 --- a/aai-aaf-auth/src/main/java/org/onap/aai/aaf/filters/GremlinFilter.java +++ b/aai-aaf-auth/src/main/java/org/onap/aai/aaf/filters/GremlinFilter.java @@ -19,23 +19,24 @@ */ package org.onap.aai.aaf.filters; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; +import java.io.IOException; +import java.nio.charset.StandardCharsets; +import java.util.regex.Pattern; + +import javax.servlet.FilterChain; +import javax.servlet.ServletException; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; + import org.apache.commons.io.IOUtils; import org.onap.aai.aaf.auth.ResponseFormatter; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Value; import org.springframework.context.annotation.Profile; import org.springframework.stereotype.Component; -import javax.servlet.FilterChain; -import javax.servlet.ServletException; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; -import java.io.IOException; -import java.nio.charset.StandardCharsets; -import java.util.regex.Pattern; - @Component @Profile({ AafProfiles.AAF_CERT_AUTHENTICATION, diff --git a/aai-aaf-auth/src/main/java/org/onap/aai/aaf/filters/PayloadBufferingRequestWrapper.java b/aai-aaf-auth/src/main/java/org/onap/aai/aaf/filters/PayloadBufferingRequestWrapper.java index eb8a61dd..138189e4 100644 --- a/aai-aaf-auth/src/main/java/org/onap/aai/aaf/filters/PayloadBufferingRequestWrapper.java +++ b/aai-aaf-auth/src/main/java/org/onap/aai/aaf/filters/PayloadBufferingRequestWrapper.java @@ -19,14 +19,15 @@ */ package org.onap.aai.aaf.filters; -import org.apache.commons.io.IOUtils; -import org.onap.aaf.cadi.BufferedServletInputStream; +import java.io.ByteArrayInputStream; +import java.io.IOException; import javax.servlet.ServletInputStream; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletRequestWrapper; -import java.io.ByteArrayInputStream; -import java.io.IOException; + +import org.apache.commons.io.IOUtils; +import org.onap.aaf.cadi.BufferedServletInputStream; /** * This class buffers the payload of the servlet request. The reason is that we access the payload multiple times, |