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

gov.nist.javax.sip.stack
Interface SIPMessageValve

All Known Implementing Classes:
CongestionControlMessageValve

public interface SIPMessageValve

This interface has callbacks that are notified for every SIP message arriving at the container. The callbacks occurs before any significant long-lived resources are allocated for this call, thus it gives a chance to the application to pre-process the message and filter based on some application-specific algorithm. Creating and sending a stateless response is also allowed. It is useful for congestion control or header re-writing.

Author:
Vladimir Ralev

Method Summary
 void destroy()
          This method is called when the valve is about to be destroyed.
 void init(SipStack stack)
          This method is called when the valve is initialized.
 boolean processRequest(SIPRequest request, MessageChannel messageChannel)
          The callback method that is called for every request before any transaction/dialog mapping or allocation occur.
 boolean processResponse(Response response, MessageChannel messageChannel)
          The callback method that is called for every response before any transaction/dialog mapping or allocation occur.
 

Method Detail

processRequest

boolean processRequest(SIPRequest request,
                       MessageChannel messageChannel)
The callback method that is called for every request before any transaction/dialog mapping or allocation occur.

Parameters:
request -
messageChannel -
Returns:

processResponse

boolean processResponse(Response response,
                        MessageChannel messageChannel)
The callback method that is called for every response before any transaction/dialog mapping or allocation occur.

Parameters:
response -
messageChannel -
Returns:

init

void init(SipStack stack)
This method is called when the valve is initialized. You can perform any initialization here.

Parameters:
stack -

destroy

void destroy()
This method is called when the valve is about to be destroyed. You can perform any cleanup here.


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.