public class NavBarController extends org.springframework.web.servlet.mvc.AbstractController implements org.springframework.beans.factory.InitializingBean, OnmsHeaderProvider, MenuProvider
| Modifier and Type | Class and Description |
|---|---|
static class |
NavBarController.ShouldDisplayEntryMethod
Used to determine whether or not a particular NavBarEntry should be
displayed.
|
| Constructor and Description |
|---|
NavBarController() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet()
afterPropertiesSet
|
String |
getHeaderHtml(javax.servlet.http.HttpServletRequest request) |
List<MenuEntry> |
getMenu(MenuContext context) |
List<NavBarEntry> |
getNavBarItems()
getNavBarItems
|
protected org.springframework.web.servlet.ModelAndView |
handleRequestInternal(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
void |
setNavBarItems(List<NavBarEntry> navBarItems)
setNavBarItems
|
handleRequest, isSynchronizeOnSession, setSynchronizeOnSessionapplyCacheControl, applyCacheSeconds, applyCacheSeconds, cacheForSeconds, cacheForSeconds, checkAndPrepare, checkAndPrepare, checkRequest, getCacheControl, getCacheSeconds, getSupportedMethods, isAlwaysMustRevalidate, isRequireSession, isUseCacheControlHeader, isUseCacheControlNoStore, isUseExpiresHeader, prepareResponse, preventCaching, setAlwaysMustRevalidate, setCacheControl, setCacheSeconds, setRequireSession, setSupportedMethods, setUseCacheControlHeader, setUseCacheControlNoStore, setUseExpiresHeadergetServletContext, getTempDir, getWebApplicationContext, initApplicationContext, initServletContext, isContextRequired, setServletContextpublic void afterPropertiesSet()
throws IOException
afterPropertiesSet
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanIOExceptionprotected org.springframework.web.servlet.ModelAndView handleRequestInternal(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws Exception
handleRequestInternal in class org.springframework.web.servlet.mvc.AbstractControllerExceptionpublic List<MenuEntry> getMenu(MenuContext context)
getMenu in interface MenuProviderpublic List<NavBarEntry> getNavBarItems()
getNavBarItems
List object.public void setNavBarItems(List<NavBarEntry> navBarItems)
setNavBarItems
navBarItems - a List object.public String getHeaderHtml(javax.servlet.http.HttpServletRequest request) throws Exception
getHeaderHtml in interface OnmsHeaderProviderExceptionCopyright © 2022. All rights reserved.