@Controller
@RequestMapping("/page")
public class PageController
extends java.lang.Object
Modifier and Type | Field | Description |
---|---|---|
private org.springframework.context.ApplicationContext |
context |
|
private DataFetchingAndMappingService |
dataFetchingAndMappingService |
|
private static org.apache.log4j.Logger |
logger |
Constructor | Description |
---|---|
PageController() |
Modifier and Type | Method | Description |
---|---|---|
java.lang.String |
dataTypeSettingPage(org.springframework.ui.Model model) |
This is the first setting page
|
java.lang.String |
errorPage(org.springframework.ui.Model model,
java.lang.String stackTrace) |
This is the general error page of the application.
|
java.lang.String |
monitorDataPage() |
Send monitor_data view to browser.
|
java.lang.String |
setBorderRouterPage() |
Send border router setting view to browser.
|
java.lang.String |
setSensorNamePage() |
Send set_sensor_name view to browser.
|
@Autowired private org.springframework.context.ApplicationContext context
@Autowired private DataFetchingAndMappingService dataFetchingAndMappingService
private static final org.apache.log4j.Logger logger
@RequestMapping("/errorPage") public java.lang.String errorPage(org.springframework.ui.Model model, @RequestParam(value="stackTrace",required=false) java.lang.String stackTrace)
@RequestMapping("/dataTypeSettingPage") public java.lang.String dataTypeSettingPage(org.springframework.ui.Model model)
@RequestMapping("/setBorderRouterPage") public java.lang.String setBorderRouterPage()
dataTypeList
has
not been setup yet, redirect to dataTypeSettingPage
.@RequestMapping("/setSensorNamePage") public java.lang.String setSensorNamePage()
dataTypeList
has not been
initialized, redirect to dataTypeSettingPage
. Else if there is no
border router in database, redirect to setBorderRouterPage
.@RequestMapping("/monitorDataPage") public java.lang.String monitorDataPage()
dataTypeList
has not been
initialized, redirect to dataTypeSettingPage
. Else if there is no
border router in database, redirect to setBorderRouterPage
. Sensor
name doesn't actually matter, because if the user has not set sensor name, the
default name will be the sensor's IP.