|
NIST-SIP: The Reference Implementation for JAIN-SIP 1.2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
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.
| 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 |
|---|
boolean processRequest(SIPRequest request,
MessageChannel messageChannel)
request - messageChannel -
boolean processResponse(Response response,
MessageChannel messageChannel)
response - messageChannel -
void init(SipStack stack)
stack - void destroy()
|
NIST-SIP: The Reference Implementation for JAIN-SIP 1.2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||