NIST-SIP: The Reference Implementation for JAIN-SIP 1.2

gov.nist.javax.sip.stack
Class DefaultMessageLogFactory

java.lang.Object
  extended by gov.nist.javax.sip.stack.DefaultMessageLogFactory
All Implemented Interfaces:
LogRecordFactory

public class DefaultMessageLogFactory
extends Object
implements LogRecordFactory

The Default Message log factory. This can be replaced as a stack configuration parameter.

Author:
M. Ranganathan

Constructor Summary
DefaultMessageLogFactory()
           
 
Method Summary
 LogRecord createLogRecord(String message, String source, String destination, long timeStamp, boolean isSender, String firstLine, String tid, String callId, long timestampVal)
          Create a log record.
 LogRecord createLogRecord(String message, String source, String destination, String timeStamp, boolean isSender, String firstLine, String tid, String callId, long tsHeaderValue)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultMessageLogFactory

public DefaultMessageLogFactory()
Method Detail

createLogRecord

public LogRecord createLogRecord(String message,
                                 String source,
                                 String destination,
                                 String timeStamp,
                                 boolean isSender,
                                 String firstLine,
                                 String tid,
                                 String callId,
                                 long tsHeaderValue)

createLogRecord

public LogRecord createLogRecord(String message,
                                 String source,
                                 String destination,
                                 long timeStamp,
                                 boolean isSender,
                                 String firstLine,
                                 String tid,
                                 String callId,
                                 long timestampVal)
Description copied from interface: LogRecordFactory
Create a log record.

Specified by:
createLogRecord in interface LogRecordFactory
Parameters:
message - -- the message to be logged.
source - -- host:port of the source of the message.
destination - -- host:port of the destination of the message.
timeStamp - -- The time at which this message was seen by the stack or sent out by the stack.
isSender - -- true if we are sending the message false otherwise.
firstLine - -- the first line of the message to be logged.
tid - -- the transaction id
callId - -- the call id
timestampVal - -- the timestamp header value of the incoming message.
Returns:
-- a log record with the appropriate fields set.

NIST-SIP: The Reference Implementation for JAIN-SIP 1.2

A product of the NIST/ITL Advanced Networking Technologies Division.
See conditions of use.
Submit a bug report or feature request.