All Downloads are FREE. Search and download functionalities are using the official Maven repository.

nyla.solutions.global.patterns.command.commas.CommasBridge Maven / Gradle / Ivy

Go to download

Nyla Solutions Global Java API provides support for basic application utilities (application configuration, data encryption, debugger and text processing).

The newest version!
package nyla.solutions.global.patterns.command.commas;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

import nyla.solutions.global.data.Envelope;

public abstract class CommasBridge
{

	/**
	 * Assert that the PROGRAM_NAME_HEADER header is added to the header
	 * @param env the envelope
	 */
	protected static final void constructAuthIdentity(Envelope env, String actor)
	{
		//construct header
		Map headerMap = env.getHeader();
		
		if(headerMap == null)
		{
			headerMap = new HashMap();
			env.setHeader(headerMap);
		}
		
		//TODO: headerMap.put(Constants.SECURITY_APPLICATION_HEADER, actor);
		
		//TODO: headerMap.put(Constants.VERSION_HEADER, DafVersion.VERSION);
		
	}// -----------------------------------------------
	protected static CommasServiceFactory getCommasFactory()
	{
		return commasFactory;
	}// --------------------------------------------------------
 	private static CommasServiceFactory commasFactory = CommasServiceFactory.getCommasServiceFactory();

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy