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

gov.nist.javax.sip.stack.DefaultMessageLogFactory Maven / Gradle / Ivy

package gov.nist.javax.sip.stack;

import gov.nist.javax.sip.LogRecord;
import gov.nist.javax.sip.LogRecordFactory;

/**
 * The Default Message log factory. This can be replaced as a stack
 * configuration parameter.
 * 
 * @author M. Ranganathan
 * 
 */
public class DefaultMessageLogFactory implements LogRecordFactory {

	public LogRecord createLogRecord(String message, String source,
			String destination, String timeStamp, boolean isSender,
			String firstLine, String tid, String callId, long tsHeaderValue) {
		return new MessageLog(message, source, destination, timeStamp,
				isSender, firstLine, tid, callId, tsHeaderValue);
	}

	public LogRecord createLogRecord(String message, String source,
			String destination, long timeStamp, boolean isSender,
			String firstLine, String tid, String callId, long timestampVal) {
		return new MessageLog(message, source, destination, timeStamp,
				isSender, firstLine, tid, callId, timestampVal);
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy