Package org.igniterealtime.jbosh
Class BOSHClient.ExchangeInterceptor
- java.lang.Object
-
- org.igniterealtime.jbosh.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.
-
-
-
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
-
-