关注 spark技术分享,
撸spark源码 玩spark最佳实践

UIRootFromServletContext

UIRootFromServletContext

UIRootFromServletContext manages the current UIRoot object in a Jetty ContextHandler.

UIRootFromServletContext uses its canonical name for the context attribute that is used to set or get the current UIRoot object (in Jetty’s ContextHandler).

Note
ContextHandler is the environment for multiple Jetty Handlers, e.g. URI context path, class loader, static resource base.

In essence, UIRootFromServletContext is simply a “bridge” between two worlds, Spark’s UIRoot and Jetty’s ContextHandler.

setUiRoot Method

setUiRoot…​FIXME

Note
setUiRoot is used exclusively when ApiRootResource is requested to register /api/* context handler.

getUiRoot Method

getUiRoot…​FIXME

Note
getUiRoot is used exclusively when ApiRequestContext is requested for the current UIRoot.
赞(0) 打赏
未经允许不得转载:spark技术分享 » UIRootFromServletContext
分享到: 更多 (0)

关注公众号:spark技术分享

联系我们联系我们

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏