The following document contains the results of Rat (Release Audit Tool).
*****************************************************
Summary
-------
Generated at: 2017-03-11T23:46:21-05:00
Notes: 0
Binaries: 0
Archives: 0
Standards: 7
Apache Licensed: 0
Generated Documents: 0
JavaDocs are generated, thus a license header is optional.
Generated files do not require license headers.
7 Unknown Licenses
*****************************************************
Files with unapproved licenses:
C:/projects/fgsms/fgsms-agents/fgsms-servlet-filter-agent/pom.xml
C:/projects/fgsms/fgsms-agents/fgsms-servlet-filter-agent/src/main/java/org/miloss/fgsms/agents/HttpServletAgent.java
C:/projects/fgsms/fgsms-agents/fgsms-servlet-filter-agent/src/main/java/org/miloss/fgsms/agents/InputStreamRequestWrapper.java
C:/projects/fgsms/fgsms-agents/fgsms-servlet-filter-agent/src/main/java/org/miloss/fgsms/agents/OutputStreamResponseWrapper.java
C:/projects/fgsms/fgsms-agents/fgsms-servlet-filter-agent/src/main/java/org/miloss/fgsms/agents/ServletInputStreamWrapper.java
C:/projects/fgsms/fgsms-agents/fgsms-servlet-filter-agent/src/main/java/org/miloss/fgsms/agents/ServletOutputStreamWrapper.java
C:/projects/fgsms/fgsms-agents/fgsms-servlet-filter-agent/src/main/java/org/miloss/fgsms/agents/SnifferResponseWrapper.java
*****************************************************
*****************************************************
Files with Apache License headers will be marked AL
Binary files (which do not require any license headers) will be marked B
Compressed archives will be marked A
Notices, licenses etc. will be marked N
!????? C:/projects/fgsms/fgsms-agents/fgsms-servlet-filter-agent/pom.xml
!????? C:/projects/fgsms/fgsms-agents/fgsms-servlet-filter-agent/src/main/java/org/miloss/fgsms/agents/HttpServletAgent.java
!????? C:/projects/fgsms/fgsms-agents/fgsms-servlet-filter-agent/src/main/java/org/miloss/fgsms/agents/InputStreamRequestWrapper.java
!????? C:/projects/fgsms/fgsms-agents/fgsms-servlet-filter-agent/src/main/java/org/miloss/fgsms/agents/OutputStreamResponseWrapper.java
!????? C:/projects/fgsms/fgsms-agents/fgsms-servlet-filter-agent/src/main/java/org/miloss/fgsms/agents/ServletInputStreamWrapper.java
!????? C:/projects/fgsms/fgsms-agents/fgsms-servlet-filter-agent/src/main/java/org/miloss/fgsms/agents/ServletOutputStreamWrapper.java
!????? C:/projects/fgsms/fgsms-agents/fgsms-servlet-filter-agent/src/main/java/org/miloss/fgsms/agents/SnifferResponseWrapper.java
*****************************************************
Printing headers for text files without a valid license header...
=====================================================
== File: C:/projects/fgsms/fgsms-agents/fgsms-servlet-filter-agent/pom.xml
=====================================================
<?xml version="1.0" encoding="UTF-8"?>
<!--
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at http://mozilla.org/MPL/2.0/.
If it is not possible or desirable to put the notice in a particular
file, then You may include the notice in a location (such as a LICENSE
file in a relevant directory) where a recipient would be likely to look
for such a notice.
U.S. Government, Department of the Army
Army Materiel Command
Research Development Engineering Command
Communications Electronics Research Development and Engineering Center
-->
<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/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.mil-oss</groupId>
<artifactId>fgsms-agents</artifactId>
<version>7.0.0</version>
</parent>
<artifactId>fgsms-servlet-filter-agent</artifactId>
<packaging>bundle</packaging>
<name>fgsms Servlet Filter Agent</name>
<description>A fgsms agent for monitoring Java Servlets v2.5 and up</description>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.mil-oss</groupId>
<artifactId>fgsms-common</artifactId>
<version>${project.parent.version}</version>
</dependency>
<dependency>
<groupId>org.mil-oss</groupId>
<artifactId>fgsms-common-interfaces</artifactId>
<version>${project.parent.version}</version>
</dependency>
<dependency>
<groupId>org.mil-oss</groupId>
<artifactId>fgsms-agentcore</artifactId>
=====================================================
== File: C:/projects/fgsms/fgsms-agents/fgsms-servlet-filter-agent/src/main/java/org/miloss/fgsms/agents/HttpServletAgent.java
=====================================================
/**
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* If it is not possible or desirable to put the notice in a particular
* file, then You may include the notice in a location (such as a LICENSE
* file in a relevant directory) where a recipient would be likely to look
* for such a notice.
*
*/
/* ---------------------------------------------------------------------------
* U.S. Government, Department of the Army
* Army Materiel Command
* Research Development Engineering Command
* Communications Electronics Research Development and Engineering Center
* ---------------------------------------------------------------------------
*/
package org.miloss.fgsms.agents;
import java.io.IOException;
import java.util.Enumeration;
import java.util.HashMap;
import java.util.UUID;
import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.FilterConfig;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.log4j.Level;
import org.miloss.fgsms.common.Logger;;
import org.miloss.fgsms.agentcore.MessageProcessor;
import org.miloss.fgsms.common.Utility;
import org.miloss.fgsms.services.interfaces.policyconfiguration.TransactionalWebServicePolicy;
/**
*Provides basic monitoring capabilities of Servlets v3
* @author AO
*/
public class HttpServletAgent implements Filter {
private Logger log;
public HttpServletAgent() {
=====================================================
== File: C:/projects/fgsms/fgsms-agents/fgsms-servlet-filter-agent/src/main/java/org/miloss/fgsms/agents/InputStreamRequestWrapper.java
=====================================================
/**
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* If it is not possible or desirable to put the notice in a particular
* file, then You may include the notice in a location (such as a LICENSE
* file in a relevant directory) where a recipient would be likely to look
* for such a notice.
*
*/
/* ---------------------------------------------------------------------------
* U.S. Government, Department of the Army
* Army Materiel Command
* Research Development Engineering Command
* Communications Electronics Research Development and Engineering Center
* ---------------------------------------------------------------------------
*/
package org.miloss.fgsms.agents;
import java.io.BufferedInputStream;
import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.io.StringWriter;
import javax.servlet.ServletInputStream;
import javax.servlet.ServletOutputStream;
import javax.servlet.ServletRequest;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletRequestWrapper;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpServletResponseWrapper;
import org.miloss.fgsms.common.Constants;
/**
*
* @author AO
*/
public class InputStreamRequestWrapper extends HttpServletRequestWrapper {
int BUFFER_SIZE = 1024;
private StringWriter sw = new StringWriter(BUFFER_SIZE);
public InputStreamRequestWrapper(HttpServletRequest request) {
super(request);
=====================================================
== File: C:/projects/fgsms/fgsms-agents/fgsms-servlet-filter-agent/src/main/java/org/miloss/fgsms/agents/OutputStreamResponseWrapper.java
=====================================================
/**
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* If it is not possible or desirable to put the notice in a particular
* file, then You may include the notice in a location (such as a LICENSE
* file in a relevant directory) where a recipient would be likely to look
* for such a notice.
*
*/
/* ---------------------------------------------------------------------------
* U.S. Government, Department of the Army
* Army Materiel Command
* Research Development Engineering Command
* Communications Electronics Research Development and Engineering Center
* ---------------------------------------------------------------------------
*/
package org.miloss.fgsms.agents;
/**
*
* @author AO
*/
import java.io.IOException;
import java.io.PrintWriter;
import java.io.StringWriter;
import javax.servlet.ServletOutputStream;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpServletResponseWrapper;
/**
* A response wrapper to be used when we want our own custom servlet output stream.
*
*/
public class OutputStreamResponseWrapper extends HttpServletResponseWrapper {
/*
protected HttpServletResponse origResponse = null;
protected OutputStream realOutputStream = null;
protected ServletOutputStream stream = null;
protected PrintWriter writer = null;
protected int ContentLength=0;
Class<? extends OutputStream> outputStreamClass;
public OutputStreamResponseWrapper(HttpServletResponse response,
Class<? extends OutputStream> outputStreamClass) {
=====================================================
== File: C:/projects/fgsms/fgsms-agents/fgsms-servlet-filter-agent/src/main/java/org/miloss/fgsms/agents/ServletInputStreamWrapper.java
=====================================================
/**
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* If it is not possible or desirable to put the notice in a particular
* file, then You may include the notice in a location (such as a LICENSE
* file in a relevant directory) where a recipient would be likely to look
* for such a notice.
*
*/
/* ---------------------------------------------------------------------------
* U.S. Government, Department of the Army
* Army Materiel Command
* Research Development Engineering Command
* Communications Electronics Research Development and Engineering Center
* ---------------------------------------------------------------------------
*/
package org.miloss.fgsms.agents;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.servlet.ServletInputStream;
import javax.servlet.ServletOutputStream;
/**
*
* @author AO
*/
/**
* A wrapper to provide a concrete implementation of the servlet output stream, so we can wrap other streams.
* Such as in a filter wrapping a servlet response.
* @author thein
*
*/
public class ServletInputStreamWrapper extends ServletInputStream {
InputStream _out;
boolean closed = false;
public ServletInputStreamWrapper(InputStream realStream) {
if (realStream.markSupported())
try {
realStream.reset();
=====================================================
== File: C:/projects/fgsms/fgsms-agents/fgsms-servlet-filter-agent/src/main/java/org/miloss/fgsms/agents/ServletOutputStreamWrapper.java
=====================================================
/**
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* If it is not possible or desirable to put the notice in a particular
* file, then You may include the notice in a location (such as a LICENSE
* file in a relevant directory) where a recipient would be likely to look
* for such a notice.
*
*/
/* ---------------------------------------------------------------------------
* U.S. Government, Department of the Army
* Army Materiel Command
* Research Development Engineering Command
* Communications Electronics Research Development and Engineering Center
* ---------------------------------------------------------------------------
*/
package org.miloss.fgsms.agents;
import java.io.IOException;
import java.io.OutputStream;
import javax.servlet.ServletOutputStream;
/**
*
* @author AO
*/
/**
* A wrapper to provide a concrete implementation of the servlet output stream, so we can wrap other streams.
* Such as in a filter wrapping a servlet response.
* @author thein
*
*/
public class ServletOutputStreamWrapper extends ServletOutputStream {
OutputStream _out;
boolean closed = false;
public ServletOutputStreamWrapper(OutputStream realStream) {
this._out = realStream;
}
@Override
public void close() throws IOException {
if (closed) {
throw new IOException("This output stream has already been closed");
=====================================================
== File: C:/projects/fgsms/fgsms-agents/fgsms-servlet-filter-agent/src/main/java/org/miloss/fgsms/agents/SnifferResponseWrapper.java
=====================================================
/**
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* If it is not possible or desirable to put the notice in a particular
* file, then You may include the notice in a location (such as a LICENSE
* file in a relevant directory) where a recipient would be likely to look
* for such a notice.
*
*
*/
/* ---------------------------------------------------------------------------
* U.S. Government, Department of the Army
* Army Materiel Command
* Research Development Engineering Command
* Communications Electronics Research Development and Engineering Center
* ---------------------------------------------------------------------------
*/
package org.miloss.fgsms.agents;
import java.io.CharArrayWriter;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.Collection;
import java.util.HashMap;
import java.util.Map;
import javax.servlet.ServletOutputStream;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpServletResponseWrapper;
/**
*
* @author AO
*/
public class SnifferResponseWrapper extends HttpServletResponseWrapper {
protected Map<String,String> headers = new HashMap<String, String>();
protected HttpServletResponse wrapped = null;
protected CharArrayWriter charWriter;
protected PrintWriter writer;
protected boolean getOutputStreamCalled;
protected boolean getWriterCalled;
int status = SC_OK;
public SnifferResponseWrapper(HttpServletResponse res) {
super(res);
charWriter = new CharArrayWriter();
wrapped = res;
}