diff --git a/src/main/java/com/nis/domain/configuration/AppIdCfg.java b/src/main/java/com/nis/domain/configuration/AppIdCfg.java new file mode 100644 index 000000000..b67c068d7 --- /dev/null +++ b/src/main/java/com/nis/domain/configuration/AppIdCfg.java @@ -0,0 +1,89 @@ +/** + *@Title: AppIdConfig.java + *@Package com.nis.domain.restful + *@Description TODO + *@author dell + *@date 2018年2月6日 上午11:24:28 + *@version 版本号 + */ +package com.nis.domain.configuration; + +/** + * @ClassName: AppIdConfig.java + * @Description: TODO + * @author (dell) + * @date 2018年2月6日 上午11:24:28 + * @version V1.0 + */ +public class AppIdCfg extends BaseCfg { + + /** + * @Fields serialVersionUID:TODO(用一句话描述这个变量表示什么) + * + * @since 1.0.0 + */ + + private static final long serialVersionUID = -5385478577426593882L; + /** + * 应用名称 + */ + private String appName; + /** + * 应用协议id + */ + private String appId; + + /** + * 编译id + */ + private Integer compileId; + + /** + * appName + * @return appName + */ + + public String getAppName() { + return appName; + } + + /** + * @param appName the appName to set + */ + public void setAppName(String appName) { + this.appName = appName; + } + + /** + * appId + * @return appId + */ + + public String getAppId() { + return appId; + } + + /** + * @param appId the appId to set + */ + public void setAppId(String appId) { + this.appId = appId; + } + + /** + * compileId + * @return compileId + */ + + public Integer getCompileId() { + return compileId; + } + + /** + * @param compileId the compileId to set + */ + public void setCompileId(Integer compileId) { + this.compileId = compileId; + } + +} diff --git a/src/main/java/com/nis/domain/configuration/BaseCfg.java b/src/main/java/com/nis/domain/configuration/BaseCfg.java new file mode 100644 index 000000000..4d9cbd476 --- /dev/null +++ b/src/main/java/com/nis/domain/configuration/BaseCfg.java @@ -0,0 +1,364 @@ +/** + *@Title: BaseConfig.java + *@Package com.nis.domain.restful + *@Description TODO + *@author dell + *@date 2018年2月5日 上午11:15:14 + *@version 版本号 + */ +package com.nis.domain.configuration; + +import java.io.Serializable; +import java.util.Date; + +/** + * @ClassName: BaseConfig.java + * @Description: 基础配置 + * @author (wx) + * @date 2018年2月5日 上午11:15:14 + * @version V1.0 + */ +public class BaseCfg implements Serializable { + /** + * @Fields serialVersionUID:TODO(用一句话描述这个变量表示什么) + * + * @since 1.0.0 + */ + + private static final long serialVersionUID = 3253728127555103620L; + /** + * 配置ID + */ + protected Long cfgId; + /** + * 配置描述 + */ + protected String cfgDesc; + + /** + * GK类型 + */ + protected Integer action; + /** + * 有效标识 + */ + protected Integer isValid; + /** + * 是否审核 + */ + protected Integer isAudit; + /** + * 创建人员 + */ + protected Integer creatorId; + /** + * 配置时间 + */ + protected Date createTime; + /** + * 修改人员 + */ + protected Integer editorId; + /** + * 修改时间 + */ + protected Date editTime; + /** + * 审核人员 + */ + protected Integer auditorId; + /** + * 审核时间 + */ + protected Date auditTime; + /** + * 业务id + */ + protected Integer serviceId; + /** + * 来函id + */ + protected Integer requestId; + /** + * 编译id + */ +// protected Integer compileId; + /** + * 是否区域gk + */ + protected Integer isAreaEffective; + /** + * 分类 + */ + protected String classify; + /** + * 性质 + */ + protected String attribute; + /** + * 标签 + */ + protected String lable; +// protected Integer exprType =0; +// protected Integer matchMethod =0; +// protected Integer isHexbin =0; + /** + * 区域生效id + */ + protected String areaEffectiveIds ; + /** + * cfgId + * @return cfgId + */ + + public Long getCfgId() { + return cfgId; + } + /** + * @param cfgId the cfgId to set + */ + public void setCfgId(Long cfgId) { + this.cfgId = cfgId; + } + /** + * action + * @return action + */ + + public Integer getAction() { + return action; + } + /** + * @param action the action to set + */ + public void setAction(Integer action) { + this.action = action; + } + /** + * isValid + * @return isValid + */ + + public Integer getIsValid() { + return isValid; + } + /** + * @param isValid the isValid to set + */ + public void setIsValid(Integer isValid) { + this.isValid = isValid; + } + /** + * isAudit + * @return isAudit + */ + + public Integer getIsAudit() { + return isAudit; + } + /** + * @param isAudit the isAudit to set + */ + public void setIsAudit(Integer isAudit) { + this.isAudit = isAudit; + } + /** + * creatorId + * @return creatorId + */ + + public Integer getCreatorId() { + return creatorId; + } + /** + * @param creatorId the creatorId to set + */ + public void setCreatorId(Integer creatorId) { + this.creatorId = creatorId; + } + /** + * createTime + * @return createTime + */ + + public Date getCreateTime() { + return createTime; + } + /** + * @param createTime the createTime to set + */ + public void setCreateTime(Date createTime) { + this.createTime = createTime; + } + /** + * editorId + * @return editorId + */ + + public Integer getEditorId() { + return editorId; + } + /** + * @param editorId the editorId to set + */ + public void setEditorId(Integer editorId) { + this.editorId = editorId; + } + /** + * editTime + * @return editTime + */ + + public Date getEditTime() { + return editTime; + } + /** + * @param editTime the editTime to set + */ + public void setEditTime(Date editTime) { + this.editTime = editTime; + } + /** + * auditorId + * @return auditorId + */ + + public Integer getAuditorId() { + return auditorId; + } + /** + * @param auditorId the auditorId to set + */ + public void setAuditorId(Integer auditorId) { + this.auditorId = auditorId; + } + /** + * auditTime + * @return auditTime + */ + + public Date getAuditTime() { + return auditTime; + } + /** + * @param auditTime the auditTime to set + */ + public void setAuditTime(Date auditTime) { + this.auditTime = auditTime; + } + /** + * serviceId + * @return serviceId + */ + + public Integer getServiceId() { + return serviceId; + } + /** + * @param serviceId the serviceId to set + */ + public void setServiceId(Integer serviceId) { + this.serviceId = serviceId; + } + /** + * requestId + * @return requestId + */ + + public Integer getRequestId() { + return requestId; + } + /** + * @param requestId the requestId to set + */ + public void setRequestId(Integer requestId) { + this.requestId = requestId; + } + /** + * compileId + * @return compileId + */ + +// public Integer getCompileId() { +// return compileId; +// } +// /** +// * @param compileId the compileId to set +// */ +// public void setCompileId(Integer compileId) { +// this.compileId = compileId; +// } + /** + * isAreaEffective + * @return isAreaEffective + */ + + public Integer getIsAreaEffective() { + return isAreaEffective; + } + /** + * @param isAreaEffective the isAreaEffective to set + */ + public void setIsAreaEffective(Integer isAreaEffective) { + this.isAreaEffective = isAreaEffective; + } + /** + * classify + * @return classify + */ + + public String getClassify() { + return classify; + } + /** + * @param classify the classify to set + */ + public void setClassify(String classify) { + this.classify = classify; + } + /** + * attribute + * @return attribute + */ + + public String getAttribute() { + return attribute; + } + /** + * @param attribute the attribute to set + */ + public void setAttribute(String attribute) { + this.attribute = attribute; + } + /** + * lable + * @return lable + */ + + public String getLable() { + return lable; + } + /** + * @param lable the lable to set + */ + public void setLable(String lable) { + this.lable = lable; + } + /** + * areaEffectiveIds + * @return areaEffectiveIds + */ + + public String getAreaEffectiveIds() { + return areaEffectiveIds; + } + /** + * @param areaEffectiveIds the areaEffectiveIds to set + */ + public void setAreaEffectiveIds(String areaEffectiveIds) { + this.areaEffectiveIds = areaEffectiveIds; + } + + + +} diff --git a/src/main/java/com/nis/domain/configuration/BaseIpCfg.java b/src/main/java/com/nis/domain/configuration/BaseIpCfg.java new file mode 100644 index 000000000..d79f51ee1 --- /dev/null +++ b/src/main/java/com/nis/domain/configuration/BaseIpCfg.java @@ -0,0 +1,278 @@ +/** + *@Title: BaseIpConfig.java + *@Package com.nis.domain.restful + *@Description TODO + *@author dell + *@date 2018年2月5日 下午5:02:24 + *@version 版本号 + */ +package com.nis.domain.configuration; + +import org.apache.commons.lang3.StringUtils; + +/** + * @ClassName: BaseIpConfig.java + * @Description: 基础IP配置 + * @author (dell) + * @date 2018年2月5日 下午5:02:24 + * @version V1.0 + */ +public class BaseIpCfg extends BaseCfg { + + /** + * @Fields serialVersionUID:TODO(用一句话描述这个变量表示什么) + * + * @since 1.0.0 + */ + + private static final long serialVersionUID = -1939538118388300002L; + /** + * ip类型 + */ + protected Integer ipType; + /** + * 源IP地址 + */ + protected String srcIp ="0.0.0.0"; + /** + * 源地址掩码 + */ + protected String srcIpMask ; + /** + * 源端口 + */ + protected String srcPort ; + /** + * 源端口掩码 + */ + protected String srcPortMask = "65535" ; + /** + * 目的IP地址 + */ + protected String dstIp = "0.0.0.0" ; + /** + * 目的地址掩码 + */ + protected String dstIpMask ; + /** + * 目的端口 + */ + protected String dstPort ; + /** + * 目的端口掩码 + */ + protected String dstPortMask = "65535"; + /** + * 方向 + */ + protected Integer direction = 0; + /** + * 方向 + */ + protected Integer protocol ; + /** + * 协议ID + */ + protected Integer protocolId ; + /** + * 编译id + */ + protected Integer compileId ; + /** + * ipType + * @return ipType + */ + + public Integer getIpType() { + return ipType; + } + /** + * @param ipType the ipType to set + */ + public void setIpType(Integer ipType) { + this.ipType = ipType; + } + /** + * srcIp + * @return srcIp + */ + + public String getSrcIp() { + return srcIp; + } + /** + * @param srcIp the srcIp to set + */ + public void setSrcIp(String srcIp) { + this.srcIp = srcIp; + } + /** + * srcIpMask + * @return srcIpMask + */ + + public String getSrcIpMask() { + if(!StringUtils.isBlank(srcIpMask)) + return srcIpMask; + else if(4==this.ipType) + return "255.255.255.255"; + else if(6==this.ipType) + return "FFFF:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF"; + else + return srcIpMask; + } + /** + * @param srcIpMask the srcIpMask to set + */ + public void setSrcIpMask(String srcIpMask) { + this.srcIpMask = srcIpMask; + } + /** + * srcPort + * @return srcPort + */ + + public String getSrcPort() { + return srcPort; + } + /** + * @param srcPort the srcPort to set + */ + public void setSrcPort(String srcPort) { + this.srcPort = srcPort; + } + /** + * srcPortMask + * @return srcPortMask + */ + + public String getSrcPortMask() { + return srcPortMask; + } + /** + * @param srcPortMask the srcPortMask to set + */ + public void setSrcPortMask(String srcPortMask) { + this.srcPortMask = srcPortMask; + } + /** + * dstIp + * @return dstIp + */ + + public String getDstIp() { + return dstIp; + } + /** + * @param dstIp the dstIp to set + */ + public void setDstIp(String dstIp) { + this.dstIp = dstIp; + } + /** + * dstIpMask + * @return dstIpMask + */ + + public String getDstIpMask() { + if(!StringUtils.isBlank(dstIpMask)) + return dstIpMask; + else if(4==this.ipType) + return "255.255.255.255"; + else if(6==this.ipType) + return "FFFF:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF"; + else + return dstIpMask; + } + /** + * @param dstIpMask the dstIpMask to set + */ + public void setDstIpMask(String dstIpMask) { + this.dstIpMask = dstIpMask; + } + /** + * dstPort + * @return dstPort + */ + + public String getDstPort() { + return dstPort; + } + /** + * @param dstPort the dstPort to set + */ + public void setDstPort(String dstPort) { + this.dstPort = dstPort; + } + /** + * dstPortMask + * @return dstPortMask + */ + + public String getDstPortMask() { + return dstPortMask; + } + /** + * @param dstPortMask the dstPortMask to set + */ + public void setDstPortMask(String dstPortMask) { + this.dstPortMask = dstPortMask; + } + /** + * direction + * @return direction + */ + + public Integer getDirection() { + return direction; + } + /** + * @param direction the direction to set + */ + public void setDirection(Integer direction) { + this.direction = direction; + } + /** + * protocol + * @return protocol + */ + + public Integer getProtocol() { + return protocol; + } + /** + * @param protocol the protocol to set + */ + public void setProtocol(Integer protocol) { + this.protocol = protocol; + } + /** + * protocolId + * @return protocolId + */ + + public Integer getProtocolId() { + return protocolId; + } + /** + * @param protocolId the protocolId to set + */ + public void setProtocolId(Integer protocolId) { + this.protocolId = protocolId; + } + /** + * compileId + * @return compileId + */ + + public Integer getCompileId() { + return compileId; + } + /** + * @param compileId the compileId to set + */ + public void setCompileId(Integer compileId) { + this.compileId = compileId; + } + +} diff --git a/src/main/java/com/nis/domain/configuration/BaseStringCfg.java b/src/main/java/com/nis/domain/configuration/BaseStringCfg.java new file mode 100644 index 000000000..2f492fcba --- /dev/null +++ b/src/main/java/com/nis/domain/configuration/BaseStringCfg.java @@ -0,0 +1,104 @@ +/** + *@Title: BaseStringConfig.java + *@Package com.nis.domain.restful + *@Description TODO + *@author dell + *@date 2018年2月5日 下午5:26:02 + *@version 版本号 + */ +package com.nis.domain.configuration; + +/** + * @ClassName: BaseStringConfig.java + * @Description: 基础字符串类配置 + * @author (dell) + * @date 2018年2月5日 下午5:26:02 + * @version V1.0 + */ +public class BaseStringCfg extends BaseCfg { + + /** + * @Fields serialVersionUID:TODO(用一句话描述这个变量表示什么) + * + * @since 1.0.0 + */ + + private static final long serialVersionUID = -2040598274024301785L; + /** + * 配置关键字 + */ + protected String cfgKeywords; + /** + * cfgKeywords + * @return cfgKeywords + */ + + public String getCfgKeywords() { + return cfgKeywords; + } + /** + * @param cfgKeywords the cfgKeywords to set + */ + public void setCfgKeywords(String cfgKeywords) { + this.cfgKeywords = cfgKeywords; + } + /** + * 编译id + */ + protected Integer compile_id ; + /** + * 表达式类型 + */ + protected Integer exprType ; + /** + * 匹配方式 + */ + protected Integer matchMethod ; + /** + * 是否hex二进制 + */ + protected Integer isHexbin = 0; + + /** + * exprType + * @return exprType + */ + public Integer getExprType() { + return exprType; + } + /** + * @param exprType the exprType to set + */ + public void setExprType(Integer exprType) { + this.exprType = exprType; + } + /** + * matchMethod + * @return matchMethod + */ + + public Integer getMatchMethod() { + return matchMethod; + } + /** + * @param matchMethod the matchMethod to set + */ + public void setMatchMethod(Integer matchMethod) { + this.matchMethod = matchMethod; + } + /** + * isHexbin + * @return isHexbin + */ + + public Integer getIsHexbin() { + return isHexbin; + } + /** + * @param isHexbin the isHexbin to set + */ + public void setIsHexbin(Integer isHexbin) { + this.isHexbin = isHexbin; + } + +} diff --git a/src/main/java/com/nis/domain/configuration/ByteFeaturesCfg.java b/src/main/java/com/nis/domain/configuration/ByteFeaturesCfg.java new file mode 100644 index 000000000..2e663a13b --- /dev/null +++ b/src/main/java/com/nis/domain/configuration/ByteFeaturesCfg.java @@ -0,0 +1,65 @@ +/** + *@Title: ByteFeaturesConfig.java + *@Package com.nis.domain.restful + *@Description TODO + *@author dell + *@date 2018年2月6日 上午10:36:22 + *@version 版本号 + */ +package com.nis.domain.configuration; + +/** + * @ClassName: ByteFeaturesConfig.java + * @Description: TODO + * @author (dell) + * @date 2018年2月6日 上午10:36:22 + * @version V1.0 + */ +public class ByteFeaturesCfg extends BaseStringCfg { + + /** + * @Fields serialVersionUID:TODO(用一句话描述这个变量表示什么) + * + * @since 1.0.0 + */ + + private static final long serialVersionUID = 7790855206924149377L; + /** + * 字节特征 + */ + private String cfgKeywords; + /** + * cfgKeywords + * @return cfgKeywords + */ + + public String getCfgKeywords() { + return cfgKeywords; + } + /** + * @param cfgKeywords the cfgKeywords to set + */ + public void setCfgKeywords(String cfgKeywords) { + this.cfgKeywords = cfgKeywords; + } + /* (non-Javadoc) + * @see com.nis.domain.restful.BaseStringConfig#getExprType() + */ + @Override + public Integer getExprType() { + if(this.exprType==null) + return 3; + else + return this.exprType; + } + /* (non-Javadoc) + * @see com.nis.domain.restful.BaseStringConfig#getMatchMethod() + */ + @Override + public Integer getMatchMethod() { + if(this.matchMethod==null) + return 0; + else + return this.matchMethod; + } +} diff --git a/src/main/java/com/nis/domain/configuration/ComplexkeywordCfg.java b/src/main/java/com/nis/domain/configuration/ComplexkeywordCfg.java new file mode 100644 index 000000000..df018e5d7 --- /dev/null +++ b/src/main/java/com/nis/domain/configuration/ComplexkeywordCfg.java @@ -0,0 +1,144 @@ +/** + *@Title: BaseEnhancedStringConfig.java + *@Package com.nis.domain.restful + *@Description TODO + *@author dell + *@date 2018年2月5日 下午5:42:52 + *@version 版本号 + */ +package com.nis.domain.configuration; + +/** + * @ClassName: BaseEnhancedStringConfig.java + * @Description: 基础增强字符串类配置 + * @author (wx) + * @date 2018年2月5日 下午5:42:52 + * @version V1.0 + */ +public class ComplexkeywordCfg extends BaseCfg{ + + /** + * @Fields serialVersionUID:TODO(用一句话描述这个变量表示什么) + * + * @since 1.0.0 + */ + + private static final long serialVersionUID = -1417089397345367232L; + /** + * 匹配区域 + */ + protected String district ; + /** + * 关键字 + */ + protected String keywords; + /** + * 编译id + */ + protected Integer compileId; + /** + * 表达式类型 + */ + protected Integer exprType ; + /** + * 匹配方式 + */ + protected Integer matchMethod ; + /** + * 是否hex二进制 + */ + protected Integer isHexbin = 0 ; + /** + * district + * @return district + */ + + public String getDistrict() { + return district; + } + /** + * @param district the district to set + */ + public void setDistrict(String district) { + this.district = district; + } + /** + * keywords + * @return keywords + */ + + public String getKeywords() { + return keywords; + } + /** + * @param keywords the keywords to set + */ + public void setKeywords(String keywords) { + this.keywords = keywords; + } + /** + * compileId + * @return compileId + */ + + public Integer getCompileId() { + return compileId; + } + /** + * @param compileId the compileId to set + */ + public void setCompileId(Integer compileId) { + this.compileId = compileId; + } + /** + * exprType + * 继承此类的类会覆盖该方法写自己的缺省值 + * @return exprType + */ + + public Integer getExprType() { + if(this.exprType==null) + return 0; + else + return this.exprType; + } + /** + * @param exprType the exprType to set + */ + public void setExprType(Integer exprType) { + this.exprType = exprType; + } + /** + * matchMethod + * 继承此类的类会覆盖该方法写自己的缺省值 + * @return matchMethod + */ + + public Integer getMatchMethod() { + if(this.matchMethod==null) + return 3; + else + return this.matchMethod; + } + /** + * @param matchMethod the matchMethod to set + */ + public void setMatchMethod(Integer matchMethod) { + this.matchMethod = matchMethod; + } + /** + * isHexbin + * @return isHexbin + */ + + public Integer getIsHexbin() { + return isHexbin; + } + /** + * @param isHexbin the isHexbin to set + */ + public void setIsHexbin(Integer isHexbin) { + this.isHexbin = isHexbin; + } + +} diff --git a/src/main/java/com/nis/domain/configuration/DnsDomainCfg.java b/src/main/java/com/nis/domain/configuration/DnsDomainCfg.java new file mode 100644 index 000000000..12ec8b6ba --- /dev/null +++ b/src/main/java/com/nis/domain/configuration/DnsDomainCfg.java @@ -0,0 +1,67 @@ +/** + *@Title: DnsDomainConfig.java + *@Package com.nis.domain.restful + *@Description TODO + *@author dell + *@date 2018年2月5日 下午3:34:14 + *@version 版本号 + */ +package com.nis.domain.configuration; + +import org.apache.commons.lang.StringUtils; + +/** + * @ClassName: DnsDomainConfig.java + * @Description: TODO + * @author (dell) + * @date 2018年2月5日 下午3:34:14 + * @version V1.0 + */ +public class DnsDomainCfg extends ComplexkeywordCfg { + + /** + * @Fields serialVersionUID:TODO(用一句话描述这个变量表示什么) + * + * @since 1.0.0 + */ + + private static final long serialVersionUID = -2761078174512000577L; + + /** + * district + * @return district + */ + + public String getDistrict() { + if(StringUtils.isBlank(district)) + return "QNAME"; + else + return district; + } + /** + * @param district the district to set + */ + public void setDistrict(String district) { + this.district = district; + } + /* (non-Javadoc) + * @see com.nis.domain.restful.BaseStringConfig#getExprType() + */ + @Override + public Integer getExprType() { + if(this.exprType==null) + return 0; + else + return this.exprType; + } + /* (non-Javadoc) + * @see com.nis.domain.restful.BaseStringConfig#getMatchMethod() + */ + @Override + public Integer getMatchMethod() { + if(this.matchMethod==null) + return 0; + else + return this.matchMethod; + } +} diff --git a/src/main/java/com/nis/domain/configuration/DnsIpCfg.java b/src/main/java/com/nis/domain/configuration/DnsIpCfg.java new file mode 100644 index 000000000..e391f3374 --- /dev/null +++ b/src/main/java/com/nis/domain/configuration/DnsIpCfg.java @@ -0,0 +1,241 @@ +/** + *@Title: DnsIpConfig.java + *@Package com.nis.domain.restful + *@Description TODO + *@author dell + *@date 2018年2月5日 下午2:57:17 + *@version 版本号 + */ +package com.nis.domain.configuration; + +import org.apache.commons.lang3.StringUtils; + +/** + * @ClassName: DnsIpConfig.java + * @Description: TODO + * @author (dell) + * @date 2018年2月5日 下午2:57:17 + * @version V1.0 + */ +public class DnsIpCfg extends BaseCfg { + + /** + * @Fields serialVersionUID:TODO(用一句话描述这个变量表示什么) + * + * @since 1.0.0 + */ + + private static final long serialVersionUID = -4476190616323264876L; + /** + * ip类型 + */ + private Integer ipType; + /** + * 源IP地址 + */ + private String srcIp ="0.0.0.0"; + /** + * 源地址掩码 + */ + private String srcIpMask ; + /** + * 源端口 + */ + private String srcPort ; + /** + * 源端口掩码 + */ + private String srcPortMask = "65535" ; + /** + * 目的IP地址 + */ + private String dstIp = "0.0.0.0" ; + /** + * 目的地址掩码 + */ + private String dstIpMask ; + /** + * 目的端口 + */ + private String dstPort ; + /** + * 目的端口掩码 + */ + private String dstPortMask = "65535"; + /** + * 方向 + */ + private Integer direction = 0; + /** + * 方向 + */ + private Integer protocol ; + /** + * ipType + * @return ipType + */ + + public Integer getIpType() { + return ipType; + } + /** + * @param ipType the ipType to set + */ + public void setIpType(Integer ipType) { + this.ipType = ipType; + } + /** + * srcIp + * @return srcIp + */ + + public String getSrcIp() { + return srcIp; + } + /** + * @param srcIp the srcIp to set + */ + public void setSrcIp(String srcIp) { + this.srcIp = srcIp; + } + /** + * srcIpMask + * @return srcIpMask + */ + + public String getSrcIpMask() { + if(!StringUtils.isBlank(srcIpMask)) + return srcIpMask; + else if(4==this.ipType) + return "255.255.255.255"; + else if(6==this.ipType) + return "FFFF:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF"; + else + return srcIpMask; + } + /** + * @param srcIpMask the srcIpMask to set + */ + public void setSrcIpMask(String srcIpMask) { + this.srcIpMask = srcIpMask; + } + /** + * srcPort + * @return srcPort + */ + + public String getSrcPort() { + return srcPort; + } + /** + * @param srcPort the srcPort to set + */ + public void setSrcPort(String srcPort) { + this.srcPort = srcPort; + } + /** + * srcPortMask + * @return srcPortMask + */ + + public String getSrcPortMask() { + return srcPortMask; + } + /** + * @param srcPortMask the srcPortMask to set + */ + public void setSrcPortMask(String srcPortMask) { + this.srcPortMask = srcPortMask; + } + /** + * dstIp + * @return dstIp + */ + + public String getDstIp() { + return dstIp; + } + /** + * @param dstIp the dstIp to set + */ + public void setDstIp(String dstIp) { + this.dstIp = dstIp; + } + /** + * dstIpMask + * @return dstIpMask + */ + + public String getDstIpMask() { + if(!StringUtils.isBlank(dstIpMask)) + return dstIpMask; + else if(4==this.ipType) + return "255.255.255.255"; + else if(6==this.ipType) + return "FFFF:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF"; + else + return dstIpMask; + } + /** + * @param dstIpMask the dstIpMask to set + */ + public void setDstIpMask(String dstIpMask) { + this.dstIpMask = dstIpMask; + } + /** + * dstPort + * @return dstPort + */ + + public String getDstPort() { + return dstPort; + } + /** + * @param dstPort the dstPort to set + */ + public void setDstPort(String dstPort) { + this.dstPort = dstPort; + } + /** + * dstPortMask + * @return dstPortMask + */ + + public String getDstPortMask() { + return dstPortMask; + } + /** + * @param dstPortMask the dstPortMask to set + */ + public void setDstPortMask(String dstPortMask) { + this.dstPortMask = dstPortMask; + } + /** + * direction + * @return direction + */ + + public Integer getDirection() { + return direction; + } + /** + * @param direction the direction to set + */ + public void setDirection(Integer direction) { + this.direction = direction; + } + /** + * protocol + * @return protocol + */ + + public Integer getProtocol() { + return protocol; + } + /** + * @param protocol the protocol to set + */ + public void setProtocol(Integer protocol) { + this.protocol = protocol; + } +} diff --git a/src/main/java/com/nis/domain/configuration/FtpAddrCfg.java b/src/main/java/com/nis/domain/configuration/FtpAddrCfg.java new file mode 100644 index 000000000..63dce8131 --- /dev/null +++ b/src/main/java/com/nis/domain/configuration/FtpAddrCfg.java @@ -0,0 +1,66 @@ +/** + *@Title: FtpAddrConfig.java + *@Package com.nis.domain.restful + *@Description TODO + *@author dell + *@date 2018年2月6日 上午8:18:55 + *@version 版本号 + */ +package com.nis.domain.configuration; + +/** + * @ClassName: FtpAddrConfig.java + * @Description: TODO + * @author (dell) + * @date 2018年2月6日 上午8:18:55 + * @version V1.0 + */ +public class FtpAddrCfg extends BaseStringCfg{ + + /** + * @Fields serialVersionUID:TODO(用一句话描述这个变量表示什么) + * + * @since 1.0.0 + */ + + private static final long serialVersionUID = -7252491991496038882L; + /** + * ftp地址 + */ + private String cfgKeywords; + + /** + * cfgKeywords + * @return cfgKeywords + */ + + public String getCfgKeywords() { + return cfgKeywords; + } + /** + * @param cfgKeywords the cfgKeywords to set + */ + public void setCfgKeywords(String cfgKeywords) { + this.cfgKeywords = cfgKeywords; + } + /* (non-Javadoc) + * @see com.nis.domain.restful.BaseStringConfig#getExprType() + */ + @Override + public Integer getExprType() { + if(this.exprType==null) + return 0; + else + return this.exprType; + } + /* (non-Javadoc) + * @see com.nis.domain.restful.BaseStringConfig#getMatchMethod() + */ + @Override + public Integer getMatchMethod() { + if(this.matchMethod==null) + return 0; + else + return this.matchMethod; + } +} diff --git a/src/main/java/com/nis/domain/configuration/FtpFileContentCfg.java b/src/main/java/com/nis/domain/configuration/FtpFileContentCfg.java new file mode 100644 index 000000000..ffea8777f --- /dev/null +++ b/src/main/java/com/nis/domain/configuration/FtpFileContentCfg.java @@ -0,0 +1,55 @@ +/** + *@Title: FtpFileContentConfig.java + *@Package com.nis.domain.restful + *@Description TODO + *@author dell + *@date 2018年2月6日 上午8:27:21 + *@version 版本号 + */ +package com.nis.domain.configuration; + +/** + * @ClassName: FtpFileContentConfig.java + * @Description: TODO + * @author (dell) + * @date 2018年2月6日 上午8:27:21 + * @version V1.0 + */ +public class FtpFileContentCfg extends BaseStringCfg { + + /** + * @Fields serialVersionUID:TODO(用一句话描述这个变量表示什么) + * + * @since 1.0.0 + */ + + private static final long serialVersionUID = 7996351716704137873L; + /** + * 文件内容关键字 + */ + private String cfgKeyword; + /** + * cfgKeyword + * @return cfgKeyword + */ + + public String getCfgKeyword() { + return cfgKeyword; + } + /** + * @param cfgKeyword the cfgKeyword to set + */ + public void setCfgKeyword(String cfgKeyword) { + this.cfgKeyword = cfgKeyword; + } + /* (non-Javadoc) + * @see com.nis.domain.restful.BaseStringConfig#getMatchMethod() + */ + @Override + public Integer getMatchMethod() { + if(this.matchMethod==null) + return 0; + else + return this.matchMethod; + } +} diff --git a/src/main/java/com/nis/domain/configuration/FtpFileNameCfg.java b/src/main/java/com/nis/domain/configuration/FtpFileNameCfg.java new file mode 100644 index 000000000..d2bb16a18 --- /dev/null +++ b/src/main/java/com/nis/domain/configuration/FtpFileNameCfg.java @@ -0,0 +1,55 @@ +/** + *@Title: FtpFileNameConfig.java + *@Package com.nis.domain.restful + *@Description TODO + *@author dell + *@date 2018年2月6日 上午8:24:13 + *@version 版本号 + */ +package com.nis.domain.configuration; + +/** + * @ClassName: FtpFileNameConfig.java + * @Description: TODO + * @author (dell) + * @date 2018年2月6日 上午8:24:13 + * @version V1.0 + */ +public class FtpFileNameCfg extends BaseStringCfg { + + /** + * @Fields serialVersionUID:TODO(用一句话描述这个变量表示什么) + * + * @since 1.0.0 + */ + + private static final long serialVersionUID = -3947991086808399842L; + /** + * 文件名关键字 + */ + private String cfgKeywords; + /** + * cfgKeywords + * @return cfgKeywords + */ + + public String getCfgKeywords() { + return cfgKeywords; + } + /** + * @param cfgKeywords the cfgKeywords to set + */ + public void setCfgKeywords(String cfgKeywords) { + this.cfgKeywords = cfgKeywords; + } + /* (non-Javadoc) + * @see com.nis.domain.restful.BaseStringConfig#getMatchMethod() + */ + @Override + public Integer getMatchMethod() { + if(this.matchMethod==null) + return 0; + else + return this.matchMethod; + } +} diff --git a/src/main/java/com/nis/domain/configuration/FtpIpCfg.java b/src/main/java/com/nis/domain/configuration/FtpIpCfg.java new file mode 100644 index 000000000..e51db55a9 --- /dev/null +++ b/src/main/java/com/nis/domain/configuration/FtpIpCfg.java @@ -0,0 +1,27 @@ +/** + *@Title: FtpIpConfig.java + *@Package com.nis.domain.restful + *@Description TODO + *@author dell + *@date 2018年2月6日 上午8:29:26 + *@version 版本号 + */ +package com.nis.domain.configuration; + +/** + * @ClassName: FtpIpConfig.java + * @Description: TODO + * @author (dell) + * @date 2018年2月6日 上午8:29:26 + * @version V1.0 + */ +public class FtpIpCfg extends BaseIpCfg { + + /** + * @Fields serialVersionUID:TODO(用一句话描述这个变量表示什么) + * + * @since 1.0.0 + */ + + private static final long serialVersionUID = -7878447087396996553L; +} diff --git a/src/main/java/com/nis/domain/configuration/HttpBodyCfg.java b/src/main/java/com/nis/domain/configuration/HttpBodyCfg.java new file mode 100644 index 000000000..4dff677e0 --- /dev/null +++ b/src/main/java/com/nis/domain/configuration/HttpBodyCfg.java @@ -0,0 +1,55 @@ +/** + *@Title: HttpDomainConfig.java + *@Package com.nis.domain.restful + *@Description TODO + *@author dell + *@date 2018年2月5日 下午5:33:05 + *@version 版本号 + */ +package com.nis.domain.configuration; + +/** + * @ClassName: HttpDomainConfig.java + * @Description: TODO + * @author (dell) + * @date 2018年2月5日 下午5:33:05 + * @version V1.0 + */ +public class HttpBodyCfg extends BaseStringCfg { + + /** + * @Fields serialVersionUID:TODO(用一句话描述这个变量表示什么) + * + * @since 1.0.0 + */ + + private static final long serialVersionUID = 8231984530204284334L; + /** + * 关键字 + */ + private String cfgKeywords; + /** + * cfgKeywords + * @return cfgKeywords + */ + + public String getCfgKeywords() { + return cfgKeywords; + } + /** + * @param cfgKeywords the cfgKeywords to set + */ + public void setCfgKeywords(String cfgKeywords) { + this.cfgKeywords = cfgKeywords; + } + /* (non-Javadoc) + * @see com.nis.domain.restful.BaseStringConfig#getMatchMethod() + */ + @Override + public Integer getMatchMethod() { + if(this.matchMethod==null) + return 0; + else + return this.matchMethod; + } +} diff --git a/src/main/java/com/nis/domain/configuration/HttpDomainCfg.java b/src/main/java/com/nis/domain/configuration/HttpDomainCfg.java new file mode 100644 index 000000000..b6e531021 --- /dev/null +++ b/src/main/java/com/nis/domain/configuration/HttpDomainCfg.java @@ -0,0 +1,66 @@ +/** + *@Title: HttpDomainConfig.java + *@Package com.nis.domain.restful + *@Description TODO + *@author dell + *@date 2018年2月5日 下午5:33:05 + *@version 版本号 + */ +package com.nis.domain.configuration; + +/** + * @ClassName: HttpDomainConfig.java + * @Description: TODO + * @author (dell) + * @date 2018年2月5日 下午5:33:05 + * @version V1.0 + */ +public class HttpDomainCfg extends BaseStringCfg { + + /** + * @Fields serialVersionUID:TODO(用一句话描述这个变量表示什么) + * + * @since 1.0.0 + */ + + private static final long serialVersionUID = 8231984530204284334L; + /** + * 域名 + */ + private String cfgKeywords; + /** + * cfgKeywords + * @return cfgKeywords + */ + + public String getCfgKeywords() { + return cfgKeywords; + } + /** + * @param cfgKeywords the cfgKeywords to set + */ + public void setCfgKeywords(String cfgKeywords) { + this.cfgKeywords = cfgKeywords; + } + /* (non-Javadoc) + * @see com.nis.domain.restful.BaseStringConfig#getExprType() + */ + @Override + public Integer getExprType() { + if(this.exprType==null) + return 0; + else + return this.exprType; + } + /* (non-Javadoc) + * @see com.nis.domain.restful.BaseStringConfig#getMatchMethod() + */ + @Override + public Integer getMatchMethod() { + if(this.matchMethod==null) + return 3; + else + return this.matchMethod; + } + +} diff --git a/src/main/java/com/nis/domain/configuration/HttpIpCfg.java b/src/main/java/com/nis/domain/configuration/HttpIpCfg.java new file mode 100644 index 000000000..61a9c0fad --- /dev/null +++ b/src/main/java/com/nis/domain/configuration/HttpIpCfg.java @@ -0,0 +1,28 @@ +/** + *@Title: HttpIpConfig.java + *@Package com.nis.domain.restful + *@Description TODO + *@author dell + *@date 2018年2月5日 下午5:52:35 + *@version 版本号 + */ +package com.nis.domain.configuration; + +/** + * @ClassName: HttpIpConfig.java + * @Description: TODO + * @author (dell) + * @date 2018年2月5日 下午5:52:35 + * @version V1.0 + */ +public class HttpIpCfg extends BaseIpCfg { + + /** + * @Fields serialVersionUID:TODO(用一句话描述这个变量表示什么) + * + * @since 1.0.0 + */ + + private static final long serialVersionUID = -4652367183432063965L; + +} diff --git a/src/main/java/com/nis/domain/configuration/HttpReqHeadCfg.java b/src/main/java/com/nis/domain/configuration/HttpReqHeadCfg.java new file mode 100644 index 000000000..e5a6c0f72 --- /dev/null +++ b/src/main/java/com/nis/domain/configuration/HttpReqHeadCfg.java @@ -0,0 +1,47 @@ +/** + *@Title: HttpDomainConfig.java + *@Package com.nis.domain.restful + *@Description TODO + *@author dell + *@date 2018年2月5日 下午5:33:05 + *@version 版本号 + */ +package com.nis.domain.configuration; + +/** + * @ClassName: HttpDomainConfig.java + * @Description: TODO + * @author (dell) + * @date 2018年2月5日 下午5:33:05 + * @version V1.0 + */ +public class HttpReqHeadCfg extends ComplexkeywordCfg { + + /** + * @Fields serialVersionUID:TODO(用一句话描述这个变量表示什么) + * + * @since 1.0.0 + */ + + private static final long serialVersionUID = 8231984530204284334L; + /* (non-Javadoc) + * @see com.nis.domain.restful.BaseStringConfig#getExprType() + */ + @Override + public Integer getExprType() { + if(this.exprType==null) + return 0; + else + return this.exprType; + } + /* (non-Javadoc) + * @see com.nis.domain.restful.BaseStringConfig#getMatchMethod() + */ + @Override + public Integer getMatchMethod() { + if(this.matchMethod==null) + return 0; + else + return this.matchMethod; + } +} diff --git a/src/main/java/com/nis/domain/configuration/HttpResHeadCfg.java b/src/main/java/com/nis/domain/configuration/HttpResHeadCfg.java new file mode 100644 index 000000000..51d90f88c --- /dev/null +++ b/src/main/java/com/nis/domain/configuration/HttpResHeadCfg.java @@ -0,0 +1,47 @@ +/** + *@Title: HttpDomainConfig.java + *@Package com.nis.domain.restful + *@Description TODO + *@author dell + *@date 2018年2月5日 下午5:33:05 + *@version 版本号 + */ +package com.nis.domain.configuration; + +/** + * @ClassName: HttpDomainConfig.java + * @Description: TODO + * @author (dell) + * @date 2018年2月5日 下午5:33:05 + * @version V1.0 + */ +public class HttpResHeadCfg extends ComplexkeywordCfg { + + /** + * @Fields serialVersionUID:TODO(用一句话描述这个变量表示什么) + * + * @since 1.0.0 + */ + + private static final long serialVersionUID = 1306491838846197119L; + /* (non-Javadoc) + * @see com.nis.domain.restful.BaseStringConfig#getExprType() + */ + @Override + public Integer getExprType() { + if(this.exprType==null) + return 0; + else + return this.exprType; + } + /* (non-Javadoc) + * @see com.nis.domain.restful.BaseStringConfig#getMatchMethod() + */ + @Override + public Integer getMatchMethod() { + if(this.matchMethod==null) + return 0; + else + return this.matchMethod; + } +} diff --git a/src/main/java/com/nis/domain/configuration/HttpUrlCfg.java b/src/main/java/com/nis/domain/configuration/HttpUrlCfg.java new file mode 100644 index 000000000..d9e1458bf --- /dev/null +++ b/src/main/java/com/nis/domain/configuration/HttpUrlCfg.java @@ -0,0 +1,65 @@ +/** + *@Title: HttpDomainConfig.java + *@Package com.nis.domain.restful + *@Description TODO + *@author dell + *@date 2018年2月5日 下午5:33:05 + *@version 版本号 + */ +package com.nis.domain.configuration; + +/** + * @ClassName: HttpDomainConfig.java + * @Description: TODO + * @author (dell) + * @date 2018年2月5日 下午5:33:05 + * @version V1.0 + */ +public class HttpUrlCfg extends BaseStringCfg { + + /** + * @Fields serialVersionUID:TODO(用一句话描述这个变量表示什么) + * + * @since 1.0.0 + */ + + private static final long serialVersionUID = 8231984530204284334L; + /** + * URL + */ + private String cfgKeywords; + /** + * cfgKeywords + * @return cfgKeywords + */ + + public String getCfgKeywords() { + return cfgKeywords; + } + /** + * @param cfgKeywords the cfgKeywords to set + */ + public void setCfgKeywords(String cfgKeywords) { + this.cfgKeywords = cfgKeywords; + } + /* (non-Javadoc) + * @see com.nis.domain.restful.BaseStringConfig#getExprType() + */ + @Override + public Integer getExprType() { + if(this.exprType==null) + return 0; + else + return this.exprType; + } + /* (non-Javadoc) + * @see com.nis.domain.restful.BaseStringConfig#getMatchMethod() + */ + @Override + public Integer getMatchMethod() { + if(this.matchMethod==null) + return 0; + else + return this.matchMethod; + } +} diff --git a/src/main/java/com/nis/domain/configuration/HttpsUrlCfg.java b/src/main/java/com/nis/domain/configuration/HttpsUrlCfg.java new file mode 100644 index 000000000..086e4c293 --- /dev/null +++ b/src/main/java/com/nis/domain/configuration/HttpsUrlCfg.java @@ -0,0 +1,65 @@ +/** + *@Title: HttpsUrlConfig.java + *@Package com.nis.domain.restful + *@Description TODO + *@author dell + *@date 2018年2月6日 上午10:28:42 + *@version 版本号 + */ +package com.nis.domain.configuration; + +/** + * @ClassName: HttpsUrlConfig.java + * @Description: TODO + * @author (dell) + * @date 2018年2月6日 上午10:28:42 + * @version V1.0 + */ +public class HttpsUrlCfg extends BaseStringCfg { + + /** + * @Fields serialVersionUID:TODO(用一句话描述这个变量表示什么) + * + * @since 1.0.0 + */ + + private static final long serialVersionUID = -4633007108227664383L; + /** + * url地址 + */ + private String cfgKeywords; + /** + * cfgKeywords + * @return cfgKeywords + */ + + public String getCfgKeywords() { + return cfgKeywords; + } + /** + * @param cfgKeywords the cfgKeywords to set + */ + public void setCfgKeywords(String cfgKeywords) { + this.cfgKeywords = cfgKeywords; + } + /* (non-Javadoc) + * @see com.nis.domain.restful.BaseStringConfig#getExprType() + */ + @Override + public Integer getExprType() { + if(this.exprType==null) + return 0; + else + return this.exprType; + } + /* (non-Javadoc) + * @see com.nis.domain.restful.BaseStringConfig#getMatchMethod() + */ + @Override + public Integer getMatchMethod() { + if(this.matchMethod==null) + return 0; + else + return this.matchMethod; + } +} diff --git a/src/main/java/com/nis/domain/configuration/IpPortCfg.java b/src/main/java/com/nis/domain/configuration/IpPortCfg.java new file mode 100644 index 000000000..c22384a02 --- /dev/null +++ b/src/main/java/com/nis/domain/configuration/IpPortCfg.java @@ -0,0 +1,64 @@ +/** + *@Title: IpPortConfig.java + *@Package com.nis.domain.restful + *@Description TODO + *@author dell + *@date 2018年2月5日 下午3:48:25 + *@version 版本号 + */ +package com.nis.domain.configuration; + +/** + * @ClassName: IpPortConfig.java + * @Description: TODO + * @author (dell) + * @date 2018年2月5日 下午3:48:25 + * @version V1.0 + */ +public class IpPortCfg extends BaseCfg { + + /** + * @Fields serialVersionUID:TODO(用一句话描述这个变量表示什么) + * + * @since 1.0.0 + */ + + private static final long serialVersionUID = 4664942095843594575L; + /** + * 编译id + */ + private Integer compileId; + /** + * 协议ID + */ + private Integer protocolId=0; + /** + * compileId + * @return compileId + */ + + public Integer getCompileId() { + return compileId; + } + /** + * @param compileId the compileId to set + */ + public void setCompileId(Integer compileId) { + this.compileId = compileId; + } + /** + * protocolId + * @return protocolId + */ + + public Integer getProtocolId() { + return protocolId; + } + /** + * @param protocolId the protocolId to set + */ + public void setProtocolId(Integer protocolId) { + this.protocolId = protocolId; + } + +} diff --git a/src/main/java/com/nis/domain/configuration/L2tpIpCfg.java b/src/main/java/com/nis/domain/configuration/L2tpIpCfg.java new file mode 100644 index 000000000..c6b79a85d --- /dev/null +++ b/src/main/java/com/nis/domain/configuration/L2tpIpCfg.java @@ -0,0 +1,28 @@ +/** + *@Title: L2tpIpConfig.java + *@Package com.nis.domain.restful + *@Description TODO + *@author dell + *@date 2018年2月6日 上午8:30:46 + *@version 版本号 + */ +package com.nis.domain.configuration; + +/** + * @ClassName: L2tpIpConfig.java + * @Description: TODO + * @author (dell) + * @date 2018年2月6日 上午8:30:46 + * @version V1.0 + */ +public class L2tpIpCfg extends BaseIpCfg { + + /** + * @Fields serialVersionUID:TODO(用一句话描述这个变量表示什么) + * + * @since 1.0.0 + */ + + private static final long serialVersionUID = 2559118696091896747L; + +} diff --git a/src/main/java/com/nis/domain/configuration/L2tpUrlCfg.java b/src/main/java/com/nis/domain/configuration/L2tpUrlCfg.java new file mode 100644 index 000000000..2aa8f71b1 --- /dev/null +++ b/src/main/java/com/nis/domain/configuration/L2tpUrlCfg.java @@ -0,0 +1,62 @@ +/** + *@Title: L2tpUrlConfig.java + *@Package com.nis.domain.restful + *@Description TODO + *@author dell + *@date 2018年2月6日 上午8:42:42 + *@version 版本号 + */ +package com.nis.domain.configuration; + +/** + * @ClassName: L2tpUrlConfig.java + * @Description: TODO + * @author (dell) + * @date 2018年2月6日 上午8:42:42 + * @version V1.0 + */ +public class L2tpUrlCfg extends BaseStringCfg { + + /** + * @Fields serialVersionUID:TODO(用一句话描述这个变量表示什么) + * + * @since 1.0.0 + */ + + private static final long serialVersionUID = -5003009573787886287L; + private String cfgKeywords; + /** + * cfgKeywords + * @return cfgKeywords + */ + + public String getCfgKeywords() { + return cfgKeywords; + } + /** + * @param cfgKeywords the cfgKeywords to set + */ + public void setCfgKeywords(String cfgKeywords) { + this.cfgKeywords = cfgKeywords; + } + /* (non-Javadoc) + * @see com.nis.domain.restful.BaseStringConfig#getExprType() + */ + @Override + public Integer getExprType() { + if(this.exprType==null) + return 0; + else + return this.exprType; + } + /* (non-Javadoc) + * @see com.nis.domain.restful.BaseStringConfig#getMatchMethod() + */ + @Override + public Integer getMatchMethod() { + if(this.matchMethod==null) + return 0; + else + return this.matchMethod; + } +} diff --git a/src/main/java/com/nis/domain/configuration/MailAttachContentCfg.java b/src/main/java/com/nis/domain/configuration/MailAttachContentCfg.java new file mode 100644 index 000000000..af43607f7 --- /dev/null +++ b/src/main/java/com/nis/domain/configuration/MailAttachContentCfg.java @@ -0,0 +1,59 @@ +/** + *@Title: MailAttachContentConfig.java + *@Package com.nis.domain.restful + *@Description TODO + *@author dell + *@date 2018年2月5日 下午6:40:26 + *@version 版本号 + */ +package com.nis.domain.configuration; + +import org.apache.commons.lang3.StringUtils; + +/** + * @ClassName: MailAttachContentConfig.java + * @Description: TODO + * @author (dell) + * @date 2018年2月5日 下午6:40:26 + * @version V1.0 + */ +public class MailAttachContentCfg extends ComplexkeywordCfg { + + /** + * @Fields serialVersionUID:TODO(用一句话描述这个变量表示什么) + * + * @since 1.0.0 + */ + + private static final long serialVersionUID = -5535627006599408223L; + /* (non-Javadoc) + * @see com.nis.domain.restful.BaseEnhancedStringConfig#getDistrict() + */ + @Override + public String getDistrict() { + if(StringUtils.isBlank(this.district)) + return "AttachContent"; + else + return this.district; + } + /* (non-Javadoc) + * @see com.nis.domain.restful.BaseStringConfig#getExprType() + */ + @Override + public Integer getExprType() { + if(this.exprType==null) + return 0; + else + return this.exprType; + } + /* (non-Javadoc) + * @see com.nis.domain.restful.BaseStringConfig#getMatchMethod() + */ + @Override + public Integer getMatchMethod() { + if(this.matchMethod==null) + return 0; + else + return this.matchMethod; + } +} diff --git a/src/main/java/com/nis/domain/configuration/MailAttachNameCfg.java b/src/main/java/com/nis/domain/configuration/MailAttachNameCfg.java new file mode 100644 index 000000000..28d9d2ac3 --- /dev/null +++ b/src/main/java/com/nis/domain/configuration/MailAttachNameCfg.java @@ -0,0 +1,59 @@ +/** + *@Title: MailAttachNameConfig.java + *@Package com.nis.domain.restful + *@Description TODO + *@author dell + *@date 2018年2月5日 下午6:25:21 + *@version 版本号 + */ +package com.nis.domain.configuration; + +import org.apache.commons.lang3.StringUtils; + +/** + * @ClassName: MailAttachNameConfig.java + * @Description: TODO + * @author (dell) + * @date 2018年2月5日 下午6:25:21 + * @version V1.0 + */ +public class MailAttachNameCfg extends ComplexkeywordCfg { + + /** + * @Fields serialVersionUID:TODO(用一句话描述这个变量表示什么) + * + * @since 1.0.0 + */ + + private static final long serialVersionUID = 9067647371707152226L; + /* (non-Javadoc) + * @see com.nis.domain.restful.BaseEnhancedStringConfig#getDistrict() + */ + @Override + public String getDistrict() { + if(StringUtils.isBlank(this.district)) + return "AttachName"; + else + return this.district; + } + /* (non-Javadoc) + * @see com.nis.domain.restful.BaseStringConfig#getExprType() + */ + @Override + public Integer getExprType() { + if(this.exprType==null) + return 0; + else + return this.exprType; + } + /* (non-Javadoc) + * @see com.nis.domain.restful.BaseStringConfig#getMatchMethod() + */ + @Override + public Integer getMatchMethod() { + if(this.matchMethod==null) + return 0; + else + return this.matchMethod; + } +} diff --git a/src/main/java/com/nis/domain/configuration/MailContentCfg.java b/src/main/java/com/nis/domain/configuration/MailContentCfg.java new file mode 100644 index 000000000..4f057f866 --- /dev/null +++ b/src/main/java/com/nis/domain/configuration/MailContentCfg.java @@ -0,0 +1,59 @@ +/** + *@Title: MailContentConfig.java + *@Package com.nis.domain.restful + *@Description TODO + *@author dell + *@date 2018年2月5日 下午6:23:41 + *@version 版本号 + */ +package com.nis.domain.configuration; + +import org.apache.commons.lang3.StringUtils; + +/** + * @ClassName: MailContentConfig.java + * @Description: TODO + * @author (dell) + * @date 2018年2月5日 下午6:23:41 + * @version V1.0 + */ +public class MailContentCfg extends ComplexkeywordCfg{ + + /** + * @Fields serialVersionUID:TODO(用一句话描述这个变量表示什么) + * + * @since 1.0.0 + */ + + private static final long serialVersionUID = -4257845942210782532L; + /* (non-Javadoc) + * @see com.nis.domain.restful.BaseEnhancedStringConfig#getDistrict() + */ + @Override + public String getDistrict() { + if(StringUtils.isBlank(this.district)) + return "Content"; + else + return this.district; + } + /* (non-Javadoc) + * @see com.nis.domain.restful.BaseStringConfig#getExprType() + */ + @Override + public Integer getExprType() { + if(this.exprType==null) + return 0; + else + return this.exprType; + } + /* (non-Javadoc) + * @see com.nis.domain.restful.BaseStringConfig#getMatchMethod() + */ + @Override + public Integer getMatchMethod() { + if(this.matchMethod==null) + return 0; + else + return this.matchMethod; + } +} diff --git a/src/main/java/com/nis/domain/configuration/MailFromCfg.java b/src/main/java/com/nis/domain/configuration/MailFromCfg.java new file mode 100644 index 000000000..25abe53cd --- /dev/null +++ b/src/main/java/com/nis/domain/configuration/MailFromCfg.java @@ -0,0 +1,60 @@ +/** + *@Title: MailFromConfig.java + *@Package com.nis.domain.restful + *@Description TODO + *@author dell + *@date 2018年2月5日 下午5:58:45 + *@version 版本号 + */ +package com.nis.domain.configuration; + +import org.apache.commons.lang.StringUtils; + +/** + * @ClassName: MailFromConfig.java + * @Description: TODO + * @author (dell) + * @date 2018年2月5日 下午5:58:45 + * @version V1.0 + */ +public class MailFromCfg extends ComplexkeywordCfg { + + /** + * @Fields serialVersionUID:TODO(用一句话描述这个变量表示什么) + * + * @since 1.0.0 + */ + + private static final long serialVersionUID = 7605303118334439422L; + + /* (non-Javadoc) + * @see com.nis.domain.restful.BaseEnhancedStringConfig#getDistrict() + */ + @Override + public String getDistrict() { + if(StringUtils.isBlank(this.district)) + return "From"; + else + return this.district; + } + /* (non-Javadoc) + * @see com.nis.domain.restful.BaseStringConfig#getExprType() + */ + @Override + public Integer getExprType() { + if(this.exprType==null) + return 0; + else + return this.exprType; + } + /* (non-Javadoc) + * @see com.nis.domain.restful.BaseStringConfig#getMatchMethod() + */ + @Override + public Integer getMatchMethod() { + if(this.matchMethod==null) + return 0; + else + return this.matchMethod; + } +} diff --git a/src/main/java/com/nis/domain/configuration/MailIpCfg.java b/src/main/java/com/nis/domain/configuration/MailIpCfg.java new file mode 100644 index 000000000..89245eb9f --- /dev/null +++ b/src/main/java/com/nis/domain/configuration/MailIpCfg.java @@ -0,0 +1,28 @@ +/** + *@Title: MailIpConfig.java + *@Package com.nis.domain.restful + *@Description TODO + *@author dell + *@date 2018年2月5日 下午6:42:07 + *@version 版本号 + */ +package com.nis.domain.configuration; + +/** + * @ClassName: MailIpConfig.java + * @Description: TODO + * @author (dell) + * @date 2018年2月5日 下午6:42:07 + * @version V1.0 + */ +public class MailIpCfg extends BaseIpCfg { + + /** + * @Fields serialVersionUID:TODO(用一句话描述这个变量表示什么) + * + * @since 1.0.0 + */ + + private static final long serialVersionUID = 2358673955555645618L; + +} diff --git a/src/main/java/com/nis/domain/configuration/MailSubjectCfg.java b/src/main/java/com/nis/domain/configuration/MailSubjectCfg.java new file mode 100644 index 000000000..e2bb98837 --- /dev/null +++ b/src/main/java/com/nis/domain/configuration/MailSubjectCfg.java @@ -0,0 +1,49 @@ +/** + *@Title: MailSubjectConfig.java + *@Package com.nis.domain.restful + *@Description TODO + *@author dell + *@date 2018年2月5日 下午6:22:21 + *@version 版本号 + */ +package com.nis.domain.configuration; + +import org.apache.commons.lang3.StringUtils; + +/** + * @ClassName: MailSubjectConfig.java + * @Description: TODO + * @author (dell) + * @date 2018年2月5日 下午6:22:21 + * @version V1.0 + */ +public class MailSubjectCfg extends ComplexkeywordCfg { + + /** + * @Fields serialVersionUID:TODO(用一句话描述这个变量表示什么) + * + * @since 1.0.0 + */ + + private static final long serialVersionUID = -547690498444330212L; + /* (non-Javadoc) + * @see com.nis.domain.restful.BaseEnhancedStringConfig#getDistrict() + */ + @Override + public String getDistrict() { + if(StringUtils.isBlank(this.district)) + return "Subject"; + else + return this.district; + } + /* (non-Javadoc) + * @see com.nis.domain.restful.BaseStringConfig#getExprType() + */ + @Override + public Integer getExprType() { + if(this.exprType==null) + return 3; + else + return this.exprType; + } +} diff --git a/src/main/java/com/nis/domain/configuration/MailToCfg.java b/src/main/java/com/nis/domain/configuration/MailToCfg.java new file mode 100644 index 000000000..52979e4bf --- /dev/null +++ b/src/main/java/com/nis/domain/configuration/MailToCfg.java @@ -0,0 +1,60 @@ +/** + *@Title: MailToConfig.java + *@Package com.nis.domain.restful + *@Description TODO + *@author dell + *@date 2018年2月5日 下午6:00:11 + *@version 版本号 + */ +package com.nis.domain.configuration; + +import org.apache.commons.lang3.StringUtils; + +/** + * @ClassName: MailToConfig.java + * @Description: TODO + * @author (dell) + * @date 2018年2月5日 下午6:00:11 + * @version V1.0 + */ +public class MailToCfg extends ComplexkeywordCfg { + + /** + * @Fields serialVersionUID:TODO(用一句话描述这个变量表示什么) + * + * @since 1.0.0 + */ + + private static final long serialVersionUID = -7755270610917876826L; + + /* (non-Javadoc) + * @see com.nis.domain.restful.BaseEnhancedStringConfig#getDistrict() + */ + @Override + public String getDistrict() { + if(StringUtils.isBlank(this.district)) + return "To"; + else + return this.district; + } + /* (non-Javadoc) + * @see com.nis.domain.restful.BaseStringConfig#getExprType() + */ + @Override + public Integer getExprType() { + if(this.exprType==null) + return 0; + else + return this.exprType; + } + /* (non-Javadoc) + * @see com.nis.domain.restful.BaseStringConfig#getMatchMethod() + */ + @Override + public Integer getMatchMethod() { + if(this.matchMethod==null) + return 3; + else + return this.matchMethod; + } +} diff --git a/src/main/java/com/nis/domain/configuration/MmsIpCfg.java b/src/main/java/com/nis/domain/configuration/MmsIpCfg.java new file mode 100644 index 000000000..39c73964a --- /dev/null +++ b/src/main/java/com/nis/domain/configuration/MmsIpCfg.java @@ -0,0 +1,28 @@ +/** + *@Title: MmsIpConfig.java + *@Package com.nis.domain.restful + *@Description TODO + *@author dell + *@date 2018年2月6日 上午9:47:49 + *@version 版本号 + */ +package com.nis.domain.configuration; + +/** + * @ClassName: MmsIpConfig.java + * @Description: TODO + * @author (dell) + * @date 2018年2月6日 上午9:47:49 + * @version V1.0 + */ +public class MmsIpCfg extends BaseIpCfg { + + /** + * @Fields serialVersionUID:TODO(用一句话描述这个变量表示什么) + * + * @since 1.0.0 + */ + + private static final long serialVersionUID = 321679812572480924L; + +} diff --git a/src/main/java/com/nis/domain/configuration/MmsUrlCfg.java b/src/main/java/com/nis/domain/configuration/MmsUrlCfg.java new file mode 100644 index 000000000..6fd1527f7 --- /dev/null +++ b/src/main/java/com/nis/domain/configuration/MmsUrlCfg.java @@ -0,0 +1,65 @@ +/** + *@Title: MmsUrlConfig.java + *@Package com.nis.domain.restful + *@Description TODO + *@author dell + *@date 2018年2月6日 上午9:48:36 + *@version 版本号 + */ +package com.nis.domain.configuration; + +/** + * @ClassName: MmsUrlConfig.java + * @Description: TODO + * @author (dell) + * @date 2018年2月6日 上午9:48:36 + * @version V1.0 + */ +public class MmsUrlCfg extends BaseStringCfg{ + + /** + * @Fields serialVersionUID:TODO(用一句话描述这个变量表示什么) + * + * @since 1.0.0 + */ + + private static final long serialVersionUID = 1057620148828322308L; + /** + * url地址 + */ + private String cfgKeywords; + /** + * cfgKeywords + * @return cfgKeywords + */ + + public String getCfgKeywords() { + return cfgKeywords; + } + /** + * @param cfgKeywords the cfgKeywords to set + */ + public void setCfgKeywords(String cfgKeywords) { + this.cfgKeywords = cfgKeywords; + } + /* (non-Javadoc) + * @see com.nis.domain.restful.BaseStringConfig#getExprType() + */ + @Override + public Integer getExprType() { + if(this.exprType==null) + return 0; + else + return this.exprType; + } + /* (non-Javadoc) + * @see com.nis.domain.restful.BaseStringConfig#getMatchMethod() + */ + @Override + public Integer getMatchMethod() { + if(this.matchMethod==null) + return 0; + else + return this.matchMethod; + } +} diff --git a/src/main/java/com/nis/domain/configuration/NumBoundaryCfg.java b/src/main/java/com/nis/domain/configuration/NumBoundaryCfg.java new file mode 100644 index 000000000..366337f40 --- /dev/null +++ b/src/main/java/com/nis/domain/configuration/NumBoundaryCfg.java @@ -0,0 +1,47 @@ +/** + *@Title: NumBoundaryConfig.java + *@Package com.nis.domain.restful + *@Description TODO + *@author dell + *@date 2018年2月6日 上午10:37:45 + *@version 版本号 + */ +package com.nis.domain.configuration; + +/** + * @ClassName: NumBoundaryConfig.java + * @Description: TODO + * @author (dell) + * @date 2018年2月6日 上午10:37:45 + * @version V1.0 + */ +public class NumBoundaryCfg extends BaseCfg { + + /** + * @Fields serialVersionUID:TODO(用一句话描述这个变量表示什么) + * + * @since 1.0.0 + */ + + private static final long serialVersionUID = -7655744880438502818L; + /** + * 数值下界 + */ + protected Long lowBounadry; + /** + * 数值上界 + */ + protected Long upBoundary; + /** + * 数值上界 + */ + protected Integer exprType = 3; + /** + * 数值上界 + */ + protected Integer matchMethod = 0; + /** + * 数值上界 + */ + protected Integer isHexbin = 0; +} diff --git a/src/main/java/com/nis/domain/configuration/OpenvpnIpCfg.java b/src/main/java/com/nis/domain/configuration/OpenvpnIpCfg.java new file mode 100644 index 000000000..edd9b556d --- /dev/null +++ b/src/main/java/com/nis/domain/configuration/OpenvpnIpCfg.java @@ -0,0 +1,28 @@ +/** + *@Title: OpenvpnIpConfig.java + *@Package com.nis.domain.restful + *@Description TODO + *@author dell + *@date 2018年2月6日 上午8:51:20 + *@version 版本号 + */ +package com.nis.domain.configuration; + +/** + * @ClassName: OpenvpnIpConfig.java + * @Description: TODO + * @author (dell) + * @date 2018年2月6日 上午8:51:20 + * @version V1.0 + */ +public class OpenvpnIpCfg extends BaseIpCfg { + + /** + * @Fields serialVersionUID:TODO(用一句话描述这个变量表示什么) + * + * @since 1.0.0 + */ + + private static final long serialVersionUID = 4279202465667553332L; + +} diff --git a/src/main/java/com/nis/domain/configuration/PptpIpCfg.java b/src/main/java/com/nis/domain/configuration/PptpIpCfg.java new file mode 100644 index 000000000..2e9c1cd8f --- /dev/null +++ b/src/main/java/com/nis/domain/configuration/PptpIpCfg.java @@ -0,0 +1,28 @@ +/** + *@Title: PptpIpConfig.java + *@Package com.nis.domain.restful + *@Description TODO + *@author dell + *@date 2018年2月6日 上午8:46:00 + *@version 版本号 + */ +package com.nis.domain.configuration; + +/** + * @ClassName: PptpIpConfig.java + * @Description: TODO + * @author (dell) + * @date 2018年2月6日 上午8:46:00 + * @version V1.0 + */ +public class PptpIpCfg extends BaseIpCfg { + + /** + * @Fields serialVersionUID:TODO(用一句话描述这个变量表示什么) + * + * @since 1.0.0 + */ + + private static final long serialVersionUID = -9142381226867498019L; + +} diff --git a/src/main/java/com/nis/domain/configuration/PptpUrlCfg.java b/src/main/java/com/nis/domain/configuration/PptpUrlCfg.java new file mode 100644 index 000000000..6c0e817ff --- /dev/null +++ b/src/main/java/com/nis/domain/configuration/PptpUrlCfg.java @@ -0,0 +1,65 @@ +/** + *@Title: PptpUrlConfig.java + *@Package com.nis.domain.restful + *@Description TODO + *@author dell + *@date 2018年2月6日 上午8:46:52 + *@version 版本号 + */ +package com.nis.domain.configuration; + +/** + * @ClassName: PptpUrlConfig.java + * @Description: TODO + * @author (dell) + * @date 2018年2月6日 上午8:46:52 + * @version V1.0 + */ +public class PptpUrlCfg extends BaseStringCfg { + + /** + * @Fields serialVersionUID:TODO(用一句话描述这个变量表示什么) + * + * @since 1.0.0 + */ + + private static final long serialVersionUID = -1187550258390471722L; + /** + * url地址 + */ + private String cfgKeywords; + /** + * cfgKeywords + * @return cfgKeywords + */ + + public String getCfgKeywords() { + return cfgKeywords; + } + /** + * @param cfgKeywords the cfgKeywords to set + */ + public void setCfgKeywords(String cfgKeywords) { + this.cfgKeywords = cfgKeywords; + } + /* (non-Javadoc) + * @see com.nis.domain.restful.BaseStringConfig#getExprType() + */ + @Override + public Integer getExprType() { + if(this.exprType==null) + return 0; + else + return this.exprType; + } + /* (non-Javadoc) + * @see com.nis.domain.restful.BaseStringConfig#getMatchMethod() + */ + @Override + public Integer getMatchMethod() { + if(this.matchMethod==null) + return 0; + else + return this.matchMethod; + } +} diff --git a/src/main/java/com/nis/domain/configuration/RtmpIpCfg.java b/src/main/java/com/nis/domain/configuration/RtmpIpCfg.java new file mode 100644 index 000000000..4d0028556 --- /dev/null +++ b/src/main/java/com/nis/domain/configuration/RtmpIpCfg.java @@ -0,0 +1,28 @@ +/** + *@Title: RtmpIpConfig.java + *@Package com.nis.domain.restful + *@Description TODO + *@author dell + *@date 2018年2月6日 上午10:26:28 + *@version 版本号 + */ +package com.nis.domain.configuration; + +/** + * @ClassName: RtmpIpConfig.java + * @Description: TODO + * @author (dell) + * @date 2018年2月6日 上午10:26:28 + * @version V1.0 + */ +public class RtmpIpCfg extends BaseIpCfg { + + /** + * @Fields serialVersionUID:TODO(用一句话描述这个变量表示什么) + * + * @since 1.0.0 + */ + + private static final long serialVersionUID = 781631345752315189L; + +} diff --git a/src/main/java/com/nis/domain/configuration/RtmpUrlCfg.java b/src/main/java/com/nis/domain/configuration/RtmpUrlCfg.java new file mode 100644 index 000000000..0137ba55e --- /dev/null +++ b/src/main/java/com/nis/domain/configuration/RtmpUrlCfg.java @@ -0,0 +1,65 @@ +/** + *@Title: RtmpUrlConfig.java + *@Package com.nis.domain.restful + *@Description TODO + *@author dell + *@date 2018年2月6日 上午10:27:18 + *@version 版本号 + */ +package com.nis.domain.configuration; + +/** + * @ClassName: RtmpUrlConfig.java + * @Description: TODO + * @author (dell) + * @date 2018年2月6日 上午10:27:18 + * @version V1.0 + */ +public class RtmpUrlCfg extends BaseStringCfg{ + + /** + * @Fields serialVersionUID:TODO(用一句话描述这个变量表示什么) + * + * @since 1.0.0 + */ + + private static final long serialVersionUID = 6332351898872775040L; + /** + * url地址 + */ + private String cfgKeywords; + /** + * cfgKeywords + * @return cfgKeywords + */ + + public String getCfgKeywords() { + return cfgKeywords; + } + /** + * @param cfgKeywords the cfgKeywords to set + */ + public void setCfgKeywords(String cfgKeywords) { + this.cfgKeywords = cfgKeywords; + } + /* (non-Javadoc) + * @see com.nis.domain.restful.BaseStringConfig#getExprType() + */ + @Override + public Integer getExprType() { + if(this.exprType==null) + return 0; + else + return this.exprType; + } + /* (non-Javadoc) + * @see com.nis.domain.restful.BaseStringConfig#getMatchMethod() + */ + @Override + public Integer getMatchMethod() { + if(this.matchMethod==null) + return 0; + else + return this.matchMethod; + } +} diff --git a/src/main/java/com/nis/domain/configuration/RtpIpCfg.java b/src/main/java/com/nis/domain/configuration/RtpIpCfg.java new file mode 100644 index 000000000..726c80ca2 --- /dev/null +++ b/src/main/java/com/nis/domain/configuration/RtpIpCfg.java @@ -0,0 +1,28 @@ +/** + *@Title: RtpIpConfig.java + *@Package com.nis.domain.restful + *@Description TODO + *@author dell + *@date 2018年2月6日 上午9:44:13 + *@version 版本号 + */ +package com.nis.domain.configuration; + +/** + * @ClassName: RtpIpConfig.java + * @Description: TODO + * @author (dell) + * @date 2018年2月6日 上午9:44:13 + * @version V1.0 + */ +public class RtpIpCfg extends BaseIpCfg { + + /** + * @Fields serialVersionUID:TODO(用一句话描述这个变量表示什么) + * + * @since 1.0.0 + */ + + private static final long serialVersionUID = -3736146151740461502L; + +} diff --git a/src/main/java/com/nis/domain/configuration/RtspIpCfg.java b/src/main/java/com/nis/domain/configuration/RtspIpCfg.java new file mode 100644 index 000000000..9443d39ca --- /dev/null +++ b/src/main/java/com/nis/domain/configuration/RtspIpCfg.java @@ -0,0 +1,28 @@ +/** + *@Title: RtspIpConfig.java + *@Package com.nis.domain.restful + *@Description TODO + *@author dell + *@date 2018年2月6日 上午10:24:10 + *@version 版本号 + */ +package com.nis.domain.configuration; + +/** + * @ClassName: RtspIpConfig.java + * @Description: TODO + * @author (dell) + * @date 2018年2月6日 上午10:24:10 + * @version V1.0 + */ +public class RtspIpCfg extends BaseIpCfg { + + /** + * @Fields serialVersionUID:TODO(用一句话描述这个变量表示什么) + * + * @since 1.0.0 + */ + + private static final long serialVersionUID = 4852493659757353291L; + +} diff --git a/src/main/java/com/nis/domain/configuration/RtspUrlCfg.java b/src/main/java/com/nis/domain/configuration/RtspUrlCfg.java new file mode 100644 index 000000000..19343f70b --- /dev/null +++ b/src/main/java/com/nis/domain/configuration/RtspUrlCfg.java @@ -0,0 +1,65 @@ +/** + *@Title: RtspUrlConfig.java + *@Package com.nis.domain.restful + *@Description TODO + *@author dell + *@date 2018年2月6日 上午10:24:55 + *@version 版本号 + */ +package com.nis.domain.configuration; + +/** + * @ClassName: RtspUrlConfig.java + * @Description: TODO + * @author (dell) + * @date 2018年2月6日 上午10:24:55 + * @version V1.0 + */ +public class RtspUrlCfg extends BaseStringCfg { + + /** + * @Fields serialVersionUID:TODO(用一句话描述这个变量表示什么) + * + * @since 1.0.0 + */ + + private static final long serialVersionUID = 1954692023425674679L; + /** + * url地址 + */ + private String cfgKeywords; + /** + * cfgKeywords + * @return cfgKeywords + */ + + public String getCfgKeywords() { + return cfgKeywords; + } + /** + * @param cfgKeywords the cfgKeywords to set + */ + public void setCfgKeywords(String cfgKeywords) { + this.cfgKeywords = cfgKeywords; + } + /* (non-Javadoc) + * @see com.nis.domain.restful.BaseStringConfig#getExprType() + */ + @Override + public Integer getExprType() { + if(this.exprType==null) + return 0; + else + return this.exprType; + } + /* (non-Javadoc) + * @see com.nis.domain.restful.BaseStringConfig#getMatchMethod() + */ + @Override + public Integer getMatchMethod() { + if(this.matchMethod==null) + return 0; + else + return this.matchMethod; + } +} diff --git a/src/main/java/com/nis/domain/configuration/SipIpCfg.java b/src/main/java/com/nis/domain/configuration/SipIpCfg.java new file mode 100644 index 000000000..11fe84939 --- /dev/null +++ b/src/main/java/com/nis/domain/configuration/SipIpCfg.java @@ -0,0 +1,28 @@ +/** + *@Title: SipIpConfig.java + *@Package com.nis.domain.restful + *@Description TODO + *@author dell + *@date 2018年2月6日 上午9:12:51 + *@version 版本号 + */ +package com.nis.domain.configuration; + +/** + * @ClassName: SipIpConfig.java + * @Description: TODO + * @author (dell) + * @date 2018年2月6日 上午9:12:51 + * @version V1.0 + */ +public class SipIpCfg extends BaseIpCfg { + + /** + * @Fields serialVersionUID:TODO(用一句话描述这个变量表示什么) + * + * @since 1.0.0 + */ + + private static final long serialVersionUID = 8707774919555732957L; + +} diff --git a/src/main/java/com/nis/domain/configuration/SipOriginalCfg.java b/src/main/java/com/nis/domain/configuration/SipOriginalCfg.java new file mode 100644 index 000000000..d7874e907 --- /dev/null +++ b/src/main/java/com/nis/domain/configuration/SipOriginalCfg.java @@ -0,0 +1,60 @@ +/** + *@Title: SipOriginalConfig.java + *@Package com.nis.domain.restful + *@Description TODO + *@author dell + *@date 2018年2月6日 上午9:25:49 + *@version 版本号 + */ +package com.nis.domain.configuration; + +import org.apache.commons.lang3.StringUtils; + +/** + * @ClassName: SipOriginalConfig.java + * @Description: TODO + * @author (dell) + * @date 2018年2月6日 上午9:25:49 + * @version V1.0 + */ +public class SipOriginalCfg extends ComplexkeywordCfg { + + /** + * @Fields serialVersionUID:TODO(用一句话描述这个变量表示什么) + * + * @since 1.0.0 + */ + + private static final long serialVersionUID = -8113106451373646902L; + + /* (non-Javadoc) + * @see com.nis.domain.restful.BaseEnhancedStringConfig#getDistrict() + */ + @Override + public String getDistrict() { + if(StringUtils.isBlank(this.district)) + return "ORIGINAL_CALL"; + else + return this.district; + } + /* (non-Javadoc) + * @see com.nis.domain.restful.BaseStringConfig#getExprType() + */ + @Override + public Integer getExprType() { + if(this.exprType==null) + return 0; + else + return this.exprType; + } + /* (non-Javadoc) + * @see com.nis.domain.restful.BaseStringConfig#getMatchMethod() + */ + @Override + public Integer getMatchMethod() { + if(this.matchMethod==null) + return 3; + else + return this.matchMethod; + } +} diff --git a/src/main/java/com/nis/domain/configuration/SipTerminalCfg.java b/src/main/java/com/nis/domain/configuration/SipTerminalCfg.java new file mode 100644 index 000000000..47ddbbdfe --- /dev/null +++ b/src/main/java/com/nis/domain/configuration/SipTerminalCfg.java @@ -0,0 +1,60 @@ +/** + *@Title: SipTerminalConfig.java + *@Package com.nis.domain.restful + *@Description TODO + *@author dell + *@date 2018年2月6日 上午9:42:15 + *@version 版本号 + */ +package com.nis.domain.configuration; + +import org.apache.commons.lang3.StringUtils; + +/** + * @ClassName: SipTerminalConfig.java + * @Description: TODO + * @author (dell) + * @date 2018年2月6日 上午9:42:15 + * @version V1.0 + */ +public class SipTerminalCfg extends ComplexkeywordCfg{ + + /** + * @Fields serialVersionUID:TODO(用一句话描述这个变量表示什么) + * + * @since 1.0.0 + */ + + private static final long serialVersionUID = 7164399463108973251L; + + /* (non-Javadoc) + * @see com.nis.domain.restful.BaseEnhancedStringConfig#getDistrict() + */ + @Override + public String getDistrict() { + if(StringUtils.isBlank(this.district)) + return "TERMINAL_CALL"; + else + return this.district; + } + /* (non-Javadoc) + * @see com.nis.domain.restful.BaseStringConfig#getExprType() + */ + @Override + public Integer getExprType() { + if(this.exprType==null) + return 0; + else + return this.exprType; + } + /* (non-Javadoc) + * @see com.nis.domain.restful.BaseStringConfig#getMatchMethod() + */ + @Override + public Integer getMatchMethod() { + if(this.matchMethod==null) + return 3; + else + return this.matchMethod; + } +} diff --git a/src/main/java/com/nis/domain/configuration/SshIpCfg.java b/src/main/java/com/nis/domain/configuration/SshIpCfg.java new file mode 100644 index 000000000..75e31e272 --- /dev/null +++ b/src/main/java/com/nis/domain/configuration/SshIpCfg.java @@ -0,0 +1,28 @@ +/** + *@Title: SshIpConfig.java + *@Package com.nis.domain.restful + *@Description TODO + *@author dell + *@date 2018年2月6日 上午8:53:19 + *@version 版本号 + */ +package com.nis.domain.configuration; + +/** + * @ClassName: SshIpConfig.java + * @Description: TODO + * @author (dell) + * @date 2018年2月6日 上午8:53:19 + * @version V1.0 + */ +public class SshIpCfg extends BaseIpCfg { + + /** + * @Fields serialVersionUID:TODO(用一句话描述这个变量表示什么) + * + * @since 1.0.0 + */ + + private static final long serialVersionUID = 5270478314830494950L; + +} diff --git a/src/main/java/com/nis/domain/configuration/SslCertCfg.java b/src/main/java/com/nis/domain/configuration/SslCertCfg.java new file mode 100644 index 000000000..04ed4f15d --- /dev/null +++ b/src/main/java/com/nis/domain/configuration/SslCertCfg.java @@ -0,0 +1,61 @@ +/** + *@Title: SslCertConfig.java + *@Package com.nis.domain.restful + *@Description TODO + *@author dell + *@date 2018年2月6日 上午8:59:51 + *@version 版本号 + */ +package com.nis.domain.configuration; + +import org.apache.commons.lang.StringUtils; + +/** + * @ClassName: SslCertConfig.java + * @Description: TODO + * @author (dell) + * @date 2018年2月6日 上午8:59:51 + * @version V1.0 + */ +public class SslCertCfg extends ComplexkeywordCfg{ + + /** + * @Fields serialVersionUID:TODO(用一句话描述这个变量表示什么) + * + * @since 1.0.0 + */ + + private static final long serialVersionUID = -6121146112218278084L; + + /* (non-Javadoc) + * @see com.nis.domain.restful.BaseEnhancedStringConfig#getDistrict() + */ + @Override + public String getDistrict() { + if(StringUtils.isBlank(this.district)) + return "CERT"; + // TODO Auto-generated method stub + else + return super.getDistrict(); + } + /* (non-Javadoc) + * @see com.nis.domain.restful.BaseStringConfig#getExprType() + */ + @Override + public Integer getExprType() { + if(this.exprType==null) + return 0; + else + return this.exprType; + } + /* (non-Javadoc) + * @see com.nis.domain.restful.BaseStringConfig#getMatchMethod() + */ + @Override + public Integer getMatchMethod() { + if(this.matchMethod==null) + return 3; + else + return this.matchMethod; + } +} diff --git a/src/main/java/com/nis/domain/configuration/SslIpCfg.java b/src/main/java/com/nis/domain/configuration/SslIpCfg.java new file mode 100644 index 000000000..8cc848629 --- /dev/null +++ b/src/main/java/com/nis/domain/configuration/SslIpCfg.java @@ -0,0 +1,28 @@ +/** + *@Title: SslIpConfig.java + *@Package com.nis.domain.restful + *@Description TODO + *@author dell + *@date 2018年2月6日 上午9:10:46 + *@version 版本号 + */ +package com.nis.domain.configuration; + +/** + * @ClassName: SslIpConfig.java + * @Description: TODO + * @author (dell) + * @date 2018年2月6日 上午9:10:46 + * @version V1.0 + */ +public class SslIpCfg extends BaseIpCfg { + + /** + * @Fields serialVersionUID:TODO(用一句话描述这个变量表示什么) + * + * @since 1.0.0 + */ + + private static final long serialVersionUID = -1334085146634344608L; + +} diff --git a/src/main/java/com/nis/domain/configuration/SslSniCfg.java b/src/main/java/com/nis/domain/configuration/SslSniCfg.java new file mode 100644 index 000000000..08b0f22c9 --- /dev/null +++ b/src/main/java/com/nis/domain/configuration/SslSniCfg.java @@ -0,0 +1,60 @@ +/** + *@Title: SslSniConfig.java + *@Package com.nis.domain.restful + *@Description TODO + *@author dell + *@date 2018年2月6日 上午9:02:44 + *@version 版本号 + */ +package com.nis.domain.configuration; + +import org.apache.commons.lang.StringUtils; + +/** + * @ClassName: SslSniConfig.java + * @Description: TODO + * @author (dell) + * @date 2018年2月6日 上午9:02:44 + * @version V1.0 + */ +public class SslSniCfg extends ComplexkeywordCfg { + + /** + * @Fields serialVersionUID:TODO(用一句话描述这个变量表示什么) + * + * @since 1.0.0 + */ + + private static final long serialVersionUID = -6648964841408445457L; + /* (non-Javadoc) + * @see com.nis.domain.restful.BaseEnhancedStringConfig#getDistrict() + */ + @Override + public String getDistrict() { + if(StringUtils.isBlank(this.district)) + return "SNI"; + // TODO Auto-generated method stub + else + return super.getDistrict(); + } + /* (non-Javadoc) + * @see com.nis.domain.restful.BaseStringConfig#getExprType() + */ + @Override + public Integer getExprType() { + if(this.exprType==null) + return 0; + else + return this.exprType; + } + /* (non-Javadoc) + * @see com.nis.domain.restful.BaseEnhancedStringConfig#getMatchMethod() + */ + @Override + public Integer getMatchMethod() { + if(this.matchMethod==null) + return 3; + else + return this.matchMethod; + } +} diff --git a/src/main/java/com/nis/web/controller/restful/IpCfgController.java b/src/main/java/com/nis/web/controller/restful/IpCfgController.java new file mode 100644 index 000000000..d0b2079b6 --- /dev/null +++ b/src/main/java/com/nis/web/controller/restful/IpCfgController.java @@ -0,0 +1,27 @@ +/** + *@Title: DnsIpCfgController.java + *@Package com.nis.web.controller.restful + *@Description TODO + *@author dell + *@date 2018年2月7日 下午2:16:58 + *@version 版本号 + */ +package com.nis.web.controller.restful; + +import org.springframework.stereotype.Service; +import org.springframework.web.bind.annotation.RequestMapping; + +import com.nis.web.controller.BaseController; + +/** + * @ClassName: DnsIpCfgController.java + * @Description: TODO + * @author (dell) + * @date 2018年2月7日 下午2:16:58 + * @version V1.0 + */ +@Service +@RequestMapping("/") +public class IpCfgController extends BaseController { + +}