Top Description Methods
io.undertow.server

public Interface ConduitWrapper<T extends Conduit>

Known Direct Implementers
io.undertow.server.JvmRouteHandler.JvmRouteWrapper, io.undertow.server.handlers.BlockingReadTimeoutHandler.TimeoutStreamSourceConduitWrapper, io.undertow.server.handlers.BlockingWriteTimeoutHandler.TimeoutStreamSinkConduitWrapper, io.undertow.server.handlers.encoding.AllowedContentEncodings, io.undertow.security.impl.SingleSignOnAuthenticationMechanism.ResponseListener
Imports
io.undertow.util.ConduitFactory, org.xnio.conduits.Conduit

Interface that provides a means of wrapping a 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.
Author
Stuart Douglas

Method Summary

Modifier and TypeMethod and Description
public T

Returns:

the replacement conduit
wrap
(final ConduitFactory<T>
the original conduit
factory
,
final HttpServerExchange
the in-flight HTTP exchange
exchange
)

Wrap the conduit.

Method Detail

wrapback to summary
public T wrap(final ConduitFactory<T> factory, final HttpServerExchange exchange)

Wrap the conduit. The wrapper should not return null. If no wrapping is desired, the original conduit should be returned.

Parameters
factory:ConduitFactory<T>

the original conduit

exchange:HttpServerExchange

the in-flight HTTP exchange

Returns:T

the replacement conduit