Fork me on GitHub

Rat (Release Audit Tool) results

The following document contains the results of Rat (Release Audit Tool).

*****************************************************
Summary
-------
Generated at: 2017-03-11T23:45:40-05:00

Notes: 0
Binaries: 0
Archives: 0
Standards: 4

Apache Licensed: 0
Generated Documents: 0

JavaDocs are generated, thus a license header is optional.
Generated files do not require license headers.

4 Unknown Licenses

*****************************************************

Files with unapproved licenses:

  C:/projects/fgsms/fgsms-agents/fgsms-jboss-esb-agent/pom.xml
  C:/projects/fgsms/fgsms-agents/fgsms-jboss-esb-agent/src/main/java/org/miloss/fgsms/agents/JbossESBAgent.java
  C:/projects/fgsms/fgsms-agents/fgsms-jboss-esb-agent/src/main/java/org/miloss/fgsms/agents/JbossESBProxyAction.java
  C:/projects/fgsms/fgsms-agents/fgsms-jboss-esb-agent/src/main/java/org/miloss/fgsms/agents/JbossESBProxyAfterAction.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-jboss-esb-agent/pom.xml
 !????? C:/projects/fgsms/fgsms-agents/fgsms-jboss-esb-agent/src/main/java/org/miloss/fgsms/agents/JbossESBAgent.java
 !????? C:/projects/fgsms/fgsms-agents/fgsms-jboss-esb-agent/src/main/java/org/miloss/fgsms/agents/JbossESBProxyAction.java
 !????? C:/projects/fgsms/fgsms-agents/fgsms-jboss-esb-agent/src/main/java/org/miloss/fgsms/agents/JbossESBProxyAfterAction.java
 
*****************************************************

 Printing headers for text files without a valid license header...
 
=====================================================
== File: C:/projects/fgsms/fgsms-agents/fgsms-jboss-esb-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-jboss-esb-agent</artifactId>
	<packaging>bundle</packaging>
	<name>fgsms Jboss ESB Agent</name>
	<description>Jboss ESB agent</description>
	<licenses>
		<license>
			<name>LGPL</name>
			<distribution>distro</distribution>
			<url>http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html</url>
			<comments>Licensing is due to dependency on JBoss library. This library is not statically or dynamically linked with the rest of FGSMS</comments>
		</license>
	</licenses>
	<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>

=====================================================
== File: C:/projects/fgsms/fgsms-agents/fgsms-jboss-esb-agent/src/main/java/org/miloss/fgsms/agents/JbossESBAgent.java
=====================================================
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.miloss.fgsms.agents;

import java.util.HashMap;
import java.util.Iterator;
import java.util.UUID;
import org.miloss.fgsms.agentcore.MessageProcessor;
import org.miloss.fgsms.common.Utility;
import org.apache.log4j.Level;
import org.jboss.soa.esb.couriers.CourierException;
import org.miloss.fgsms.common.Logger;;
import org.jboss.soa.esb.http.HttpRequest;
import org.jboss.soa.esb.message.body.content.TextBody;
import org.miloss.fgsms.agentcore.IMessageProcessor;

/**
 * This class will log a ton of internal Jboss ESB messages, most of it probably
 * isn't useful data, therefore it is deprecated
 * @author AO
 * use action pipeline processor instead
 */
@Deprecated 
public class JbossESBAgent extends org.jboss.soa.esb.filter.InputOutputFilter {

    private Logger log;

    public JbossESBAgent() {
        log = Logger.getLogger(org.miloss.fgsms.common.Constants.LoggerName);
    }

    /**
     * Called as the message flows towards the transport.
     * this is really on output!!!
     * http://docs.jboss.org/jbossesb/docs/4.2MR3/javadoc/esb/index.html?org/jboss/soa/esb/filter/InputOutputFilter.html
     * @param msg
     * @param params
     * @return
     * @throws CourierException
     */
    public org.jboss.soa.esb.message.Message onInput(org.jboss.soa.esb.message.Message msg,
            java.util.Map<java.lang.String, java.lang.Object> params)
            throws org.jboss.soa.esb.couriers.CourierException {
        log.log(Level.INFO, "Current VM Memory : total = " + Runtime.getRuntime().totalMemory() + " free = " + Runtime.getRuntime().freeMemory());


        for (int i = 0; i < msg.getProperties().getNames().length; i++) {
            log.log(Level.DEBUG, "key = " + msg.getProperties().getNames()[i] + " value = " + msg.getProperties().getProperty(msg.getProperties().getNames()[i]));

=====================================================
== File: C:/projects/fgsms/fgsms-agents/fgsms-jboss-esb-agent/src/main/java/org/miloss/fgsms/agents/JbossESBProxyAction.java
=====================================================
package org.miloss.fgsms.agents;

import java.util.HashMap;
import java.util.UUID;
import org.miloss.fgsms.agentcore.MessageProcessor;
import org.miloss.fgsms.common.Utility;
import org.apache.log4j.Level;
import org.miloss.fgsms.common.Logger;;
import org.jboss.soa.esb.ConfigurationException;
import org.jboss.soa.esb.actions.ActionLifecycleException;
import org.jboss.soa.esb.actions.ActionProcessingException;
import org.jboss.soa.esb.helpers.ConfigTree;
import org.jboss.soa.esb.http.HttpHeader;
import org.jboss.soa.esb.http.HttpRequest;
import org.jboss.soa.esb.http.HttpResponse;
import org.jboss.soa.esb.message.Message;
import org.jboss.soa.esb.message.body.content.TextBody;

/**
 * For Jboss ESB deployments. trigger this BEFORE doing any kind of work
 *
 * @author AO
 */
public class JbossESBProxyAction implements org.jboss.soa.esb.actions.ActionPipelineProcessor {

    private Logger log;

    public JbossESBProxyAction(ConfigTree config) throws ConfigurationException {
        log = Logger.getLogger(org.miloss.fgsms.common.Constants.LoggerName);

        httpport = config.getAttribute("http_port", "80");
        httpsport = config.getAttribute("https_port", "443");

    }
    private String httpport = "80";
    private String httpsport = "443";

    public Message process(Message msg) throws ActionProcessingException {
        
        //JbossESB had a MessageID property: used to uniquely identify this message. OPTIONAL
        //Since they consider it optional, I'm relying on my own
        String id = UUID.randomUUID().toString();


        msg.getProperties().setProperty("fgsms.TransactionID", id);

        /*
         * for (int i = 0; i < msg.getProperties().getNames().length; i++) {
         * log.log(Level.DEBUG, "key = " + msg.getProperties().getNames()[i] + "
         * value = " +

=====================================================
== File: C:/projects/fgsms/fgsms-agents/fgsms-jboss-esb-agent/src/main/java/org/miloss/fgsms/agents/JbossESBProxyAfterAction.java
=====================================================
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.miloss.fgsms.agents;

import java.util.HashMap;
import java.util.List;
import org.miloss.fgsms.agentcore.MessageProcessor;
import org.miloss.fgsms.common.Utility;
import org.apache.log4j.Level;
import org.miloss.fgsms.common.Logger;;
import org.jboss.soa.esb.ConfigurationException;
import org.jboss.soa.esb.actions.ActionLifecycleException;
import org.jboss.soa.esb.actions.ActionProcessingException;
import org.jboss.soa.esb.helpers.ConfigTree;
import org.jboss.soa.esb.http.HttpHeader;
import org.jboss.soa.esb.http.HttpRequest;
import org.jboss.soa.esb.http.HttpResponse;
import org.jboss.soa.esb.message.Message;
import org.jboss.soa.esb.message.body.content.TextBody;
import org.miloss.fgsms.agentcore.IMessageProcessor;

/**
 * For Jboss ESB deployments. Use this for AFTER all processing has been
 * completed in the deployment but before returning
 *
 * @author AO
 */
public class JbossESBProxyAfterAction implements org.jboss.soa.esb.actions.ActionPipelineProcessor {

    private Logger log;

    public JbossESBProxyAfterAction(ConfigTree config) throws ConfigurationException {
        log = Logger.getLogger(org.miloss.fgsms.common.Constants.LoggerName);
        httpport = config.getAttribute("http_port", "80");
        httpsport = config.getAttribute("https_port", "443");

    }
    private String httpport = "80";
    private String httpsport = "443";

    public Message process(Message msg) throws ActionProcessingException {
        
        log.log(Level.DEBUG, "Current VM Memory : total = " + Runtime.getRuntime().totalMemory() + " free = " + Runtime.getRuntime().freeMemory());

        for (int i = 0; i < msg.getProperties().getNames().length; i++) {
            log.log(Level.DEBUG, "key = " + msg.getProperties().getNames()[i] + " value = " + msg.getProperties().getProperty(msg.getProperties().getNames()[i]));
        }