Oracle Fusion Middleware
Oracle WebLogic SIP Server API Reference
11g Release 1 (10.3.4)

Part Number E17873-02

com.bea.wcp.sip.engine.server
Interface MessageListener

All Superinterfaces:
java.util.EventListener
All Known Subinterfaces:
TraceMessageListener

public interface MessageListener
extends java.util.EventListener

A low-level listener that is inserted into the Transaction and Transport layers of the SIP stack. Implementations of this interface are notified when a new message is received by the container, or a message is about to be sent. Note that message retransmissions are not supressed, so an implementation of this interface must be prepared to handle potentially large volumes of messages.


Method Summary
 void onRequest(SipServletRequest req, boolean incoming)
          This method is called for incoming and outgoing SIP requests.
 void onResponse(SipServletResponse resp, boolean incoming)
          This method is called for incoming and outgoing SIP responses.
 

Method Detail

onRequest

void onRequest(SipServletRequest req,
               boolean incoming)
This method is called for incoming and outgoing SIP requests. For outgoing SIP requests, the method is called shortly before the request is enqueued for transmission. For incoming requests, the method is called once the session associated with this request has been identified or created (for initial requests).

Parameters:
req - SIP request
incoming - identifies if the request is arriving at the container (true) or is generated by the container (false).

onResponse

void onResponse(SipServletResponse resp,
                boolean incoming)
This method is called for incoming and outgoing SIP responses. For outgoing SIP responses, the method is called shortly before the request is enqueued for transmission. For incoming responses, the method is called once the session associated with this response has been identified.

Parameters:
resp - SIP response
incoming - identifies if the request is arriving at the container (true) or is generated by the container (false).

Copyright 1996, 2010, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners.

Oracle Fusion Middleware
Oracle WebLogic SIP Server API Reference
11g Release 1 (10.3.4)

Part Number E17873-02