列表查询子配置处理
This commit is contained in:
@@ -14,6 +14,7 @@ import org.springframework.stereotype.Controller;
|
|||||||
import org.springframework.ui.Model;
|
import org.springframework.ui.Model;
|
||||||
import org.springframework.web.bind.annotation.ModelAttribute;
|
import org.springframework.web.bind.annotation.ModelAttribute;
|
||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.ResponseBody;
|
||||||
|
|
||||||
import com.nis.domain.Page;
|
import com.nis.domain.Page;
|
||||||
import com.nis.domain.configuration.BaseIpCfg;
|
import com.nis.domain.configuration.BaseIpCfg;
|
||||||
@@ -58,6 +59,24 @@ public class WebsiteController extends BaseController{
|
|||||||
public String httpForm(Model model,String ids,CfgIndexInfo entity) {
|
public String httpForm(Model model,String ids,CfgIndexInfo entity) {
|
||||||
if(StringUtils.isNotBlank(ids)){
|
if(StringUtils.isNotBlank(ids)){
|
||||||
entity = websiteCfgService.getHttpCfg(Long.parseLong(ids));
|
entity = websiteCfgService.getHttpCfg(Long.parseLong(ids));
|
||||||
|
if(entity.getIpPortList().size()==0){
|
||||||
|
entity.getIpPortList().add(new IpPortCfg());
|
||||||
|
}
|
||||||
|
if(entity.getHttpUrlList().size()==0){
|
||||||
|
entity.getHttpUrlList().add(new HttpUrlCfg());
|
||||||
|
}
|
||||||
|
if(entity.getHttpReqHdrList().size()==0){
|
||||||
|
entity.getHttpReqHdrList().add(new HttpReqHeadCfg());
|
||||||
|
}
|
||||||
|
if(entity.getHttpResHdrList().size()==0){
|
||||||
|
entity.getHttpResHdrList().add(new HttpResHeadCfg());
|
||||||
|
}
|
||||||
|
if(entity.getHttpReqBodyList().size()==0){
|
||||||
|
entity.getHttpReqBodyList().add(new HttpBodyCfg());
|
||||||
|
}
|
||||||
|
if(entity.getHttpResBodyList().size()==0){
|
||||||
|
entity.getHttpResBodyList().add(new HttpBodyCfg());
|
||||||
|
}
|
||||||
}else{
|
}else{
|
||||||
List<IpPortCfg> ipList=new ArrayList<IpPortCfg>();
|
List<IpPortCfg> ipList=new ArrayList<IpPortCfg>();
|
||||||
ipList.add(new IpPortCfg());
|
ipList.add(new IpPortCfg());
|
||||||
@@ -88,4 +107,11 @@ public class WebsiteController extends BaseController{
|
|||||||
websiteCfgService.saveHttpCfg(entity);
|
websiteCfgService.saveHttpCfg(entity);
|
||||||
return "redirect:" + adminPath +"/ntc/website/httpList?functionId="+entity.getFunctionId();
|
return "redirect:" + adminPath +"/ntc/website/httpList?functionId="+entity.getFunctionId();
|
||||||
}
|
}
|
||||||
|
@RequestMapping(value = {"ajaxHttpSubList"})
|
||||||
|
public String ajaxHttpSubList(Model model,Long cfgId,Integer index) {
|
||||||
|
CfgIndexInfo cfg = websiteCfgService.getHttpCfg(cfgId);
|
||||||
|
model.addAttribute("_cfg", cfg);
|
||||||
|
model.addAttribute("index", index);
|
||||||
|
return "/cfg/website/httpSubList";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -48,24 +48,6 @@ public class WebsiteCfgService extends CrudService<WebsiteCfgDao,CfgIndexInfo> {
|
|||||||
List<HttpResHeadCfg> httpResHdrList = websiteCfgDao.getHttpResHdrList(entity);
|
List<HttpResHeadCfg> httpResHdrList = websiteCfgDao.getHttpResHdrList(entity);
|
||||||
List<HttpBodyCfg> httpReqBodyList = websiteCfgDao.getHttpReqBodyList(entity);
|
List<HttpBodyCfg> httpReqBodyList = websiteCfgDao.getHttpReqBodyList(entity);
|
||||||
List<HttpBodyCfg> httpResBodyList = websiteCfgDao.getHttpResBodyList(entity);
|
List<HttpBodyCfg> httpResBodyList = websiteCfgDao.getHttpResBodyList(entity);
|
||||||
if(ipPortList.size()==0){
|
|
||||||
ipPortList.add(new IpPortCfg());
|
|
||||||
}
|
|
||||||
if(httpUrlList.size()==0){
|
|
||||||
httpUrlList.add(new HttpUrlCfg());
|
|
||||||
}
|
|
||||||
if(httpReqHdrList.size()==0){
|
|
||||||
httpReqHdrList.add(new HttpReqHeadCfg());
|
|
||||||
}
|
|
||||||
if(httpResHdrList.size()==0){
|
|
||||||
httpResHdrList.add(new HttpResHeadCfg());
|
|
||||||
}
|
|
||||||
if(httpReqBodyList.size()==0){
|
|
||||||
httpReqBodyList.add(new HttpBodyCfg());
|
|
||||||
}
|
|
||||||
if(httpResBodyList.size()==0){
|
|
||||||
httpResBodyList.add(new HttpBodyCfg());
|
|
||||||
}
|
|
||||||
entity.setIpPortList(ipPortList);
|
entity.setIpPortList(ipPortList);
|
||||||
entity.setHttpReqBodyList(httpReqBodyList);
|
entity.setHttpReqBodyList(httpReqBodyList);
|
||||||
entity.setHttpReqHdrList(httpReqHdrList);
|
entity.setHttpReqHdrList(httpReqHdrList);
|
||||||
|
|||||||
@@ -55,263 +55,31 @@
|
|||||||
var index=$(this).attr("id").replace("open","");
|
var index=$(this).attr("id").replace("open","");
|
||||||
$("#"+openId).hide();
|
$("#"+openId).hide();
|
||||||
$("#"+closeId).show();
|
$("#"+closeId).show();
|
||||||
var compileId=$(this).attr("compileId");
|
//var compileId=$(this).attr("compileId");
|
||||||
var cfgId=$(this).attr("cfgId");
|
var cfgId=$(this).attr("cfgId");
|
||||||
var hasIp=false;
|
|
||||||
var hasAccount=false;
|
|
||||||
if($("#"+openId).parent().parent().next("tr").hasClass("child")){
|
if($("#"+openId).parent().parent().next("tr").hasClass("child")){
|
||||||
$("#"+openId).parent().parent().next("tr").show();
|
$("#"+openId).parent().parent().next("tr").show();
|
||||||
}else{
|
}else{
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type:'post',
|
type:'post',
|
||||||
async:false,
|
async:false,
|
||||||
url:'${ctx}/ntc/website/ajaxVoipAndAccountInfo',
|
url:'${ctx}/ntc/website/ajaxHttpSubList',
|
||||||
data:{"compileId":compileId,"cfgId":cfgId},
|
data:{"cfgId":cfgId,"index":index},
|
||||||
|
dataType:"html",
|
||||||
success:function(data){
|
success:function(data){
|
||||||
var voipIpCfgTab="<tr class='child'>"+
|
var subTab="<tr class='child'>"+
|
||||||
"<td style='border-right: 1px solid #FFFFFF;'>"+
|
"<td style='border-right: 1px solid #FFFFFF;'>"+
|
||||||
"<input type='checkbox' hidden='hidden'/>"+
|
"<input type='checkbox' hidden='hidden'/>"+
|
||||||
"</td>"+
|
"</td>"+
|
||||||
"<td colspan='"+($(".table tr").eq(0).children("th").length-1)+"'>";
|
"<td colspan='"+($(".table tr").eq(0).children("th").length-1)+"'>";
|
||||||
var html="";
|
var html="";
|
||||||
html+="<div class='row'>";
|
html+="<div class='row'>";
|
||||||
if(data.ip.length >0){
|
html = html+data;
|
||||||
hasIp=true;
|
subTab=subTab+html;
|
||||||
html+="<div id='ipTitle"+index+"' onclick='switchInfo(\"account\","+index+")' class='col-md-1' style='width:150px;background-color: #eeeeee;border: 1px solid #c2cad8;padding: 5px;border-bottom:0px'>";
|
subTab+="</td>";
|
||||||
html+="<spring:message code='av_voip_ip_title'/>";
|
subTab+="</tr>";
|
||||||
html+="<i id='ipDown"+index+"' class='fa fa-angle-double-down' ></i>";
|
$("#"+openId).parent().parent().after(subTab);
|
||||||
html+="<i id='ipUp"+index+"' class='fa fa-angle-double-up ' style='display:none'></i>";
|
$("div[name='tabTitle"+index+"']").get(0).click();
|
||||||
html+="</div>";
|
|
||||||
}
|
|
||||||
if(data.account.length >0){
|
|
||||||
hasAccount=true;
|
|
||||||
html+="<div id='accountTitle"+index+"' onclick='switchInfo(\"ip\","+index+")' class='col-md-1' style='width:150px;background-color: #f6f3f3;border: 1px solid #c2cad8;padding: 5px;border-bottom:0px'>";
|
|
||||||
html+="<spring:message code='av_voip_account_title'/>";
|
|
||||||
html+="<i id='accountDown"+index+"' class='fa fa-angle-double-down ' style='display:none'></i>";
|
|
||||||
html+="<i id='accountUp"+index+"' class='fa fa-angle-double-up '></i>";
|
|
||||||
html+="</div>";
|
|
||||||
}
|
|
||||||
|
|
||||||
html+="</div>";
|
|
||||||
//ip信息
|
|
||||||
if(data.ip.length >0){
|
|
||||||
html+="<div id='ipInfo"+index+"' style='width:1050px;background-color: #f6f3f3;border: 1px solid #c2cad8;padding: 5px;'>";
|
|
||||||
$.each(data.ip,function(index,item){
|
|
||||||
html+="<div class='row'>";
|
|
||||||
html+="<div class='col-md-4'>";
|
|
||||||
html+="<div class='form-group'>";
|
|
||||||
html+="<label><spring:message code='ip_type'/>:</label>";
|
|
||||||
html+="<label>"
|
|
||||||
if(item.ipType==4){
|
|
||||||
html+="V4";
|
|
||||||
}
|
|
||||||
if(item.ipType==6){
|
|
||||||
html+="V6";
|
|
||||||
}
|
|
||||||
html+="</label>";
|
|
||||||
html+="</div>";
|
|
||||||
html+="</div>";
|
|
||||||
html+="<div class='col-md-4'>";
|
|
||||||
html+="<div class='form-group'>";
|
|
||||||
html+="<label><spring:message code='ip_pattern'/>:</label>";
|
|
||||||
html+="<label>"
|
|
||||||
if(item.ipPattern==1){
|
|
||||||
html+="<spring:message code='subnet'/>"
|
|
||||||
}
|
|
||||||
if(item.ipPattern==2){
|
|
||||||
html+="<spring:message code='ip_range'/>"
|
|
||||||
}
|
|
||||||
html+="</label>";
|
|
||||||
html+="</div>";
|
|
||||||
html+="</div>";
|
|
||||||
html+="<div class='col-md-4'>";
|
|
||||||
html+="<div class='form-group'>";
|
|
||||||
html+="<label><spring:message code='client_ip'/>:</label>";
|
|
||||||
html+="<label>"
|
|
||||||
html+=item.srcIpAddress;
|
|
||||||
html+="</label>";
|
|
||||||
html+="</div>";
|
|
||||||
html+="</div>";
|
|
||||||
html+="</div>";
|
|
||||||
html+="<div class='row'>";
|
|
||||||
html+="<div class='col-md-4'>";
|
|
||||||
html+="<div class='form-group'>";
|
|
||||||
html+="<label><spring:message code='port_pattern'/>:</label>";
|
|
||||||
html+="<label>"
|
|
||||||
if(item.portPattern==1){
|
|
||||||
html+="<spring:message code='subnet'/>"
|
|
||||||
}
|
|
||||||
if(item.portPattern==2){
|
|
||||||
html+="<spring:message code='ip_range'/>"
|
|
||||||
}
|
|
||||||
if(item.portPattern==3){
|
|
||||||
html+="IP"
|
|
||||||
}
|
|
||||||
html+="</label>";
|
|
||||||
html+="</div>";
|
|
||||||
html+="</div>";
|
|
||||||
html+="<div class='col-md-4'>";
|
|
||||||
html+="<div class='form-group'>";
|
|
||||||
html+="<label><spring:message code='client_port'/>:</label>";
|
|
||||||
html+="<label>"
|
|
||||||
html+=item.srcPort;
|
|
||||||
html+="</label>";
|
|
||||||
html+="</div>";
|
|
||||||
html+="</div>";
|
|
||||||
html+="<div class='col-md-4'>";
|
|
||||||
html+="<div class='form-group'>";
|
|
||||||
html+="<label><spring:message code='server_ip'/>:</label>";
|
|
||||||
html+="<label>"
|
|
||||||
html+=item.destIpAddress;
|
|
||||||
html+="</label>";
|
|
||||||
html+="</div>";
|
|
||||||
html+="</div>";
|
|
||||||
html+="</div>";
|
|
||||||
html+="<div class='row'>";
|
|
||||||
html+="<div class='col-md-4'>";
|
|
||||||
html+="<div class='form-group'>";
|
|
||||||
html+="<label><spring:message code='server_port'/>:</label>";
|
|
||||||
html+="<label>"
|
|
||||||
html+=item.destPort;
|
|
||||||
html+="</label>";
|
|
||||||
html+="</div>";
|
|
||||||
html+="</div>";
|
|
||||||
html+="<div class='col-md-4'>";
|
|
||||||
html+="<div class='form-group'>";
|
|
||||||
html+="<label><spring:message code='direction'/>:</label>";
|
|
||||||
html+="<label>"
|
|
||||||
if(item.direction==0){
|
|
||||||
html+="<spring:message code='twoway'/>"
|
|
||||||
}
|
|
||||||
if(item.direction==1){
|
|
||||||
html+="<spring:message code='ingress'/>"
|
|
||||||
}
|
|
||||||
if(item.direction==2){
|
|
||||||
html+="<spring:message code='degress'/>"
|
|
||||||
}
|
|
||||||
html+="</label>";
|
|
||||||
html+="</div>";
|
|
||||||
html+="</div>";
|
|
||||||
html+="<div class='col-md-4'>";
|
|
||||||
html+="<div class='form-group'>";
|
|
||||||
html+="<label><spring:message code='protocol'/>:</label>";
|
|
||||||
html+="<label>"
|
|
||||||
if(item.protocol==6){
|
|
||||||
html+="TCP"
|
|
||||||
}
|
|
||||||
if(item.protocol==17){
|
|
||||||
html+="UDP"
|
|
||||||
}
|
|
||||||
if(item.protocol==2){
|
|
||||||
html+="<spring:message code='arbitrary'/>"
|
|
||||||
}
|
|
||||||
html+=item.protocol;
|
|
||||||
html+="</label>";
|
|
||||||
html+="</div>";
|
|
||||||
html+="</div>";
|
|
||||||
html+="</div>";
|
|
||||||
/* if(index < (data.ip.length-1) && index != 0){
|
|
||||||
alert("下一行");
|
|
||||||
}
|
|
||||||
html+="<h5 class='page-header'></h5>";*/
|
|
||||||
})
|
|
||||||
html+="</div>";
|
|
||||||
|
|
||||||
}
|
|
||||||
//account信息
|
|
||||||
if(data.account.length > 0){
|
|
||||||
html+="<div id='accountInfo"+index+"' style='display:none;width:1050px;background-color: #f6f3f3;border: 1px solid #c2cad8;padding: 5px;'>";
|
|
||||||
$.each(data.account,function(index,item){
|
|
||||||
html+="<div class='row'>";
|
|
||||||
html+="<div class='col-md-4'>";
|
|
||||||
html+="<div class='form-group'>";
|
|
||||||
html+="<label><spring:message code='key_word'/>:</label>";
|
|
||||||
html+="<label>"
|
|
||||||
html+=item.cfgKeywords;
|
|
||||||
html+="</label>";
|
|
||||||
html+="</div>";
|
|
||||||
html+="</div>";
|
|
||||||
html+="<div class='col-md-4'>";
|
|
||||||
html+="<div class='form-group'>";
|
|
||||||
html+="<label><spring:message code='strong_string'/>:</label>";
|
|
||||||
html+="<label>"
|
|
||||||
html+=item.district;
|
|
||||||
html+="</label>";
|
|
||||||
html+="</div>";
|
|
||||||
html+="</div>";
|
|
||||||
html+="<div class='col-md-4'>";
|
|
||||||
html+="<div class='form-group'>";
|
|
||||||
html+="<label><spring:message code='expression_type'/>:</label>";
|
|
||||||
html+="<label>"
|
|
||||||
if(item.exprType==1){
|
|
||||||
html+="<spring:message code='and'/>"
|
|
||||||
}
|
|
||||||
if(item.exprType==0){
|
|
||||||
html+="<spring:message code='null'/>"
|
|
||||||
}
|
|
||||||
html+="</label>";
|
|
||||||
html+="</div>";
|
|
||||||
html+="</div>";
|
|
||||||
html+="</div>";
|
|
||||||
html+="<div class='row'>";
|
|
||||||
html+="<div class='col-md-4'>";
|
|
||||||
html+="<div class='form-group'>";
|
|
||||||
html+="<label><spring:message code='match_method'/>:</label>";
|
|
||||||
html+="<label>"
|
|
||||||
if(item.matchMethod==0){
|
|
||||||
html+="<spring:message code='substring_match'/>"
|
|
||||||
}
|
|
||||||
if(item.matchMethod==1){
|
|
||||||
html+="<spring:message code='right_match'/>"
|
|
||||||
}
|
|
||||||
if(item.matchMethod==2){
|
|
||||||
html+="<spring:message code='left_match'/>"
|
|
||||||
}
|
|
||||||
if(item.matchMethod==3){
|
|
||||||
html+="<spring:message code='exactly_match'/>"
|
|
||||||
}
|
|
||||||
html+="</label>";
|
|
||||||
html+="</div>";
|
|
||||||
html+="</div>";
|
|
||||||
html+="<div class='col-md-4'>";
|
|
||||||
html+="<div class='form-group'>";
|
|
||||||
html+="<label><spring:message code='whether_hexbinary'/>:</label>";
|
|
||||||
html+="<label>"
|
|
||||||
if(item.isHexbin==1){
|
|
||||||
html+="<spring:message code='hex_binary'/>"
|
|
||||||
}
|
|
||||||
if(item.isHexbin==2){
|
|
||||||
html+="<spring:message code='case_sensitive_nohex'/>"
|
|
||||||
}
|
|
||||||
if(item.isHexbin==0){
|
|
||||||
html+="<spring:message code='case_insensitive_nohex'/>"
|
|
||||||
}
|
|
||||||
html+="</label>";
|
|
||||||
html+="</div>";
|
|
||||||
html+="</div>";
|
|
||||||
html+="<div class='col-md-4'>";
|
|
||||||
html+="<div class='form-group'>";
|
|
||||||
html+="<label></label>";
|
|
||||||
html+="<label>"
|
|
||||||
html+="</label>";
|
|
||||||
html+="</div>";
|
|
||||||
html+="</div>";
|
|
||||||
html+="</div>";
|
|
||||||
/* if(index < (data.ip.length-1) && index != 0){
|
|
||||||
alert("下一行");
|
|
||||||
}
|
|
||||||
html+="<h5 class='page-header'></h5>";*/
|
|
||||||
})
|
|
||||||
html+="</div>";
|
|
||||||
}
|
|
||||||
|
|
||||||
voipIpCfgTab=voipIpCfgTab+html;
|
|
||||||
voipIpCfgTab+="</td>";
|
|
||||||
voipIpCfgTab+="</tr>";
|
|
||||||
$("#"+openId).parent().parent().after(voipIpCfgTab);
|
|
||||||
if(hasAccount && ! hasIp){
|
|
||||||
switchInfo("ip",index);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -328,31 +96,12 @@
|
|||||||
});
|
});
|
||||||
|
|
||||||
function switchInfo(flag,index){
|
function switchInfo(flag,index){
|
||||||
//关闭ip信息
|
$("div[name='subCfg"+index+"']").hide();
|
||||||
if("ip" ==flag){
|
$("div[id='"+flag+"Info"+index+"']").show();
|
||||||
$("#ipInfo"+index).hide();
|
$("i[name='tabFlag"+index+"']").addClass("fa-angle-double-up");
|
||||||
$("#downIp"+index).hide();
|
$("i[name='tabFlag"+index+"']").removeClass("fa-angle-double-down");
|
||||||
$("#ipTitle"+index).css("background-color","#f6f3f3");
|
$("i[id='"+flag+index+"']").addClass("fa-angle-double-down");
|
||||||
$("#accountInfo"+index).show();
|
$("i[id='"+flag+index+"']").removeClass("fa-angle-double-up");
|
||||||
$("#accountDown"+index).show();
|
|
||||||
$("#accountUp"+index).hide();
|
|
||||||
$("#ipUp"+index).show();
|
|
||||||
$("#ipDown"+index).hide();
|
|
||||||
$("#accountTitle"+index).css("background-color","#eeeeee");
|
|
||||||
}else{
|
|
||||||
//关闭account信息
|
|
||||||
$("#accountInfo"+index).hide();
|
|
||||||
$("#downAccount"+index).hide();
|
|
||||||
$("#accountTitle"+index).css("background-color","#f6f3f3");
|
|
||||||
$("#ipInfo"+index).show();
|
|
||||||
$("#ipDown"+index).show();
|
|
||||||
$("#accountUp"+index).show();
|
|
||||||
$("#accountDown"+index).hide();
|
|
||||||
$("#ipUp"+index).hide();
|
|
||||||
$("#ipTitle"+index).css("background-color","#eeeeee");
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
474
src/main/webapp/WEB-INF/views/cfg/website/httpSubList.jsp
Normal file
474
src/main/webapp/WEB-INF/views/cfg/website/httpSubList.jsp
Normal file
@@ -0,0 +1,474 @@
|
|||||||
|
<%@ page contentType="text/html;charset=UTF-8"%>
|
||||||
|
<%@ include file="/WEB-INF/include/taglib.jsp"%>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<script>
|
||||||
|
$(document).ready(function() {
|
||||||
|
//$("div[name='tabTitle"+index+"']").get(0).click();
|
||||||
|
})
|
||||||
|
</script>
|
||||||
|
<style type="text/css">
|
||||||
|
.tabInfo {
|
||||||
|
width: 150px;
|
||||||
|
background-color: #eeeeee;
|
||||||
|
border: 1px solid #c2cad8;
|
||||||
|
padding: 5px;
|
||||||
|
border-bottom: 0px
|
||||||
|
}
|
||||||
|
|
||||||
|
.content {
|
||||||
|
width: 1050px;
|
||||||
|
background-color: #f6f3f3;
|
||||||
|
border: 1px solid #c2cad8;
|
||||||
|
padding: 5px;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
<c:if test="${fn:length(_cfg.ipPortList)>0}">
|
||||||
|
<div id="ipTitle${index}" onclick="switchInfo('ip',${index})"
|
||||||
|
class="col-md-1 tabInfo" name="tabTitle${index }">
|
||||||
|
<a href="#">
|
||||||
|
<spring:message code='http_ip_title' />
|
||||||
|
<i id="ip${index}" class="fa" name="tabFlag${index}"></i>
|
||||||
|
</a>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</c:if>
|
||||||
|
<c:if test="${fn:length(_cfg.httpUrlList)>0}">
|
||||||
|
<div id="urlTitle${index}" onclick="switchInfo('url',${index})"
|
||||||
|
class="col-md-1 tabInfo" name="tabTitle${index }">
|
||||||
|
<a href="#">
|
||||||
|
<spring:message code='http_url_title' />
|
||||||
|
<i id="url${index}" class="fa" name="tabFlag${index}"></i>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
</c:if>
|
||||||
|
<c:if test="${fn:length(_cfg.httpReqHdrList)>0}">
|
||||||
|
<div id="reqHdrTitle${index}" onclick="switchInfo('reqHdr',${index})"
|
||||||
|
class="col-md-1 tabInfo" name="tabTitle${index }">
|
||||||
|
<a href="#">
|
||||||
|
<spring:message code='http_req_hdr_title' />
|
||||||
|
<i id="reqHdr${index}" class="fa" name="tabFlag${index}"></i>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
</c:if>
|
||||||
|
<c:if test="${fn:length(_cfg.httpReqBodyList)>0}">
|
||||||
|
<div id="reqBodyTitle${index}" onclick="switchInfo('reqBody',${index})"
|
||||||
|
class="col-md-1 tabInfo" name="tabTitle${index }">
|
||||||
|
<a href="#">
|
||||||
|
<spring:message code='http_req_hdr_title' />
|
||||||
|
<i id="reqBody${index}" class="fa" name="tabFlag${index}"></i>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
</c:if>
|
||||||
|
<c:if test="${fn:length(_cfg.httpResHdrList)>0}">
|
||||||
|
<div id="resHdrTitle${index}" onclick="switchInfo('resHdr',${index})"
|
||||||
|
class="col-md-1 tabInfo" name="tabTitle${index }">
|
||||||
|
<a href="#">
|
||||||
|
<spring:message code='http_res_hdr_title' />
|
||||||
|
<i id="resHdr${index}" class="fa" name="tabFlag${index}"></i>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
</c:if>
|
||||||
|
<c:if test="${fn:length(_cfg.httpResBodyList)>0}">
|
||||||
|
<div id="resBodyTitle${index}" onclick="switchInfo('resBody',${index})"
|
||||||
|
class="col-md-1 tabInfo" name="tabTitle${index }">
|
||||||
|
<a href="#">
|
||||||
|
<spring:message code='http_res_body_title' />
|
||||||
|
<i id="resBody${index}" class="fa" name="tabFlag${index}"></i>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
</c:if>
|
||||||
|
</div>
|
||||||
|
<c:if test="${fn:length(_cfg.ipPortList)>0}">
|
||||||
|
<div id="ipInfo${index}" class="content" name="subCfg${index}">
|
||||||
|
</c:if>
|
||||||
|
<c:forEach items="${_cfg.ipPortList}" var="cfg">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-4">
|
||||||
|
<div class="form-group">
|
||||||
|
<label><spring:message code='ip_type'/>:</label>
|
||||||
|
<label>
|
||||||
|
<c:choose>
|
||||||
|
<c:when test="${cfg.ipType eq 4}">V4</c:when>
|
||||||
|
<c:when test="${cfg.ipType eq 6}">V6</c:when>
|
||||||
|
</c:choose>
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-4">
|
||||||
|
<div class="form-group">
|
||||||
|
<label><spring:message code='ip_pattern'/>:</label>
|
||||||
|
<label>
|
||||||
|
<c:choose>
|
||||||
|
<c:when test="${cfg.ipPattern eq 1}"><spring:message code='ip_subnet'/></c:when>
|
||||||
|
<c:when test="${cfg.ipPattern eq 2}"><spring:message code='ip_range'/></c:when>
|
||||||
|
<c:otherwise>IP</c:otherwise>
|
||||||
|
</c:choose>
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-4">
|
||||||
|
<div class="form-group">
|
||||||
|
<label><spring:message code='client_ip'/>:</label>
|
||||||
|
<label>
|
||||||
|
${cfg.srcIpAddress}
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-4">
|
||||||
|
<div class="form-group">
|
||||||
|
<label><spring:message code='port_pattern'/>:</label>
|
||||||
|
<label>
|
||||||
|
<c:choose>
|
||||||
|
<c:when test="${cfg.portPattern eq 1}">port</c:when>
|
||||||
|
<c:when test="${cfg.portPattern eq 2}"><spring:message code='port_mask'/></c:when>
|
||||||
|
</c:choose>
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-4">
|
||||||
|
<div class="form-group">
|
||||||
|
<label><spring:message code='client_port'/>:</label><label>${cfg.srcPort }</label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-4">
|
||||||
|
<div class="form-group">
|
||||||
|
<label><spring:message code='server_ip'/>:</label><label>${cfg.destIpAddress }</label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-4">
|
||||||
|
<div class="form-group">
|
||||||
|
<label><spring:message code='server_port'/>:</label><label>${cfg.destPort }</label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-4">
|
||||||
|
<div class="form-group">
|
||||||
|
<label><spring:message code='direction'/>:</label>
|
||||||
|
<label>
|
||||||
|
<c:choose>
|
||||||
|
<c:when test="${cfg.direction eq 0}"><spring:message code='twoway'/></c:when>
|
||||||
|
<c:when test="${cfg.direction eq 1}"><spring:message code='ingress'/></c:when>
|
||||||
|
<c:otherwise><spring:message code='degress'/></c:otherwise>
|
||||||
|
</c:choose>
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-4">
|
||||||
|
<div class="form-group">
|
||||||
|
<label><spring:message code='protocol'/>:</label>
|
||||||
|
<label>
|
||||||
|
<c:choose>
|
||||||
|
<c:when test="${cfg.protocol eq 6}">TCP</c:when>
|
||||||
|
<c:when test="${cfg.protocol eq 17}">UDP</c:when>
|
||||||
|
<c:otherwise><spring:message code='arbitrary'/></c:otherwise>
|
||||||
|
</c:choose>
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</c:forEach>
|
||||||
|
|
||||||
|
<c:if test="${fn:length(_cfg.httpUrlList)>0}">
|
||||||
|
<div id="urlInfo${index}" class="content" name="subCfg${index}">
|
||||||
|
</c:if>
|
||||||
|
<c:forEach items="${_cfg.httpUrlList}" var="cfg">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-4">
|
||||||
|
<div class="form-group">
|
||||||
|
<label><spring:message code='key_word' />:</label><label>${cfg.cfgKeywords }</label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-4">
|
||||||
|
<div class="form-group">
|
||||||
|
<label><spring:message code='expression_type' />:</label>
|
||||||
|
<label>
|
||||||
|
<c:choose>
|
||||||
|
<c:when test="${cfg.exprType eq 1}"><spring:message code='and'/></c:when>
|
||||||
|
<c:when test="${cfg.exprType eq 0}"><spring:message code='null'/></c:when>
|
||||||
|
</c:choose>
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-4">
|
||||||
|
<div class="form-group">
|
||||||
|
<label><spring:message code='match_method' />:</label>
|
||||||
|
<label>
|
||||||
|
<c:choose>
|
||||||
|
<c:when test="${cfg.matchMethod eq 0}"><spring:message code='substring_match'/></c:when>
|
||||||
|
<c:when test="${cfg.matchMethod eq 1}"><spring:message code='right_match'/></c:when>
|
||||||
|
<c:when test="${cfg.matchMethod eq 2}"><spring:message code='left_match'/></c:when>
|
||||||
|
<c:when test="${cfg.matchMethod eq 3}"><spring:message code='exactly_match'/></c:when>
|
||||||
|
</c:choose>
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-4">
|
||||||
|
<div class="form-group">
|
||||||
|
<label><spring:message code='whether_hexbinary' />:</label>
|
||||||
|
<label>
|
||||||
|
<c:choose>
|
||||||
|
<c:when test="${cfg.isHexbin eq 1}"><spring:message code='hex_binary'/></c:when>
|
||||||
|
<c:when test="${cfg.isHexbin eq 2}"><spring:message code='case_sensitive_nohex'/></c:when>
|
||||||
|
<c:when test="${cfg.isHexbin eq 0}"><spring:message code='case_insensitive_nohex'/></c:when>
|
||||||
|
</c:choose>
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-4">
|
||||||
|
<div class="form-group">
|
||||||
|
<label></label><label></label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</c:forEach>
|
||||||
|
<c:if test="${fn:length(_cfg.httpReqHdrList)>0}">
|
||||||
|
<div id="reqHdrInfo${index}" class="content" name="subCfg${index}">
|
||||||
|
</c:if>
|
||||||
|
<c:forEach items="${_cfg.httpReqHdrList}" var="cfg">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-4">
|
||||||
|
<div class="form-group">
|
||||||
|
<label><spring:message code='strong_string' />:</label><label>${cfg.district }</label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-4">
|
||||||
|
<div class="form-group">
|
||||||
|
<label><spring:message code='key_word' />:</label><label>${cfg.cfgKeywords }</label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-4">
|
||||||
|
<div class="form-group">
|
||||||
|
<label><spring:message code='expression_type' />:</label>
|
||||||
|
<label>
|
||||||
|
<c:choose>
|
||||||
|
<c:when test="${cfg.exprType eq 1}"><spring:message code='and'/></c:when>
|
||||||
|
<c:when test="${cfg.exprType eq 0}"><spring:message code='null'/></c:when>
|
||||||
|
</c:choose>
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-4">
|
||||||
|
<div class="form-group">
|
||||||
|
<label><spring:message code='match_method' />:</label>
|
||||||
|
<label>
|
||||||
|
<c:choose>
|
||||||
|
<c:when test="${cfg.matchMethod eq 0}"><spring:message code='substring_match'/></c:when>
|
||||||
|
<c:when test="${cfg.matchMethod eq 1}"><spring:message code='right_match'/></c:when>
|
||||||
|
<c:when test="${cfg.matchMethod eq 2}"><spring:message code='left_match'/></c:when>
|
||||||
|
<c:when test="${cfg.matchMethod eq 3}"><spring:message code='exactly_match'/></c:when>
|
||||||
|
</c:choose>
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-4">
|
||||||
|
<div class="form-group">
|
||||||
|
<label><spring:message code='whether_hexbinary' />:</label>
|
||||||
|
<label>
|
||||||
|
<c:choose>
|
||||||
|
<c:when test="${cfg.isHexbin eq 1}"><spring:message code='hex_binary'/></c:when>
|
||||||
|
<c:when test="${cfg.isHexbin eq 2}"><spring:message code='case_sensitive_nohex'/></c:when>
|
||||||
|
<c:when test="${cfg.isHexbin eq 0}"><spring:message code='case_insensitive_nohex'/></c:when>
|
||||||
|
</c:choose>
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-4">
|
||||||
|
<div class="form-group">
|
||||||
|
<label></label><label></label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</c:forEach>
|
||||||
|
|
||||||
|
<c:if test="${fn:length(_cfg.httpReqBodyList)>0}">
|
||||||
|
<div id="reqBodyInfo${index}" class="content" name="subCfg${index}">
|
||||||
|
</c:if>
|
||||||
|
<c:forEach items="${_cfg.httpReqBodyList}" var="cfg">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-4">
|
||||||
|
<div class="form-group">
|
||||||
|
<label><spring:message code='key_word' />:</label><label>${cfg.cfgKeywords }</label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-4">
|
||||||
|
<div class="form-group">
|
||||||
|
<label><spring:message code='expression_type' />:</label>
|
||||||
|
<label>
|
||||||
|
<c:choose>
|
||||||
|
<c:when test="${cfg.exprType eq 1}"><spring:message code='and'/></c:when>
|
||||||
|
<c:when test="${cfg.exprType eq 0}"><spring:message code='null'/></c:when>
|
||||||
|
</c:choose>
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-4">
|
||||||
|
<div class="form-group">
|
||||||
|
<label><spring:message code='match_method' />:</label>
|
||||||
|
<label>
|
||||||
|
<c:choose>
|
||||||
|
<c:when test="${cfg.matchMethod eq 0}"><spring:message code='substring_match'/></c:when>
|
||||||
|
<c:when test="${cfg.matchMethod eq 1}"><spring:message code='right_match'/></c:when>
|
||||||
|
<c:when test="${cfg.matchMethod eq 2}"><spring:message code='left_match'/></c:when>
|
||||||
|
<c:when test="${cfg.matchMethod eq 3}"><spring:message code='exactly_match'/></c:when>
|
||||||
|
</c:choose>
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-4">
|
||||||
|
<div class="form-group">
|
||||||
|
<label><spring:message code='whether_hexbinary' />:</label>
|
||||||
|
<label>
|
||||||
|
<c:choose>
|
||||||
|
<c:when test="${cfg.isHexbin eq 1}"><spring:message code='hex_binary'/></c:when>
|
||||||
|
<c:when test="${cfg.isHexbin eq 2}"><spring:message code='case_sensitive_nohex'/></c:when>
|
||||||
|
<c:when test="${cfg.isHexbin eq 0}"><spring:message code='case_insensitive_nohex'/></c:when>
|
||||||
|
</c:choose>
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-4">
|
||||||
|
<div class="form-group">
|
||||||
|
<label></label><label></label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</c:forEach>
|
||||||
|
<c:if test="${fn:length(_cfg.httpResHdrList)>0}">
|
||||||
|
<div id="resHdrInfo${index}" class="content" name="subCfg${index}">
|
||||||
|
</c:if>
|
||||||
|
<c:forEach items="${_cfg.httpResHdrList}" var="cfg">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-4">
|
||||||
|
<div class="form-group">
|
||||||
|
<label><spring:message code='strong_string' />:</label><label>${cfg.district }</label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-4">
|
||||||
|
<div class="form-group">
|
||||||
|
<label><spring:message code='key_word' />:</label><label>${cfg.cfgKeywords }</label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-4">
|
||||||
|
<div class="form-group">
|
||||||
|
<label><spring:message code='expression_type' />:</label>
|
||||||
|
<label>
|
||||||
|
<c:choose>
|
||||||
|
<c:when test="${cfg.exprType eq 1}"><spring:message code='and'/></c:when>
|
||||||
|
<c:when test="${cfg.exprType eq 0}"><spring:message code='null'/></c:when>
|
||||||
|
</c:choose>
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-4">
|
||||||
|
<div class="form-group">
|
||||||
|
<label><spring:message code='match_method' />:</label>
|
||||||
|
<label>
|
||||||
|
<c:choose>
|
||||||
|
<c:when test="${cfg.matchMethod eq 0}"><spring:message code='substring_match'/></c:when>
|
||||||
|
<c:when test="${cfg.matchMethod eq 1}"><spring:message code='right_match'/></c:when>
|
||||||
|
<c:when test="${cfg.matchMethod eq 2}"><spring:message code='left_match'/></c:when>
|
||||||
|
<c:when test="${cfg.matchMethod eq 3}"><spring:message code='exactly_match'/></c:when>
|
||||||
|
</c:choose>
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-4">
|
||||||
|
<div class="form-group">
|
||||||
|
<label><spring:message code='whether_hexbinary' />:</label>
|
||||||
|
<label>
|
||||||
|
<c:choose>
|
||||||
|
<c:when test="${cfg.isHexbin eq 1}"><spring:message code='hex_binary'/></c:when>
|
||||||
|
<c:when test="${cfg.isHexbin eq 2}"><spring:message code='case_sensitive_nohex'/></c:when>
|
||||||
|
<c:when test="${cfg.isHexbin eq 0}"><spring:message code='case_insensitive_nohex'/></c:when>
|
||||||
|
</c:choose>
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-4">
|
||||||
|
<div class="form-group">
|
||||||
|
<label></label><label></label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</c:forEach>
|
||||||
|
<c:if test="${fn:length(_cfg.httpResBodyList)>0}">
|
||||||
|
<div id="resBodyInfo${index}" class="content" name="subCfg${index}">
|
||||||
|
</c:if>
|
||||||
|
<c:forEach items="${_cfg.httpResBodyList}" var="cfg">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-4">
|
||||||
|
<div class="form-group">
|
||||||
|
<label><spring:message code='key_word' />:</label><label>${cfg.cfgKeywords }</label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="col-md-4">
|
||||||
|
<div class="form-group">
|
||||||
|
<label><spring:message code='expression_type' />:</label>
|
||||||
|
<label>
|
||||||
|
<c:choose>
|
||||||
|
<c:when test="${cfg.exprType eq 1}"><spring:message code='and'/></c:when>
|
||||||
|
<c:when test="${cfg.exprType eq 0}"><spring:message code='null'/></c:when>
|
||||||
|
</c:choose>
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-4">
|
||||||
|
<div class="form-group">
|
||||||
|
<label><spring:message code='match_method' />:</label>
|
||||||
|
<label>
|
||||||
|
<c:choose>
|
||||||
|
<c:when test="${cfg.matchMethod eq 0}"><spring:message code='substring_match'/></c:when>
|
||||||
|
<c:when test="${cfg.matchMethod eq 1}"><spring:message code='right_match'/></c:when>
|
||||||
|
<c:when test="${cfg.matchMethod eq 2}"><spring:message code='left_match'/></c:when>
|
||||||
|
<c:when test="${cfg.matchMethod eq 3}"><spring:message code='exactly_match'/></c:when>
|
||||||
|
</c:choose>
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-4">
|
||||||
|
<div class="form-group">
|
||||||
|
<label><spring:message code='whether_hexbinary' />:</label>
|
||||||
|
<label>
|
||||||
|
<c:choose>
|
||||||
|
<c:when test="${cfg.isHexbin eq 1}"><spring:message code='hex_binary'/></c:when>
|
||||||
|
<c:when test="${cfg.isHexbin eq 2}"><spring:message code='case_sensitive_nohex'/></c:when>
|
||||||
|
<c:when test="${cfg.isHexbin eq 0}"><spring:message code='case_insensitive_nohex'/></c:when>
|
||||||
|
</c:choose>
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-4">
|
||||||
|
<div class="form-group">
|
||||||
|
<label></label><label></label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</c:forEach>
|
||||||
|
|
||||||
|
</html>
|
||||||
Reference in New Issue
Block a user