public interface ConduitWrapper<T extends Conduit>
Conduit
. Every conduit wrapper has a chance
to replace the conduit with a conduit which either wraps or replaces the passed in conduit. However it is the responsibility
of either the conduit wrapper instance or the conduit it creates to ensure that the original conduit is eventually
cleaned up and shut down properly when the request is terminated.Modifier and Type | Method and Description |
---|---|
T |
wrap(ConduitFactory<T> factory,
HttpServerExchange exchange)
Wrap the conduit.
|
T wrap(ConduitFactory<T> factory, HttpServerExchange exchange)
null
. If no wrapping is desired, the original
conduit should be returned.factory
- the original conduitexchange
- the in-flight HTTP exchangeCopyright © 2021 JBoss by Red Hat. All rights reserved.