Package dev.relism.flash.transport
Class TransportFactory
java.lang.Object
dev.relism.flash.transport.TransportFactory
Composes the whole transport: binds every configured listener, wires the connection runner and
the h1 protocol, and returns the
ServerHandle implementation (ServerLifecycle)
that ServerHandle.create(dev.relism.flash.extension.FlashConfiguration, dev.relism.flash.routing.AbstractRouter, dev.relism.flash.routing.AbstractWsRouter) exposes publicly.
asked for — ServerHandle.create used to construct HttpServer directly, which
no longer exists. Package-private-in-spirit (public only because ServerHandle lives in a
different package and must call it) — user code has no reason to call this directly.
-
Method Summary
Modifier and TypeMethodDescriptionstatic ServerHandlecreate(FlashConfiguration configuration, AbstractRouter router, AbstractWsRouter wsRouter)
-
Method Details
-
create
public static ServerHandle create(FlashConfiguration configuration, AbstractRouter router, AbstractWsRouter wsRouter) throws IOException - Throws:
IOException
-