2018-02-07 14:51:11 +08:00
|
|
|
|
/**
|
|
|
|
|
|
*@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;
|
|
|
|
|
|
|
2018-03-05 16:30:16 +08:00
|
|
|
|
import com.google.gson.annotations.Expose;
|
|
|
|
|
|
import com.google.gson.annotations.SerializedName;
|
|
|
|
|
|
|
2018-02-07 14:51:11 +08:00
|
|
|
|
/**
|
|
|
|
|
|
* @ClassName: BaseIpConfig.java
|
|
|
|
|
|
* @Description: 基础IP配置
|
|
|
|
|
|
* @author (dell)
|
|
|
|
|
|
* @date 2018年2月5日 下午5:02:24
|
|
|
|
|
|
* @version V1.0
|
|
|
|
|
|
*/
|
2018-02-23 09:34:58 +08:00
|
|
|
|
public class BaseIpCfg extends BaseCfg<BaseIpCfg> {
|
2018-02-07 14:51:11 +08:00
|
|
|
|
/**
|
|
|
|
|
|
* @Fields serialVersionUID:TODO(用一句话描述这个变量表示什么)
|
|
|
|
|
|
*
|
|
|
|
|
|
* @since 1.0.0
|
|
|
|
|
|
*/
|
|
|
|
|
|
private static final long serialVersionUID = -1939538118388300002L;
|
|
|
|
|
|
/**
|
|
|
|
|
|
* ip类型
|
|
|
|
|
|
*/
|
2018-03-05 16:30:16 +08:00
|
|
|
|
@Expose
|
|
|
|
|
|
@SerializedName("ipType")
|
2018-02-07 14:51:11 +08:00
|
|
|
|
protected Integer ipType;
|
|
|
|
|
|
/**
|
|
|
|
|
|
* 源IP地址
|
|
|
|
|
|
*/
|
2018-03-05 16:30:16 +08:00
|
|
|
|
@Expose
|
|
|
|
|
|
@SerializedName("srcIp")
|
2018-02-23 09:34:58 +08:00
|
|
|
|
protected String srcIp ;
|
2018-02-07 14:51:11 +08:00
|
|
|
|
/**
|
|
|
|
|
|
* 源地址掩码
|
|
|
|
|
|
*/
|
2018-03-05 16:30:16 +08:00
|
|
|
|
@Expose
|
|
|
|
|
|
@SerializedName("srcIpMask")
|
2018-02-07 14:51:11 +08:00
|
|
|
|
protected String srcIpMask ;
|
|
|
|
|
|
/**
|
|
|
|
|
|
* 源端口
|
|
|
|
|
|
*/
|
2018-03-05 16:30:16 +08:00
|
|
|
|
@Expose
|
|
|
|
|
|
@SerializedName("srcPort")
|
2018-02-07 14:51:11 +08:00
|
|
|
|
protected String srcPort ;
|
|
|
|
|
|
/**
|
|
|
|
|
|
* 源端口掩码
|
|
|
|
|
|
*/
|
2018-03-05 16:30:16 +08:00
|
|
|
|
@Expose
|
|
|
|
|
|
@SerializedName("srcPortMask")
|
2018-02-23 09:34:58 +08:00
|
|
|
|
protected String srcPortMask ;
|
2018-02-07 14:51:11 +08:00
|
|
|
|
/**
|
|
|
|
|
|
* 目的IP地址
|
|
|
|
|
|
*/
|
2018-03-05 16:30:16 +08:00
|
|
|
|
@Expose
|
|
|
|
|
|
@SerializedName("dstIp")
|
2018-02-23 09:34:58 +08:00
|
|
|
|
protected String dstIp ;
|
2018-02-07 14:51:11 +08:00
|
|
|
|
/**
|
|
|
|
|
|
* 目的地址掩码
|
|
|
|
|
|
*/
|
2018-03-05 16:30:16 +08:00
|
|
|
|
@Expose
|
|
|
|
|
|
@SerializedName("dstIpMask")
|
2018-02-07 14:51:11 +08:00
|
|
|
|
protected String dstIpMask ;
|
|
|
|
|
|
/**
|
|
|
|
|
|
* 目的端口
|
|
|
|
|
|
*/
|
2018-03-05 16:30:16 +08:00
|
|
|
|
@Expose
|
|
|
|
|
|
@SerializedName("dstPort")
|
2018-02-07 14:51:11 +08:00
|
|
|
|
protected String dstPort ;
|
|
|
|
|
|
/**
|
|
|
|
|
|
* 目的端口掩码
|
|
|
|
|
|
*/
|
2018-03-05 16:30:16 +08:00
|
|
|
|
@Expose
|
|
|
|
|
|
@SerializedName("dstPortMask")
|
2018-02-23 09:34:58 +08:00
|
|
|
|
protected String dstPortMask ;
|
2018-02-07 14:51:11 +08:00
|
|
|
|
/**
|
|
|
|
|
|
* 方向
|
|
|
|
|
|
*/
|
2018-03-05 16:30:16 +08:00
|
|
|
|
@Expose
|
|
|
|
|
|
@SerializedName("direction")
|
2018-02-23 09:34:58 +08:00
|
|
|
|
protected Integer direction ;
|
2018-02-07 14:51:11 +08:00
|
|
|
|
/**
|
|
|
|
|
|
* 方向
|
|
|
|
|
|
*/
|
2018-03-05 16:30:16 +08:00
|
|
|
|
@Expose
|
|
|
|
|
|
@SerializedName("protocol")
|
2018-02-07 14:51:11 +08:00
|
|
|
|
protected Integer protocol ;
|
|
|
|
|
|
/**
|
|
|
|
|
|
* 协议ID
|
|
|
|
|
|
*/
|
2018-03-05 16:30:16 +08:00
|
|
|
|
@Expose
|
|
|
|
|
|
@SerializedName("protocolId")
|
2018-02-07 14:51:11 +08:00
|
|
|
|
protected Integer protocolId ;
|
|
|
|
|
|
/**
|
|
|
|
|
|
* 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() {
|
|
|
|
|
|
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() {
|
|
|
|
|
|
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;
|
|
|
|
|
|
}
|
2018-02-23 09:34:58 +08:00
|
|
|
|
@Override
|
|
|
|
|
|
public void initDefaultValue(){
|
|
|
|
|
|
super.initDefaultValue();
|
2018-02-28 10:55:39 +08:00
|
|
|
|
// this.srcIp ="0.0.0.0";
|
2018-02-23 09:34:58 +08:00
|
|
|
|
this.srcPortMask = "65535" ;
|
2018-02-28 10:55:39 +08:00
|
|
|
|
// this.dstIp = "0.0.0.0" ;
|
2018-02-23 09:34:58 +08:00
|
|
|
|
this.dstPortMask = "65535";
|
|
|
|
|
|
this.direction = 0;
|
|
|
|
|
|
}
|
2018-02-07 14:51:11 +08:00
|
|
|
|
|
|
|
|
|
|
}
|