Package org.igniterealtime.jbosh
Class BOSHClient.ExchangeInterceptor
java.lang.Object
org.igniterealtime.jbosh.BOSHClient.ExchangeInterceptor
- Enclosing class:
BOSHClient
Class used in testing to dynamically manipulate received exchanges
at test runtime.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) abstract HTTPExchange
Hook to manipulate an HTTPExchange as is is about to be processed.
-
Constructor Details
-
ExchangeInterceptor
ExchangeInterceptor()Limit construction.
-
-
Method Details
-
interceptExchange
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
-