FileDocCategorySizeDatePackage
SIPStackMessageFactory.javaAPI DocphoneME MR2 API (J2ME)2584Wed May 02 18:00:42 BST 2007gov.nist.siplite.stack

SIPStackMessageFactory

public interface SIPStackMessageFactory
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.

Fields Summary
Constructors Summary
Methods Summary
public SIPServerRequestInterfacenewSIPServerRequest(Request sipRequest, MessageChannel msgChan)
Makes a new SIPServerResponse given a Request and a message channel. This is invoked by the stack on an new incoming request.

param
sipRequest is the incoming SIP request.
param
msgChan is the message channel on which the incoming sipRequest was received.
return
a new SIP server request object

public SIPServerResponseInterfacenewSIPServerResponse(Response sipResponse, MessageChannel msgChan)
Generates a new server response for the stack. This is invoked by the stack on a new incoming server response.

param
sipResponse is the incoming response.
param
msgChan is the message channel on which the incoming response is received.
return
a new SIP server request object