|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.ibisph.mvc.controller.AbstractModelAndView
org.ibisph.mvc.controller.indicator.ChartGraphic
public class ChartGraphic
Handles Indicator Profile chart requests. Relies on the base XML data file path, an Indicator Profile XML to Chart Data DAO, and a view name prefix and suffix. The chart view name is built using the chart name specified as part of the request's URI. A property for the chart view name prefix and suffix are used to complete the view name.
| Field Summary | |
|---|---|
protected DAO |
chartDataDAO
|
protected java.lang.String |
viewNamePrefix
|
protected java.lang.String |
viewNameSuffix
|
protected java.lang.String |
xmlPath
|
| Fields inherited from class org.ibisph.mvc.controller.AbstractModelAndView |
|---|
defaultResponseContentType, expiresGMTDateString, forceNoCacheHTTPHeader, view |
| Constructor Summary | |
|---|---|
ChartGraphic()
|
|
ChartGraphic(java.lang.String xmlPath,
DAO chartDataDAO,
java.lang.String viewNamePrefix,
java.lang.String viewNameSuffix)
Constructor which sets the core required properties. |
|
| Method Summary | |
|---|---|
protected java.util.Map<java.lang.String,java.lang.Object> |
getModelMap(javax.servlet.http.HttpServletRequest request)
Core method that sets up the IP chart model and returns the view name based on the chart name and the chart prefix and suffix properties. |
protected java.lang.Object |
getView(javax.servlet.http.HttpServletRequest request)
Basic getter that returns this object's view object. |
void |
setChartDataDAO(DAO chartDataDAO)
Sets the indicator profile Chart XML Data DAO. |
void |
setViewNamePrefix(java.lang.String viewNamePrefix)
Sets the chart view name prefix. |
void |
setViewNameSuffix(java.lang.String viewNameSuffix)
Sets the chart view name suffix. |
void |
setXMLPath(java.lang.String xmlPath)
Sets the indicator profile XML base file path. |
| Methods inherited from class org.ibisph.mvc.controller.AbstractModelAndView |
|---|
handleRequest, setDefaultResponseContentType, setExpiresHTTPHeader, setHTTPHeaders, setNoCacheHTTPHeader, setNoCacheHTTPHeader, setResponseContentType, setView |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.String xmlPath
protected DAO chartDataDAO
protected java.lang.String viewNamePrefix
protected java.lang.String viewNameSuffix
| Constructor Detail |
|---|
public ChartGraphic()
public ChartGraphic(java.lang.String xmlPath,
DAO chartDataDAO,
java.lang.String viewNamePrefix,
java.lang.String viewNameSuffix)
xmlPath - Base XML file path prefix.chartDataDAO - Standard chart data DAO which understands the
Indicator profile XML data and the Chart Data interface.viewNamePrefix - Prefix for the chart view name. This value is
added as a prefix to the chart name to build the actual view
name that this controller uses.viewNameSuffix - Suffix for the chart view name. This value is
added to the end of the chart name to build the actual view name
that this controller uses.| Method Detail |
|---|
public void setXMLPath(java.lang.String xmlPath)
xmlPath - Base XML file path prefix.public void setChartDataDAO(DAO chartDataDAO)
chartDataDAO - DAO interface for indicator profile XML data to the
Chart Data object.public void setViewNamePrefix(java.lang.String viewNamePrefix)
viewNamePrefix - Chart view name prefix. Needs to include any "."
separation characters and is case sensitive.public void setViewNameSuffix(java.lang.String viewNameSuffix)
viewNameSuffix - Chart view name suffix. Needs to include any "."
separation characters and is case sensitive.
protected java.util.Map<java.lang.String,java.lang.Object> getModelMap(javax.servlet.http.HttpServletRequest request)
throws java.lang.Exception
getModelMap in class AbstractModelAndViewrequest - HTTP Servlet Request passed from the requestHandler.
java.lang.Exception
protected java.lang.Object getView(javax.servlet.http.HttpServletRequest request)
throws java.lang.Exception
getView in class AbstractModelAndViewrequest - HTTP Servlet Request passed from the requestHandler.
java.lang.Exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||