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

gov.nist.javax.sip.stack
Interface StackMessageFactory


public interface StackMessageFactory

An interface for generating new requests and responses. This is implemented by the application and called by the stack for processing requests and responses. When a Request comes in off the wire, the stack calls newSIPServerRequest which is then responsible for processing the request. When a response comes off the wire, the stack calls newSIPServerResponse to process the response.

Version:
1.2 $Revision: 1.5 $ $Date: 2009/07/17 18:58:15 $
Author:
M. Ranganathan

Method Summary
 ServerRequestInterface newSIPServerRequest(SIPRequest sipRequest, MessageChannel msgChan)
          Make a new SIPServerResponse given a SIPRequest and a message channel.
 ServerResponseInterface newSIPServerResponse(SIPResponse sipResponse, MessageChannel msgChan)
          Generate a new server response for the stack.
 

Method Detail

newSIPServerRequest

ServerRequestInterface newSIPServerRequest(SIPRequest sipRequest,
                                           MessageChannel msgChan)
Make a new SIPServerResponse given a SIPRequest and a message channel.

Parameters:
sipRequest - is the incoming request.
msgChan - is the message channel on which this request was received.

newSIPServerResponse

ServerResponseInterface newSIPServerResponse(SIPResponse sipResponse,
                                             MessageChannel msgChan)
Generate a new server response for the stack.

Parameters:
sipResponse - is the incoming response.
msgChan - is the message channel on which the response was received.

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.