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, setSynchronizeOnSession
applyCacheControl, applyCacheSeconds, applyCacheSeconds, cacheForSeconds, cacheForSeconds, checkAndPrepare, checkAndPrepare, checkRequest, getCacheControl, getCacheSeconds, getSupportedMethods, isAlwaysMustRevalidate, isRequireSession, isUseCacheControlHeader, isUseCacheControlNoStore, isUseExpiresHeader, prepareResponse, preventCaching, setAlwaysMustRevalidate, setCacheControl, setCacheSeconds, setRequireSession, setSupportedMethods, setUseCacheControlHeader, setUseCacheControlNoStore, setUseExpiresHeader
getServletContext, getTempDir, getWebApplicationContext, initApplicationContext, initServletContext, isContextRequired, setServletContext
public void afterPropertiesSet() throws IOException
afterPropertiesSet
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
IOException
protected 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.AbstractController
Exception
public List<MenuEntry> getMenu(MenuContext context)
getMenu
in interface MenuProvider
public 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 OnmsHeaderProvider
Exception
Copyright © 2021. All rights reserved.