• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 package gov.nist.javax.sip.stack;
2 
3 import gov.nist.javax.sip.LogRecord;
4 import gov.nist.javax.sip.LogRecordFactory;
5 
6 /**
7  * The Default Message log factory. This can be replaced as a stack
8  * configuration parameter.
9  *
10  * @author M. Ranganathan
11  *
12  */
13 public class DefaultMessageLogFactory implements LogRecordFactory {
14 
createLogRecord(String message, String source, String destination, String timeStamp, boolean isSender, String firstLine, String tid, String callId, long tsHeaderValue)15     public LogRecord createLogRecord(String message, String source,
16             String destination, String timeStamp, boolean isSender,
17             String firstLine, String tid, String callId, long tsHeaderValue) {
18         return new MessageLog(message, source, destination, timeStamp,
19                 isSender, firstLine, tid, callId, tsHeaderValue);
20     }
21 
createLogRecord(String message, String source, String destination, long timeStamp, boolean isSender, String firstLine, String tid, String callId, long timestampVal)22     public LogRecord createLogRecord(String message, String source,
23             String destination, long timeStamp, boolean isSender,
24             String firstLine, String tid, String callId, long timestampVal) {
25         return new MessageLog(message, source, destination, timeStamp,
26                 isSender, firstLine, tid, callId, timestampVal);
27     }
28 
29 }
30