NIST SIP Parser and Stack (v1.2) API

gov.nist.javax.sip
Class NistSipMessageHandlerImpl

java.lang.Object
  |
  +--gov.nist.javax.sip.NistSipMessageHandlerImpl
All Implemented Interfaces:
SIPServerRequestInterface, SIPServerResponseInterface

public class NistSipMessageHandlerImpl
extends Object
implements SIPServerRequestInterface, SIPServerResponseInterface

An adapter class from the JAIN implementation objects to the NIST-SIP stack. This is the class that is instantiated by the NistSipMessageFactory to create a new SIPServerRequest or SIPServerResponse. Note that this is not part of the JAIN-SIP spec (it does not implement a JAIN-SIP interface). This is part of the glue that ties together the NIST-SIP stack and event model with the JAIN-SIP stack. Implementors of JAIN services need not concern themselves with this class.

Version:
JAIN-SIP-1.1
Author:
M. Ranganathan
Bug fix Contributions by Lamine Brahimi and Andreas Bystrom.
This code is in the public domain.

Constructor Summary
NistSipMessageHandlerImpl()
           
 
Method Summary
 String getProcessingInfo()
          Just a placeholder.
 MessageChannel getRequestChannel()
          Get the sender channel.
 MessageChannel getResponseChannel()
          Get the channel if we want to initiate a new transaction to the sender of a response.
 void processRequest(gov.nist.javax.sip.message.SIPRequest sipRequest, MessageChannel incomingMessageChannel)
          Process a request.
 void processResponse(gov.nist.javax.sip.message.SIPResponse sipResponse, MessageChannel incomingMessageChannel)
          Process the response.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NistSipMessageHandlerImpl

public NistSipMessageHandlerImpl()
Method Detail

processRequest

public void processRequest(gov.nist.javax.sip.message.SIPRequest sipRequest,
                           MessageChannel incomingMessageChannel)
                    throws SIPServerException
Process a request.

Specified by:
processRequest in interface SIPServerRequestInterface
Parameters:
sipRequest - is the incoming SIP Request.
incomingMessageChannel - is the incoming message channel (parameter added in response to a request by Salvador Rey Calatayud.)
Throws:
SIPServerException - is thrown when there is an error processing the request.

processResponse

public void processResponse(gov.nist.javax.sip.message.SIPResponse sipResponse,
                            MessageChannel incomingMessageChannel)
                     throws SIPServerException
Process the response.

Specified by:
processResponse in interface SIPServerResponseInterface
Parameters:
incomingMessageChannel - -- message channel on which the response is received.
sipResponse - is the responseto process.
Throws:
SIPServerException - is thrown when there is an error processing the response

getRequestChannel

public MessageChannel getRequestChannel()
Get the sender channel.

Specified by:
getRequestChannel in interface SIPServerResponseInterface
Returns:
the MessageChannel through which you can send a new request to the responder.

getResponseChannel

public MessageChannel getResponseChannel()
Get the channel if we want to initiate a new transaction to the sender of a response.

Specified by:
getResponseChannel in interface SIPServerRequestInterface
Returns:
a message channel that points to the place from where we got the response.

getProcessingInfo

public String getProcessingInfo()
Just a placeholder. This is called from the stack for message logging. Auxiliary processing information can be passed back to be written into the log file.

Specified by:
getProcessingInfo in interface SIPServerRequestInterface
Returns:
auxiliary information that we may have generated during the message processing which is retrieved by the message logger.

NIST SIP Parser and Stack (v1.2) API

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