public class OutageFilterController
extends org.springframework.web.servlet.mvc.AbstractController
implements org.springframework.beans.factory.InitializingBean
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_MULTIPLE
Constant
DEFAULT_MULTIPLE=0 |
Constructor and Description |
---|
OutageFilterController() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet()
afterPropertiesSet
|
OutageType |
getDefaultOutageType()
getDefaultOutageType
|
SortStyle |
getDefaultSortStyle()
getDefaultSortStyle
|
protected org.springframework.web.servlet.ModelAndView |
handleRequestInternal(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Parses the query string to determine what types of filters to use
(for example, what to filter on or sort by), then does the database query
(through the OutageFactory) and then forwards the results to a JSP for
display.
|
void |
setDefaultLongLimit(Integer limit)
setDefaultLongLimit
|
void |
setDefaultOutageType(OutageType defaultOutageType)
setDefaultOutageType
|
void |
setDefaultShortLimit(Integer limit)
setDefaultShortLimit
|
void |
setDefaultSortStyle(SortStyle defaultSortStyle)
setDefaultSortStyle
|
void |
setSuccessView(String successView)
setSuccessView
|
void |
setWebOutageRepository(WebOutageRepository webOutageRepository)
setWebOutageRepository
|
handleRequest, isSynchronizeOnSession, setSynchronizeOnSession
applyCacheSeconds, applyCacheSeconds, cacheForSeconds, cacheForSeconds, checkAndPrepare, checkAndPrepare, getCacheSeconds, getSupportedMethods, isAlwaysMustRevalidate, isRequireSession, isUseCacheControlHeader, isUseCacheControlNoStore, isUseExpiresHeader, preventCaching, setAlwaysMustRevalidate, setCacheSeconds, setRequireSession, setSupportedMethods, setUseCacheControlHeader, setUseCacheControlNoStore, setUseExpiresHeader
getServletContext, getTempDir, getWebApplicationContext, initApplicationContext, initServletContext, isContextRequired, setServletContext
public static final int DEFAULT_MULTIPLE
DEFAULT_MULTIPLE=0
protected org.springframework.web.servlet.ModelAndView handleRequestInternal(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
Sets request attributes for the forwardee JSP (or whatever gets called).
handleRequestInternal
in class org.springframework.web.servlet.mvc.AbstractController
Exception
public void setDefaultShortLimit(Integer limit)
setDefaultShortLimit
limit
- a Integer
object.public void setDefaultLongLimit(Integer limit)
setDefaultLongLimit
limit
- a Integer
object.public void setSuccessView(String successView)
setSuccessView
successView
- a String
object.public void setWebOutageRepository(WebOutageRepository webOutageRepository)
setWebOutageRepository
webOutageRepository
- a WebOutageRepository
object.public void afterPropertiesSet()
afterPropertiesSet
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
public OutageType getDefaultOutageType()
getDefaultOutageType
OutageType
object.public void setDefaultOutageType(OutageType defaultOutageType)
setDefaultOutageType
defaultOutageType
- a OutageType
object.public SortStyle getDefaultSortStyle()
getDefaultSortStyle
SortStyle
object.Copyright © 2016. All rights reserved.