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

nyla.solutions.commas.CommasBridge Maven / Gradle / Ivy

The newest version!
package nyla.solutions.commas;

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

import nyla.solutions.core.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