@Singleton public class AmbariHandlerList extends org.eclipse.jetty.server.handler.HandlerCollection implements ViewInstanceHandlerList
org.eclipse.jetty.server.handler.AbstractHandler.ErrorDispatchHandler
org.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, toString
doShutdown, expandHandler, findContainerOf, getChildHandlerByClass, getChildHandlers, getChildHandlersByClass, setServer
doError, doStart, doStop, dumpThis, getServer
addBean, 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, updateBeans
addLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop
public 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.Handler
handle
in class org.eclipse.jetty.server.handler.HandlerCollection
IOException
javax.servlet.ServletException
public void addHandler(org.eclipse.jetty.server.Handler handler)
addHandler
in class org.eclipse.jetty.server.handler.HandlerCollection
public void addViewInstance(ViewInstanceEntity viewInstanceDefinition) throws org.apache.ambari.view.SystemException
ViewInstanceHandlerList
addViewInstance
in interface ViewInstanceHandlerList
viewInstanceDefinition
- 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)
ViewInstanceHandlerList
shareSessionCacheToViews
in interface ViewInstanceHandlerList
serverSessionCache
- the sessionCache instancepublic void removeViewInstance(ViewInstanceEntity viewInstanceDefinition)
ViewInstanceHandlerList
removeViewInstance
in interface ViewInstanceHandlerList
viewInstanceDefinition
- the view instanceCopyright © 2022 Apache Software Foundation. All rights reserved.