|
|
package com.ui.ctrl;
|
|
|
package com.ui.ctrl;
|
|
|
|
|
|
import java.util.List;
|
|
|
|
...
|
...
|
@@ -36,19 +36,21 @@ public class MaliciousIpCtrl { |
|
|
}
|
|
|
|
|
|
@RequestMapping("/showDetail")
|
|
|
public ModelAndView showDetail(Model model, String ip, String count, String type) {
|
|
|
public ModelAndView showDetail(Model model, String ip, String count, String type, String timeType, String timestamp) {
|
|
|
ModelAndView mdv = new ModelAndView("malicious/maliciousIpDetail");
|
|
|
mdv.addObject("type", type);
|
|
|
mdv.addObject("ip", ip);
|
|
|
mdv.addObject("count", count);
|
|
|
mdv.addObject("timeType", timeType);
|
|
|
mdv.addObject("timestamp", timestamp);
|
|
|
return mdv;
|
|
|
}
|
|
|
|
|
|
@SuppressWarnings("unchecked")
|
|
|
@RequestMapping("/getIps")
|
|
|
@ResponseBody
|
|
|
public BaseResponse<List<Object>> getIps(Model model) {
|
|
|
BaseResponse<List<Object>> response = httpClient.defaultPost(HttpUriContants.GET_MALICIOUS_IP, null,
|
|
|
public BaseResponse<List<Object>> getIps(Model model,String timeType) {
|
|
|
BaseResponse<List<Object>> response = httpClient.defaultPost(HttpUriContants.GET_MALICIOUS_IP+"?timeType="+timeType, null,
|
|
|
BaseResponse.class);
|
|
|
return response;
|
|
|
}
|
...
|
...
|
@@ -56,8 +58,8 @@ public class MaliciousIpCtrl { |
|
|
@SuppressWarnings("unchecked")
|
|
|
@RequestMapping("/getDetail")
|
|
|
@ResponseBody
|
|
|
public BaseResponse<List<Object>> getDetail(Model model, String ip, String count) {
|
|
|
BaseResponse<List<Object>> response = httpClient.defaultGet(HttpUriContants.GET_MALICIOUS_DETAIL + "?ip=" + ip + "&count=" + count,
|
|
|
public BaseResponse<List<Object>> getDetail(Model model, String ip, String count,String timeType, String timestamp) {
|
|
|
BaseResponse<List<Object>> response = httpClient.defaultGet(HttpUriContants.GET_MALICIOUS_DETAIL + "?ip=" + ip + "&count=" + count + "&timeType=" + timeType + "×tamp=" + timestamp,
|
|
|
BaseResponse.class);
|
|
|
return response;
|
|
|
}
|
...
|
...
|
@@ -107,8 +109,8 @@ public class MaliciousIpCtrl { |
|
|
@SuppressWarnings("unchecked")
|
|
|
@RequestMapping("/getIpsBL")
|
|
|
@ResponseBody
|
|
|
public BaseResponse<List<Object>> getIpsBL(Model model) {
|
|
|
BaseResponse<List<Object>> response = httpClient.defaultPost(HttpUriContants.GET_MALICIOUS_IP_BL, null,
|
|
|
public BaseResponse<List<Object>> getIpsBL(Model model,String timeType) {
|
|
|
BaseResponse<List<Object>> response = httpClient.defaultPost(HttpUriContants.GET_MALICIOUS_IP_BL+"?timeType="+timeType, null,
|
|
|
BaseResponse.class);
|
|
|
return response;
|
|
|
}
|
...
|
...
|
@@ -121,8 +123,8 @@ public class MaliciousIpCtrl { |
|
|
@SuppressWarnings("unchecked")
|
|
|
@RequestMapping("/getIpsCS")
|
|
|
@ResponseBody
|
|
|
public BaseResponse<List<Object>> getIpsCS(Model model) {
|
|
|
BaseResponse<List<Object>> response = httpClient.defaultPost(HttpUriContants.GET_MALICIOUS_IP_CS, null,
|
|
|
public BaseResponse<List<Object>> getIpsCS(Model model,String timeType) {
|
|
|
BaseResponse<List<Object>> response = httpClient.defaultPost(HttpUriContants.GET_MALICIOUS_IP_CS+"?timeType="+timeType, null,
|
|
|
BaseResponse.class);
|
|
|
return response;
|
|
|
}
|
...
|
...
|
|