Update sli/core to ODL Oxygen 87/54987/1
authorTimoney, Dan (dt5972) <dt5972@att.com>
Fri, 15 Jun 2018 20:13:55 +0000 (16:13 -0400)
committerTimoney, Dan (dt5972) <dt5972@att.com>
Fri, 15 Jun 2018 20:13:55 +0000 (16:13 -0400)
Update sli/core artifacts to compile cleanly against ODL Oxygen
version of CCSDK parent poms.

Change-Id: I9f3b4c40b1ae62cdda1c35836466f8faf7da3b39
Issue-ID: CCSDK-280
Signed-off-by: Timoney, Dan (dt5972) <dt5972@att.com>
17 files changed:
dblib/features/ccsdk-dblib/pom.xml
dblib/features/ccsdk-dblib/src/main/feature/feature.xml
dblib/provider/pom.xml
filters/features/ccsdk-filters/pom.xml
filters/provider/pom.xml
filters/provider/src/main/java/org/onap/ccsdk/sli/core/filters/RequestResponseDbLoggingFilter.java [deleted file]
filters/provider/src/main/java/org/onap/ccsdk/sli/core/filters/RequestResponseLoggingFilter.java
filters/provider/src/test/java/org/onap/ccsdk/sli/core/filters/TestRequestResponseLoggingFilter.java
sli/common/pom.xml
sli/features/odl-sli/pom.xml
sli/provider/pom.xml
sli/recording/pom.xml
sliPluginUtils/features/ccsdk-sliPluginUtils/pom.xml
sliPluginUtils/provider/pom.xml
sliapi/features/ccsdk-sliapi/pom.xml
sliapi/provider/pom.xml
utils/provider/pom.xml

index 3a2f7a1..5d05f84 100644 (file)
 
        <name>ccsdk-sli-core :: dblib :: ${project.artifactId}</name>
 
-       <dependencyManagement>
-               <dependencies>
-                       <dependency>
-                               <groupId>org.opendaylight.mdsal.model</groupId>
-                               <artifactId>mdsal-model-artifacts</artifactId>
-                               <version>0.11.1</version>
-                               <type>pom</type>
-                               <scope>import</scope>
-                       </dependency>
-                       <dependency>
-                               <groupId>org.opendaylight.controller</groupId>
-                               <artifactId>mdsal-artifacts</artifactId>
-                               <version>1.6.1</version>
-                               <type>pom</type>
-                               <scope>import</scope>
-                       </dependency>
-               </dependencies>
-       </dependencyManagement>
+
        <dependencies>
-               <dependency>
-                       <groupId>org.opendaylight.controller</groupId>
-                       <artifactId>odl-mdsal-broker</artifactId>
-                       <type>xml</type>
-                       <classifier>features</classifier>
-               </dependency>
 
                <dependency>
                        <groupId>${project.groupId}</groupId>
                        <artifactId>utils-provider</artifactId>
                        <version>${project.version}</version>
                </dependency>
-               <dependency>
-                       <groupId>equinoxSDK381</groupId>
-                       <artifactId>org.eclipse.osgi</artifactId>
-                       <version>${equinox.osgi.version}</version>
-                       <scope>provided</scope>
-               </dependency>
+
                <dependency>
                        <groupId>org.apache.derby</groupId>
                        <artifactId>derby</artifactId>
-                       <version>10.11.1.1</version>
                </dependency>
        </dependencies>
 
index 514ce8d..771c374 100644 (file)
@@ -1,14 +1,13 @@
 <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
 <features xmlns="http://karaf.apache.org/xmlns/features/v1.4.0" name="ccsdk-dblib">
-    <repository>mvn:org.opendaylight.controller/odl-mdsal-broker/1.6.1/xml/features</repository>
+
     <feature name="ccsdk-dblib" description="ccsdk-sli-core :: dblib :: ccsdk-dblib" version="${project.version}">
         <details>Root POM to be used in place of odlparent for CCSDK based projects</details>
-        <feature version="1.6.1" prerequisite="false" dependency="false">odl-mdsal-broker</feature>
         <feature prerequisite="true" dependency="false">wrap</feature>
         <bundle>mvn:org.onap.ccsdk.sli.core/dblib-provider/${project.version}</bundle>
-        <bundle>mvn:org.mariadb.jdbc/mariadb-java-client/2.1.1</bundle>
-        <bundle>wrap:mvn:org.apache.tomcat/tomcat-jdbc/8.5.14/$DynamicImport-Package=org.mariadb.*,org.apache.derby.*&amp;overwrite=merge</bundle>
-        <bundle>wrap:mvn:org.apache.tomcat/tomcat-juli/8.5.14/$DynamicImport-Package=org.mariadb.*,org.apache.derby.*&amp;overwrite=merge</bundle>
+        <bundle>mvn:org.mariadb.jdbc/mariadb-java-client/${mariadb.connector.version}</bundle>
+        <bundle>wrap:mvn:org.apache.tomcat/tomcat-jdbc/${tomcat-jdbc.version}/$DynamicImport-Package=org.mariadb.*,org.apache.derby.*&amp;overwrite=merge</bundle>
+        <bundle>wrap:mvn:org.apache.tomcat/tomcat-juli/${tomcat-jdbc.version}/$DynamicImport-Package=org.mariadb.*,org.apache.derby.*&amp;overwrite=merge</bundle>
         <bundle>mvn:org.onap.ccsdk.sli.core/utils-provider/${project.version}</bundle>
     </feature>
 </features>
index e263374..78e7016 100755 (executable)
@@ -1,91 +1,87 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
-    <modelVersion>4.0.0</modelVersion>
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+       xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+       <modelVersion>4.0.0</modelVersion>
 
-    <parent>
-        <groupId>org.onap.ccsdk.parent</groupId>
-        <artifactId>binding-parent</artifactId>
-        <version>1.1.0-SNAPSHOT</version>
-        <relativePath />
-    </parent>
+       <parent>
+               <groupId>org.onap.ccsdk.parent</groupId>
+               <artifactId>binding-parent</artifactId>
+               <version>1.1.0-SNAPSHOT</version>
+               <relativePath />
+       </parent>
 
-    <groupId>org.onap.ccsdk.sli.core</groupId>
-    <artifactId>dblib-provider</artifactId>
-    <version>0.3.0-SNAPSHOT</version>
-    <packaging>bundle</packaging>
+       <groupId>org.onap.ccsdk.sli.core</groupId>
+       <artifactId>dblib-provider</artifactId>
+       <version>0.3.0-SNAPSHOT</version>
+       <packaging>bundle</packaging>
 
-    <name>ccsdk-sli-core :: dblib :: ${project.artifactId}</name>
-    <url>http://maven.apache.org</url>
+       <name>ccsdk-sli-core :: dblib :: ${project.artifactId}</name>
+       <url>http://maven.apache.org</url>
 
-    <properties>
-        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
-    </properties>
+       <properties>
+               <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+       </properties>
 
-    <dependencies>
-        <dependency>
-            <groupId>junit</groupId>
-            <artifactId>junit</artifactId>
-            <version>${junit.version}</version>
-            <scope>test</scope>
-        </dependency>
-        <dependency>
-            <groupId>ch.vorburger.mariaDB4j</groupId>
-            <artifactId>mariaDB4j</artifactId>
-            <version>2.2.3</version>
-            <scope>test</scope>
-        </dependency>
-        <dependency>
-            <groupId>equinoxSDK381</groupId>
-            <artifactId>org.eclipse.osgi</artifactId>
-            <version>${equinox.osgi.version}</version>
-        </dependency>
-        <dependency>
-            <groupId>org.slf4j</groupId>
-            <artifactId>slf4j-api</artifactId>
-            <version>${slf4j.version}</version>
-        </dependency>
-        <dependency>
-            <groupId>org.slf4j</groupId>
-            <artifactId>jcl-over-slf4j</artifactId>
-            <version>${slf4j.version}</version>
-        </dependency>
-        <dependency>
-            <groupId>org.slf4j</groupId>
-            <artifactId>slf4j-simple</artifactId>
-            <version>${slf4j.version}</version>
-            <scope>test</scope>
-        </dependency>
-        <dependency>
-            <groupId>org.mariadb.jdbc</groupId>
-            <artifactId>mariadb-java-client</artifactId>
-            <version>${mariadb.connector.version}</version>
-        </dependency>
-        <dependency>
-            <groupId>org.apache.tomcat</groupId>
-            <artifactId>tomcat-jdbc</artifactId>
-            <version>${tomcat-jdbc.version}</version>
-        </dependency>
-        <dependency>
-            <groupId>com.google.guava</groupId>
-            <artifactId>guava</artifactId>
-        </dependency>
-        <dependency>
-            <groupId>org.onap.ccsdk.sli.core</groupId>
-            <artifactId>utils-provider</artifactId>
-            <version>${project.version}</version>
-        </dependency>
+       <dependencies>
+               <dependency>
+                       <groupId>junit</groupId>
+                       <artifactId>junit</artifactId>
+                       <scope>test</scope>
+               </dependency>
+               <dependency>
+                       <groupId>ch.vorburger.mariaDB4j</groupId>
+                       <artifactId>mariaDB4j</artifactId>
+                       <version>2.2.3</version>
+                       <scope>test</scope>
+               </dependency>
+               <dependency>
+                       <groupId>org.osgi</groupId>
+                       <artifactId>org.osgi.core</artifactId>
+                       <scope>provided</scope>
+               </dependency>
+               <dependency>
+                       <groupId>org.slf4j</groupId>
+                       <artifactId>slf4j-api</artifactId>
+               </dependency>
+               <dependency>
+                       <groupId>org.slf4j</groupId>
+                       <artifactId>jcl-over-slf4j</artifactId>
+               </dependency>
+               <dependency>
+                       <groupId>org.slf4j</groupId>
+                       <artifactId>slf4j-simple</artifactId>
+                       <scope>test</scope>
+               </dependency>
+               <dependency>
+                       <groupId>org.mariadb.jdbc</groupId>
+                       <artifactId>mariadb-java-client</artifactId>
+                       <version>${mariadb.connector.version}</version>
+               </dependency>
+               <dependency>
+                       <groupId>org.apache.tomcat</groupId>
+                       <artifactId>tomcat-jdbc</artifactId>
+                       <version>${tomcat-jdbc.version}</version>
+               </dependency>
+               <dependency>
+                       <groupId>com.google.guava</groupId>
+                       <artifactId>guava</artifactId>
+               </dependency>
+               <dependency>
+                       <groupId>org.onap.ccsdk.sli.core</groupId>
+                       <artifactId>utils-provider</artifactId>
+                       <version>${project.version}</version>
+               </dependency>
 
-        <!-- Testing related dependencies -->
-        <dependency>
-            <groupId>org.mockito</groupId>
-            <artifactId>mockito-core</artifactId>
-            <scope>test</scope>
-        </dependency>
-        <dependency>
-            <groupId>org.apache.karaf.shell</groupId>
-            <artifactId>org.apache.karaf.shell.console</artifactId>
-            <version>${karaf.plugin.version}</version>
-        </dependency>
-    </dependencies>
+               <!-- Testing related dependencies -->
+               <dependency>
+                       <groupId>org.mockito</groupId>
+                       <artifactId>mockito-core</artifactId>
+                       <scope>test</scope>
+               </dependency>
+               <dependency>
+                       <groupId>org.apache.karaf.shell</groupId>
+                       <artifactId>org.apache.karaf.shell.console</artifactId>
+               </dependency>
+       </dependencies>
 </project>
index b35f5ec..a995790 100644 (file)
 
        <name>ccsdk-sli-core :: filters :: ${project.artifactId}</name>
 
-       <dependencyManagement>
-               <dependencies>
-                       <dependency>
-                               <groupId>org.opendaylight.mdsal.model</groupId>
-                               <artifactId>mdsal-model-artifacts</artifactId>
-                               <version>0.11.1</version>
-                               <type>pom</type>
-                               <scope>import</scope>
-                       </dependency>
-                       <dependency>
-                               <groupId>org.opendaylight.controller</groupId>
-                               <artifactId>mdsal-artifacts</artifactId>
-                               <version>1.6.1</version>
-                               <type>pom</type>
-                               <scope>import</scope>
-                       </dependency>
-               </dependencies>
-       </dependencyManagement>
+
        <dependencies>
-               <dependency>
-                       <groupId>org.opendaylight.controller</groupId>
-                       <artifactId>odl-mdsal-broker</artifactId>
-                       <type>xml</type>
-                       <classifier>features</classifier>
-               </dependency>
 
                <dependency>
                        <groupId>${project.groupId}</groupId>
index dd78b2a..c7d356b 100755 (executable)
         </dependency>
 
 
-        <dependency>
-            <groupId>equinoxSDK381</groupId>
-            <artifactId>org.eclipse.osgi</artifactId>
-            <version>${equinox.osgi.version}</version>
-            <scope>provided</scope>
-        </dependency>
+               <dependency>
+                       <groupId>org.osgi</groupId>
+                       <artifactId>org.osgi.core</artifactId>
+                       <scope>provided</scope>
+               </dependency>
 
         <dependency>
             <groupId>org.slf4j</groupId>
             <artifactId>slf4j-api</artifactId>
-            <version>${slf4j.version}</version>
         </dependency>
         <dependency>
             <groupId>org.slf4j</groupId>
             <artifactId>jcl-over-slf4j</artifactId>
-            <version>${slf4j.version}</version>
         </dependency>
         <dependency>
             <groupId>commons-codec</groupId>
             <artifactId>commons-codec</artifactId>
-            <version>${commons.codec.version}</version>
         </dependency>
         <dependency>
             <groupId>org.onap.ccsdk.sli.core</groupId>
diff --git a/filters/provider/src/main/java/org/onap/ccsdk/sli/core/filters/RequestResponseDbLoggingFilter.java b/filters/provider/src/main/java/org/onap/ccsdk/sli/core/filters/RequestResponseDbLoggingFilter.java
deleted file mode 100644 (file)
index 3591365..0000000
+++ /dev/null
@@ -1,299 +0,0 @@
-/*-
- * ============LICENSE_START=======================================================
- * ONAP : CCSDK
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights
- *                                             reserved.
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *      http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ============LICENSE_END=========================================================
- */
-
-package org.onap.ccsdk.sli.core.filters;
-
-import java.io.BufferedReader;
-import java.io.ByteArrayInputStream;
-import java.io.ByteArrayOutputStream;
-import java.io.IOException;
-import java.io.InputStream;
-import java.io.InputStreamReader;
-import java.io.PrintWriter;
-import java.util.zip.GZIPInputStream;
-
-import javax.servlet.Filter;
-import javax.servlet.FilterChain;
-import javax.servlet.FilterConfig;
-import javax.servlet.ServletException;
-import javax.servlet.ServletInputStream;
-import javax.servlet.ServletOutputStream;
-import javax.servlet.ServletRequest;
-import javax.servlet.ServletResponse;
-import javax.servlet.http.HttpServletRequest;
-import javax.servlet.http.HttpServletRequestWrapper;
-import javax.servlet.http.HttpServletResponse;
-import javax.servlet.http.HttpServletResponseWrapper;
-
-import org.onap.ccsdk.sli.core.sli.MessageWriter;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-
-@Deprecated
-public class RequestResponseDbLoggingFilter implements Filter {
-
-       private static Logger log = LoggerFactory.getLogger(RequestResponseDbLoggingFilter.class);
-
-       public static final String REQUEST_ID = "X-ECOMP-RequestID";
-
-       private static class ByteArrayServletStream extends ServletOutputStream {
-
-               ByteArrayOutputStream baos;
-
-               ByteArrayServletStream(ByteArrayOutputStream baos) {
-                       this.baos = baos;
-               }
-
-               @Override
-               public void write(int param) throws IOException {
-                       baos.write(param);
-               }
-       }
-
-       private static class ByteArrayPrintWriter {
-
-               private ByteArrayOutputStream baos = new ByteArrayOutputStream();
-
-               private PrintWriter pw = new PrintWriter(baos);
-
-               private ServletOutputStream sos = new ByteArrayServletStream(baos);
-
-               public PrintWriter getWriter() {
-                       return pw;
-               }
-
-               public ServletOutputStream getStream() {
-                       return sos;
-               }
-
-               byte[] toByteArray() {
-                       return baos.toByteArray();
-               }
-       }
-
-       private class BufferedServletInputStream extends ServletInputStream {
-
-               ByteArrayInputStream bais;
-
-               public BufferedServletInputStream(ByteArrayInputStream bais) {
-                       this.bais = bais;
-               }
-
-               @Override
-               public int available() {
-                       return bais.available();
-               }
-
-               @Override
-               public int read() {
-                       return bais.read();
-               }
-
-               @Override
-               public int read(byte[] buf, int off, int len) {
-                       return bais.read(buf, off, len);
-               }
-
-       }
-
-       private class BufferedRequestWrapper extends HttpServletRequestWrapper {
-
-               ByteArrayInputStream bais;
-
-               ByteArrayOutputStream baos;
-
-               BufferedServletInputStream bsis;
-
-               byte[] buffer;
-
-               public BufferedRequestWrapper(HttpServletRequest req) throws IOException {
-                       super(req);
-
-                       InputStream is = req.getInputStream();
-                       baos = new ByteArrayOutputStream();
-                       byte buf[] = new byte[1024];
-                       int letti;
-                       while ((letti = is.read(buf)) > 0) {
-                               baos.write(buf, 0, letti);
-                       }
-                       buffer = baos.toByteArray();
-
-               }
-
-               @Override
-               public ServletInputStream getInputStream() {
-                       try {
-                               bais = new ByteArrayInputStream(buffer);
-                               bsis = new BufferedServletInputStream(bais);
-                       } catch (Exception ex) {
-                               ex.printStackTrace();
-                       }
-
-                       return bsis;
-               }
-
-               public byte[] getBuffer() {
-                       return buffer;
-               }
-
-       }
-
-       @Override
-       public void init(FilterConfig filterConfig) throws ServletException {
-       }
-
-       @Override
-       public void doFilter(final ServletRequest request, final ServletResponse response, final FilterChain filterChain)
-               throws IOException, ServletException {
-
-               if (request == null || !(request instanceof HttpServletRequest)) {
-                       filterChain.doFilter(request, response);
-                       return;
-               }
-
-               long t1 = System.currentTimeMillis();
-
-               final HttpServletRequest httpRequest = (HttpServletRequest) request;
-               BufferedRequestWrapper bufferedRequest = new BufferedRequestWrapper(httpRequest);
-
-               String requestId = httpRequest.getHeader(REQUEST_ID);
-               if (requestId == null || requestId.trim().length() == 0) {
-                       log.warn("Could not write request in DB: " + REQUEST_ID + " is missing in the HTTP headers.");
-                       return;
-               }
-
-               String requestHost = request.getRemoteHost();
-               if (requestHost == null)
-                       requestHost = request.getRemoteAddr();
-
-               String requestStr = new String(bufferedRequest.getBuffer());
-
-               MessageWriter.saveIncomingRequest(requestId, null, requestHost, requestStr);
-
-               long t2 = System.currentTimeMillis();
-
-               log.info("Request saved in DB for request-id: " + requestId + ". TIme: " + (t2 - t1));
-
-               final HttpServletResponse httpResponse = (HttpServletResponse) response;
-
-               final ByteArrayPrintWriter pw = new ByteArrayPrintWriter();
-               HttpServletResponse wrappedResp = new HttpServletResponseWrapper(httpResponse) {
-
-                       @Override
-                       public PrintWriter getWriter() {
-                               return pw.getWriter();
-                       }
-
-                       @Override
-                       public ServletOutputStream getOutputStream() {
-                               return pw.getStream();
-                       }
-               };
-
-               try {
-
-                       filterChain.doFilter(bufferedRequest, wrappedResp);
-
-               } finally {
-
-                       if (request != null && request instanceof HttpServletRequest) {
-
-                               t1 = System.currentTimeMillis();
-
-                               byte[] bytes = pw.toByteArray();
-                               response.getOutputStream().write(bytes);
-                               response.getOutputStream().flush();
-
-                               String responseStr = null;
-                               if ("gzip".equals(httpResponse.getHeader("Content-Encoding"))) {
-                                       responseStr = decompressGZIPByteArray(bytes);
-                               } else {
-                                       responseStr = new String(bytes);
-                               }
-
-                               MessageWriter.saveIncomingResponse(requestId, httpResponse.getStatus(), responseStr);
-
-                               t2 = System.currentTimeMillis();
-
-                               log.info("Response saved in DB for request-id: " + requestId + ". TIme: " + (t2 - t1));
-                       }
-               }
-
-       }
-
-       @Override
-       public void destroy() {
-       }
-
-       private String decompressGZIPByteArray(byte[] bytes) {
-
-               BufferedReader in = null;
-               InputStreamReader inR = null;
-               ByteArrayInputStream byteS = null;
-               GZIPInputStream gzS = null;
-               StringBuilder str = new StringBuilder();
-               try {
-                       byteS = new ByteArrayInputStream(bytes);
-                       gzS = new GZIPInputStream(byteS);
-                       inR = new InputStreamReader(gzS);
-                       in = new BufferedReader(inR);
-
-                       if (in != null) {
-
-                               String content;
-
-                               while ((content = in.readLine()) != null) {
-                                       str.append(content);
-                               }
-                       }
-
-               } catch (Exception e) {
-                       log.error("Failed get read GZIPInputStream", e);
-               } finally {
-
-                       if (byteS != null)
-                               try {
-                                       byteS.close();
-                               } catch (IOException e1) {
-                                       log.error("Failed to close ByteStream", e1);
-                               }
-                       if (gzS != null)
-                               try {
-                                       gzS.close();
-                               } catch (IOException e2) {
-                                       log.error("Failed to close GZStream", e2);
-                               }
-                       if (inR != null)
-                               try {
-                                       inR.close();
-                               } catch (IOException e3) {
-                                       log.error("Failed to close InputReader", e3);
-                               }
-                       if (in != null)
-                               try {
-                                       in.close();
-                               } catch (IOException e) {
-                                       log.error("Failed to close BufferedReader", e);
-                               }
-               }
-               return str.toString();
-       }
-}
index 440aa41..ffe6d71 100644 (file)
@@ -34,11 +34,13 @@ import java.util.zip.GZIPInputStream;
 import javax.servlet.Filter;
 import javax.servlet.FilterChain;
 import javax.servlet.FilterConfig;
+import javax.servlet.ReadListener;
 import javax.servlet.ServletException;
 import javax.servlet.ServletInputStream;
 import javax.servlet.ServletOutputStream;
 import javax.servlet.ServletRequest;
 import javax.servlet.ServletResponse;
+import javax.servlet.WriteListener;
 import javax.servlet.http.HttpServletRequest;
 import javax.servlet.http.HttpServletRequestWrapper;
 import javax.servlet.http.HttpServletResponse;
@@ -60,6 +62,17 @@ public class RequestResponseLoggingFilter implements Filter {
                public void write(int param) throws IOException {
                        baos.write(param);
                }
+
+               @Override
+               public boolean isReady() {
+                       return true;
+               }
+
+               @Override
+               public void setWriteListener(WriteListener arg0) {
+                       
+                       
+               }
        }
 
        private static class ByteArrayPrintWriter {
@@ -106,6 +119,21 @@ public class RequestResponseLoggingFilter implements Filter {
                        return bais.read(buf, off, len);
                }
 
+               @Override
+               public boolean isFinished() {
+                       return available() < 1;
+               }
+
+               @Override
+               public boolean isReady() {
+                       return true;
+               }
+
+               @Override
+               public void setReadListener(ReadListener arg0) {
+                       
+               }
+
        }
 
        private class BufferedRequestWrapper extends HttpServletRequestWrapper {
index 9f36fe1..7ce856e 100644 (file)
@@ -18,9 +18,11 @@ import java.util.LinkedList;
 import java.util.UUID;
 import java.util.Vector;
 import javax.servlet.FilterChain;
+import javax.servlet.ReadListener;
 import javax.servlet.ServletException;
 import javax.servlet.ServletInputStream;
 import javax.servlet.ServletOutputStream;
+import javax.servlet.WriteListener;
 import javax.servlet.http.HttpServletRequest;
 import javax.servlet.http.HttpServletResponse;
 import org.apache.commons.codec.binary.Base64;
@@ -58,6 +60,30 @@ public class TestRequestResponseLoggingFilter {
         }
 
 
+               @Override
+               public boolean isFinished() {
+                       try {
+                               return stream.available() < 1;
+                       } catch (IOException e) {
+                               return true;
+                       }
+               }
+
+
+               @Override
+               public boolean isReady() {
+                       // TODO Auto-generated method stub
+                       return true;
+               }
+
+
+               @Override
+               public void setReadListener(ReadListener arg0) {
+                       // TODO Auto-generated method stub
+                       
+               }
+
+
 
     }
 
@@ -74,6 +100,16 @@ public class TestRequestResponseLoggingFilter {
             ostr.write(b);
         }
 
+               @Override
+               public boolean isReady() {
+                       return true;
+               }
+
+               @Override
+               public void setWriteListener(WriteListener arg0) {
+                       
+               }
+
     }
 
     /**
index 7f5ac80..ebb4f09 100755 (executable)
 
     </properties>
 
-    <dependencyManagement>
-        <dependencies>
-            <dependency>
-                <groupId>org.opendaylight.controller</groupId>
-                <artifactId>mdsal-artifacts</artifactId>
-                <version>1.6.1</version>
-                <type>pom</type>
-                <scope>import</scope>
-            </dependency>
-        </dependencies>
-    </dependencyManagement>
+
     <dependencies>
         <dependency>
             <groupId>org.apache.derby</groupId>
             <artifactId>derby</artifactId>
-            <version>10.11.1.1</version>
             <scope>test</scope>
         </dependency>
         <dependency>
             <groupId>org.antlr</groupId>
             <artifactId>antlr4-runtime</artifactId>
-            <version>${antlr.version}</version>
         </dependency>
         <dependency>
             <groupId>org.slf4j</groupId>
             <artifactId>slf4j-api</artifactId>
-            <version>${slf4j.version}</version>
         </dependency>
         <dependency>
             <groupId>org.slf4j</groupId>
             <artifactId>slf4j-simple</artifactId>
-            <version>1.7.5</version>
             <scope>compile</scope>
         </dependency>
         <dependency>
             <groupId>org.apache.commons</groupId>
             <artifactId>commons-lang3</artifactId>
-            <version>${commons.lang3.version}</version>
-        </dependency>
-        <dependency>
-            <groupId>equinoxSDK381</groupId>
-            <artifactId>org.eclipse.osgi</artifactId>
-            <version>${equinox.osgi.version}</version>
         </dependency>
+               <dependency>
+                       <groupId>org.osgi</groupId>
+                       <artifactId>org.osgi.core</artifactId>
+                       <version>${osgi.core.version}</version>
+                       <scope>provided</scope>
+               </dependency>
         <dependency>
             <groupId>org.mariadb.jdbc</groupId>
             <artifactId>mariadb-java-client</artifactId>
             <plugin>
                 <groupId>org.antlr</groupId>
                 <artifactId>antlr4-maven-plugin</artifactId>
-                <version>${antlr.version}</version>
                 <executions>
                     <execution>
                         <configuration>
index 4d01436..f108726 100644 (file)
@@ -1,5 +1,7 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+       xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
        <modelVersion>4.0.0</modelVersion>
 
        <parent>
        <dependencyManagement>
                <dependencies>
                        <dependency>
-                               <groupId>org.opendaylight.mdsal.model</groupId>
-                               <artifactId>mdsal-model-artifacts</artifactId>
-                               <version>0.11.1</version>
+                               <groupId>org.opendaylight.controller</groupId>
+                               <artifactId>mdsal-artifacts</artifactId>
+                               <version>${odl.mdsal.version}</version>
                                <type>pom</type>
                                <scope>import</scope>
                        </dependency>
                        <dependency>
-                               <groupId>org.opendaylight.controller</groupId>
-                               <artifactId>mdsal-artifacts</artifactId>
-                               <version>1.6.1</version>
+                               <groupId>org.opendaylight.mdsal.model</groupId>
+                               <artifactId>mdsal-model-artifacts</artifactId>
+                               <version>${odl.mdsal.model.version}</version>
                                <type>pom</type>
                                <scope>import</scope>
                        </dependency>
+
                </dependencies>
        </dependencyManagement>
        <dependencies>
                        <type>xml</type>
                        <classifier>features</classifier>
                </dependency>
-               <dependency>
-                       <groupId>org.opendaylight.controller</groupId>
-                       <artifactId>odl-mdsal-broker</artifactId>
-                       <type>xml</type>
-                       <classifier>features</classifier>
-               </dependency>
-               <dependency>
-                       <groupId>equinoxSDK381</groupId>
-                       <artifactId>org.eclipse.osgi</artifactId>
-                       <version>${equinox.osgi.version}</version>
-                       <scope>provided</scope>
-               </dependency>
+
+
        </dependencies>
 </project>
index ebba283..aed3483 100755 (executable)
 <?xml version="1.0"?>
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
-    <modelVersion>4.0.0</modelVersion>
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+       xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+       <modelVersion>4.0.0</modelVersion>
 
-    <parent>
-        <groupId>org.onap.ccsdk.parent</groupId>
-        <artifactId>binding-parent</artifactId>
-        <version>1.1.0-SNAPSHOT</version>
-        <relativePath />
-    </parent>
+       <parent>
+               <groupId>org.onap.ccsdk.parent</groupId>
+               <artifactId>binding-parent</artifactId>
+               <version>1.1.0-SNAPSHOT</version>
+               <relativePath />
+       </parent>
 
-    <groupId>org.onap.ccsdk.sli.core</groupId>
-    <artifactId>sli-provider</artifactId>
-    <version>0.3.0-SNAPSHOT</version>
-    <packaging>bundle</packaging>
+       <groupId>org.onap.ccsdk.sli.core</groupId>
+       <artifactId>sli-provider</artifactId>
+       <version>0.3.0-SNAPSHOT</version>
+       <packaging>bundle</packaging>
 
-    <name>ccsdk-sli-core :: sli :: ${project.artifactId}</name>
-    <description>SLI Provider is the OSGi bundle that exposes the service logic interpreter as a service.</description>
+       <name>ccsdk-sli-core :: sli :: ${project.artifactId}</name>
+       <description>SLI Provider is the OSGi bundle that exposes the service logic interpreter as a service.</description>
 
-    <properties>
-        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
-    </properties>
+       <properties>
+               <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+       </properties>
 
-    <dependencyManagement>
-        <dependencies>
-            <dependency>
-                <groupId>org.opendaylight.controller</groupId>
-                <artifactId>mdsal-artifacts</artifactId>
-                <version>1.6.1</version>
-                <type>pom</type>
-                <scope>import</scope>
-            </dependency>
-        </dependencies>
-    </dependencyManagement>
-    <dependencies>
 
-        <dependency>
-            <groupId>org.onap.ccsdk.sli.core</groupId>
-            <artifactId>sli-model</artifactId>
-            <version>${project.version}</version>
-            <scope>test</scope>
-        </dependency>
-        <dependency>
-            <groupId>org.onap.ccsdk.sli.core</groupId>
-            <artifactId>sli-common</artifactId>
-            <version>${project.version}</version>
-            <scope>compile</scope>
-        </dependency>
-        <dependency>
-            <groupId>equinoxSDK381</groupId>
-            <artifactId>org.eclipse.osgi</artifactId>
-            <version>${equinox.osgi.version}</version>
-        </dependency>
-        <dependency>
-            <groupId>org.slf4j</groupId>
-            <artifactId>slf4j-api</artifactId>
-            <version>${slf4j.version}</version>
-        </dependency>
-        <dependency>
-            <groupId>commons-lang</groupId>
-            <artifactId>commons-lang</artifactId>
-            <version>${commons.lang.version}</version>
-            <scope>compile</scope>
-        </dependency>
+       <dependencies>
 
+               <dependency>
+                       <groupId>org.onap.ccsdk.sli.core</groupId>
+                       <artifactId>sli-model</artifactId>
+                       <version>${project.version}</version>
+                       <scope>test</scope>
+               </dependency>
+               <dependency>
+                       <groupId>org.onap.ccsdk.sli.core</groupId>
+                       <artifactId>sli-common</artifactId>
+                       <version>${project.version}</version>
+                       <scope>compile</scope>
+               </dependency>
 
-        <dependency>
-            <groupId>org.opendaylight.controller</groupId>
-            <artifactId>sal-binding-api</artifactId>
-        </dependency>
+               <dependency>
+                       <groupId>org.slf4j</groupId>
+                       <artifactId>slf4j-api</artifactId>
+               </dependency>
+               <dependency>
+                       <groupId>commons-lang</groupId>
+                       <artifactId>commons-lang</artifactId>
+                       <scope>compile</scope>
+               </dependency>
 
-        <!-- Testing Dependencies -->
-        <dependency>
-            <groupId>junit</groupId>
-            <artifactId>junit</artifactId>
-            <scope>test</scope>
-        </dependency>
+               <dependency>
+                       <groupId>org.osgi</groupId>
+                       <artifactId>org.osgi.core</artifactId>
+                       <scope>provided</scope>
+               </dependency>
+               <dependency>
+                       <groupId>org.opendaylight.controller</groupId>
+                       <artifactId>sal-binding-api</artifactId>
+               </dependency>
 
-        <dependency>
-            <groupId>org.mockito</groupId>
-            <artifactId>mockito-core</artifactId>
-            <scope>test</scope>
-        </dependency>
-        <dependency>
-            <groupId>org.apache.derby</groupId>
-            <artifactId>derby</artifactId>
-            <version>10.11.1.1</version>
-            <scope>test</scope>
-        </dependency>
-    </dependencies>
+               <!-- Testing Dependencies -->
+               <dependency>
+                       <groupId>junit</groupId>
+                       <artifactId>junit</artifactId>
+                       <scope>test</scope>
+               </dependency>
 
-    <build>
-    <plugins>
-            <plugin>
-                <groupId>org.apache.felix</groupId>
-                <artifactId>maven-bundle-plugin</artifactId>
-                <extensions>true</extensions>
-                <configuration>
-                    <instructions>
-                        <DynamicImport-Package>*</DynamicImport-Package>
-                    </instructions>
-                </configuration>
+               <dependency>
+                       <groupId>org.mockito</groupId>
+                       <artifactId>mockito-core</artifactId>
+                       <scope>test</scope>
+               </dependency>
+               <dependency>
+                       <groupId>org.apache.derby</groupId>
+                       <artifactId>derby</artifactId>
+                       <scope>test</scope>
+               </dependency>
+       </dependencies>
 
-            </plugin>
-    </plugins>
+       <build>
+               <plugins>
+                       <plugin>
+                               <groupId>org.apache.felix</groupId>
+                               <artifactId>maven-bundle-plugin</artifactId>
+                               <extensions>true</extensions>
+                               <configuration>
+                                       <instructions>
+                                               <DynamicImport-Package>*</DynamicImport-Package>
+                                       </instructions>
+                               </configuration>
 
-    </build>
+                       </plugin>
+               </plugins>
+
+       </build>
 </project>
index a13ed13..038381d 100755 (executable)
@@ -1,84 +1,73 @@
 <?xml version="1.0"?>
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
-  <modelVersion>4.0.0</modelVersion>
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+       xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+       <modelVersion>4.0.0</modelVersion>
 
-  <parent>
-    <groupId>org.onap.ccsdk.parent</groupId>
-    <artifactId>binding-parent</artifactId>
-    <version>1.1.0-SNAPSHOT</version>
-    <relativePath/>
-  </parent>
+       <parent>
+               <groupId>org.onap.ccsdk.parent</groupId>
+               <artifactId>binding-parent</artifactId>
+               <version>1.1.0-SNAPSHOT</version>
+               <relativePath />
+       </parent>
 
-  <groupId>org.onap.ccsdk.sli.core</groupId>
-  <artifactId>sli-recording</artifactId>
-  <version>0.3.0-SNAPSHOT</version>
-  <packaging>bundle</packaging>
+       <groupId>org.onap.ccsdk.sli.core</groupId>
+       <artifactId>sli-recording</artifactId>
+       <version>0.3.0-SNAPSHOT</version>
+       <packaging>bundle</packaging>
 
-  <name>ccsdk-sli-core :: sli :: ${project.artifactId}</name>
-  <description>SLI Recording is an OSGi bundle that implements recording service for the service logic record node.</description>
+       <name>ccsdk-sli-core :: sli :: ${project.artifactId}</name>
+       <description>SLI Recording is an OSGi bundle that implements recording service for the service logic record node.</description>
 
-  <properties>
-    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
-  </properties>
+       <properties>
+               <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+       </properties>
 
-  <dependencyManagement>
-      <dependencies>
-          <dependency>
-              <groupId>org.opendaylight.controller</groupId>
-              <artifactId>mdsal-artifacts</artifactId>
-              <version>1.6.1</version>
-              <type>pom</type>
-              <scope>import</scope>
-          </dependency>
-      </dependencies>
-  </dependencyManagement>
-  <dependencies>
-               <dependency>
+
+       <dependencies>
+               <dependency>
                        <groupId>org.onap.ccsdk.sli.core</groupId>
                        <artifactId>sli-common</artifactId>
                        <version>${project.version}</version>
                        <scope>compile</scope>
                </dependency>
                <dependency>
-                       <groupId>equinoxSDK381</groupId>
-                       <artifactId>org.eclipse.osgi</artifactId>
-                       <version>${equinox.osgi.version}</version>
+                       <groupId>org.osgi</groupId>
+                       <artifactId>org.osgi.core</artifactId>
+                       <scope>provided</scope>
                </dependency>
                <dependency>
                        <groupId>org.slf4j</groupId>
                        <artifactId>slf4j-api</artifactId>
-                       <version>${slf4j.version}</version>
                </dependency>
                <dependency>
                        <groupId>org.slf4j</groupId>
                        <artifactId>jcl-over-slf4j</artifactId>
-                       <version>${slf4j.version}</version>
                </dependency>
 
                <dependency>
                        <groupId>commons-lang</groupId>
                        <artifactId>commons-lang</artifactId>
-                       <version>${commons.lang.version}</version>
                        <scope>compile</scope>
                </dependency>
 
-    <dependency>
-      <groupId>org.opendaylight.controller</groupId>
-      <artifactId>sal-binding-api</artifactId>
-    </dependency>
+               <dependency>
+                       <groupId>org.opendaylight.controller</groupId>
+                       <artifactId>sal-binding-api</artifactId>
+               </dependency>
 
-    <!-- Testing Dependencies -->
-    <dependency>
-      <groupId>junit</groupId>
-      <artifactId>junit</artifactId>
-      <scope>test</scope>
-    </dependency>
+               <!-- Testing Dependencies -->
+               <dependency>
+                       <groupId>junit</groupId>
+                       <artifactId>junit</artifactId>
+                       <scope>test</scope>
+               </dependency>
 
-    <dependency>
-      <groupId>org.mockito</groupId>
-      <artifactId>mockito-core</artifactId>
-      <scope>test</scope>
-    </dependency>
+               <dependency>
+                       <groupId>org.mockito</groupId>
+                       <artifactId>mockito-core</artifactId>
+                       <scope>test</scope>
+               </dependency>
 
-  </dependencies>
+       </dependencies>
 </project>
index 3737f9e..78f5f1e 100644 (file)
             <dependency>
                 <groupId>org.opendaylight.mdsal.model</groupId>
                 <artifactId>mdsal-model-artifacts</artifactId>
-                <version>0.11.1</version>
+                <version>${odl.mdsal.model.version}</version>
                 <type>pom</type>
                 <scope>import</scope>
             </dependency>
             <dependency>
                 <groupId>org.opendaylight.controller</groupId>
                 <artifactId>mdsal-artifacts</artifactId>
-                <version>1.6.1</version>
+                <version>${odl.mdsal.version}</version>
                 <type>pom</type>
                 <scope>import</scope>
             </dependency>
         </dependencies>
     </dependencyManagement>
     <dependencies>
-        <dependency>
-            <groupId>org.opendaylight.controller</groupId>
-            <artifactId>odl-mdsal-broker</artifactId>
-            <type>xml</type>
-            <classifier>features</classifier>
-        </dependency>
 
         <dependency>
             <groupId>${project.groupId}</groupId>
             <artifactId>sliPluginUtils-provider</artifactId>
             <version>${project.version}</version>
         </dependency>
-        <dependency>
-            <groupId>equinoxSDK381</groupId>
-            <artifactId>org.eclipse.osgi</artifactId>
-            <version>${equinox.osgi.version}</version>
-            <scope>provided</scope>
-        </dependency>
     </dependencies>
 </project>
index ae75063..411c145 100755 (executable)
                        <version>${project.version}</version>
                        <scope>compile</scope>
                </dependency>
-               <dependency>
-                       <groupId>equinoxSDK381</groupId>
-                       <artifactId>org.eclipse.osgi</artifactId>
-               </dependency>
+
                <dependency>
                        <groupId>org.slf4j</groupId>
                        <artifactId>slf4j-api</artifactId>
index f868f34..f4f6394 100644 (file)
 
     <name>ccsdk-sli-core :: sliapi :: ${project.artifactId}</name>
 
-    <dependencyManagement>
-        <dependencies>
-            <dependency>
+       <dependencyManagement>
+               <dependencies>
+                    <dependency>
                 <groupId>org.opendaylight.mdsal.model</groupId>
                 <artifactId>mdsal-model-artifacts</artifactId>
-                <version>0.11.1</version>
+                <version>${odl.mdsal.model.version}</version>
                 <type>pom</type>
                 <scope>import</scope>
             </dependency>
             <dependency>
                 <groupId>org.opendaylight.controller</groupId>
                 <artifactId>mdsal-artifacts</artifactId>
-                <version>1.6.1</version>
+                <version>${odl.mdsal.version}</version>
                 <type>pom</type>
                 <scope>import</scope>
             </dependency>
-        </dependencies>
-    </dependencyManagement>
+               </dependencies>
+       </dependencyManagement>
+       
     <dependencies>
-        <dependency>
-            <groupId>org.opendaylight.controller</groupId>
-            <artifactId>odl-mdsal-broker</artifactId>
-            <type>xml</type>
-            <classifier>features</classifier>
-        </dependency>
 
         <dependency>
             <groupId>${project.groupId}</groupId>
index 3be16f4..994557a 100755 (executable)
 
     <name>ccsdk-sli-core :: sliapi :: ${project.artifactId}</name>
 
-    <dependencyManagement>
-        <dependencies>
-            <dependency>
-                <groupId>org.opendaylight.controller</groupId>
-                <artifactId>mdsal-artifacts</artifactId>
-                <version>1.6.1</version>
-                <type>pom</type>
-                <scope>import</scope>
-            </dependency>
-        </dependencies>
-    </dependencyManagement>
+
     <dependencies>
         <dependency>
             <groupId>org.onap.ccsdk.sli.core</groupId>
         <dependency>
             <groupId>org.opendaylight.controller</groupId>
             <artifactId>sal-binding-config</artifactId>
+            <version>${odl.mdsal.version}</version>
         </dependency>
 
         <dependency>
             <groupId>org.opendaylight.controller</groupId>
             <artifactId>sal-binding-api</artifactId>
+            <version>${odl.mdsal.version}</version>
         </dependency>
 
         <dependency>
             <groupId>org.opendaylight.controller</groupId>
             <artifactId>sal-common-util</artifactId>
+            <version>${odl.mdsal.version}</version>
         </dependency>
 
 
         <dependency>
             <groupId>org.opendaylight.controller</groupId>
             <artifactId>sal-core-api</artifactId>
+            <version>${odl.mdsal.version}</version>
         </dependency>
         <dependency>
             <groupId>org.opendaylight.yangtools</groupId>
             <artifactId>yang-data-impl</artifactId>
+            <version>2.0.3</version>
         </dependency>
 
         <dependency>
@@ -87,7 +82,6 @@
         <dependency>
             <groupId>org.apache.derby</groupId>
             <artifactId>derby</artifactId>
-            <version>10.11.1.1</version>
             <scope>test</scope>
         </dependency>
     </dependencies>
index 2ecea40..2698b39 100644 (file)
             <groupId>com.google.guava</groupId>
             <artifactId>guava</artifactId>
         </dependency>
-        <dependency>
-            <groupId>equinoxSDK381</groupId>
-            <artifactId>org.eclipse.osgi</artifactId>
-            <version>${equinox.osgi.version}</version>
-            <scope>provided</scope>
-        </dependency>
+               <dependency>
+                       <groupId>org.osgi</groupId>
+                       <artifactId>org.osgi.core</artifactId>
+                       <scope>provided</scope>
+               </dependency>
 
         <!-- Testing Dependencies -->
         <dependency>