Class BOSHClient.ExchangeInterceptor

java.lang.Object
org.igniterealtime.jbosh.BOSHClient.ExchangeInterceptor
Enclosing class:
BOSHClient

abstract static class BOSHClient.ExchangeInterceptor extends Object
Class used in testing to dynamically manipulate received exchanges at test runtime.
  • Constructor Details

    • ExchangeInterceptor

      ExchangeInterceptor()
      Limit construction.
  • Method Details

    • interceptExchange

      abstract HTTPExchange interceptExchange(HTTPExchange exch)
      Hook to manipulate an HTTPExchange as is is about to be processed.
      Parameters:
      exch - original exchange that would be processed
      Returns:
      replacement exchange instance, or null to skip processing of this exchange