Interface BOSHClientRequestListener


public interface BOSHClientRequestListener
Interface used by parties interested in monitoring outbound requests made by the client to the connection manager (CM). No opportunity is provided to manipulate the outbound request.

The messages being sent are typically modified copies of the message body provided to the BOSHClient instance, built from the originally provided message body plus additional BOSH protocol state and information. Messages may also be sent automatically when the protocol requires it, such as maintaining a minimum number of open connections to the connection manager.

Listeners are executed by the sending thread immediately prior to message transmission and should not block for any significant amount of time.

  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Called when the listener is being notified that a client request is about to be sent to the connection manager.
  • Method Details

    • requestSent

      void requestSent(BOSHMessageEvent event)
      Called when the listener is being notified that a client request is about to be sent to the connection manager.
      Parameters:
      event - event instance containing the message being sent