@Controller @RequestMapping(value="/news") public class NewsController extends Object
| Modifier and Type | Field and Description |
|---|---|
static org.apache.log4j.Logger |
LOG |
| Constructor and Description |
|---|
NewsController() |
| Modifier and Type | Method and Description |
|---|---|
String |
getNewsArticle(javax.servlet.http.HttpServletRequest request,
long sourceId,
String articleId,
org.springframework.ui.Model uiModel)
Handles requests for feeds and articles.
|
String |
newsHome(javax.servlet.http.HttpServletRequest request,
org.springframework.ui.Model uiModel)
The main entry point for the News tool.
|
void |
setConfigParamService(ConfigParamService configParamService) |
void |
setNewsService(NewsService newsService) |
public static final org.apache.log4j.Logger LOG
public NewsController()
public void setNewsService(NewsService newsService)
public void setConfigParamService(ConfigParamService configParamService)
@RequestMapping(method=GET) public String newsHome(javax.servlet.http.HttpServletRequest request, org.springframework.ui.Model uiModel)
uiModel - request - @RequestMapping(value="/source",
method=GET)
public String getNewsArticle(javax.servlet.http.HttpServletRequest request,
@RequestParam(value="id")
long sourceId,
@RequestParam(value="articleId",required=false)
String articleId,
org.springframework.ui.Model uiModel)
request - sourceId - the id of the NewsSource for the feed/article to retrievearticleId - (optional) the id of an article to retrieve. If this is
not present, the whole feed is returned.uiModel - Copyright © 2011-2013 The Kuali Foundation. All Rights Reserved.