Class BOSHClient.ExchangeInterceptor

  • Enclosing class:
    BOSHClient

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

      Constructors 
      Constructor Description
      ExchangeInterceptor()
      Limit construction.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      (package private) abstract HTTPExchange interceptExchange​(HTTPExchange exch)
      Hook to manipulate an HTTPExchange as is is about to be processed.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ExchangeInterceptor

        ExchangeInterceptor()
        Limit construction.
    • Method Detail

      • 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