@Singleton public class AmbariHandlerList extends org.eclipse.jetty.server.handler.HandlerCollection implements ViewInstanceHandlerList
org.eclipse.jetty.server.handler.AbstractHandler.ErrorDispatchHandlerorg.eclipse.jetty.util.component.AbstractLifeCycle.AbstractLifeCycleListener| Constructor and Description |
|---|
AmbariHandlerList()
Construct an AmbariHandlerList.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addHandler(org.eclipse.jetty.server.Handler handler) |
void |
addViewInstance(ViewInstanceEntity viewInstanceDefinition)
Add a handler for the given view instance.
|
void |
handle(String target,
org.eclipse.jetty.server.Request baseRequest,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
void |
removeViewInstance(ViewInstanceEntity viewInstanceDefinition)
Remove the handler for the given view instance.
|
void |
shareSessionCacheToViews(org.eclipse.jetty.server.session.SessionCache serverSessionCache)
Shares specified sessionCache between all views' handlers
|
destroy, expandChildren, getHandlers, prependHandler, removeHandler, setHandlers, toStringdoShutdown, expandHandler, findContainerOf, getChildHandlerByClass, getChildHandlers, getChildHandlersByClass, setServerdoError, doStart, doStop, dumpThis, getServeraddBean, addBean, addBean, addEventListener, addManaged, contains, dump, dump, dump, dump, dump, dumpBeans, dumpObject, dumpStdErr, getBean, getBeans, getBeans, getContainedBeans, getContainedBeans, isManaged, manage, removeBean, removeBeans, removeEventListener, setBeans, setStopTimeout, start, stop, unmanage, updateBean, updateBean, updateBeansaddLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stoppublic void handle(String target, org.eclipse.jetty.server.Request baseRequest, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException, javax.servlet.ServletException
handle in interface org.eclipse.jetty.server.Handlerhandle in class org.eclipse.jetty.server.handler.HandlerCollectionIOExceptionjavax.servlet.ServletExceptionpublic void addHandler(org.eclipse.jetty.server.Handler handler)
addHandler in class org.eclipse.jetty.server.handler.HandlerCollectionpublic void addViewInstance(ViewInstanceEntity viewInstanceDefinition) throws org.apache.ambari.view.SystemException
ViewInstanceHandlerListaddViewInstance in interface ViewInstanceHandlerListviewInstanceDefinition - the view instanceorg.apache.ambari.view.SystemException - if a handler the view instance can not be addedpublic void shareSessionCacheToViews(org.eclipse.jetty.server.session.SessionCache serverSessionCache)
ViewInstanceHandlerListshareSessionCacheToViews in interface ViewInstanceHandlerListserverSessionCache - the sessionCache instancepublic void removeViewInstance(ViewInstanceEntity viewInstanceDefinition)
ViewInstanceHandlerListremoveViewInstance in interface ViewInstanceHandlerListviewInstanceDefinition - the view instanceCopyright © 2022 Apache Software Foundation. All rights reserved.