This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
k18-ntcs-web-ntc/src/main/java/com/nis/domain/configuration/DnsIpCfg.java

240 lines
4.1 KiB
Java
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/**
*@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;
/**
* @ClassName: DnsIpConfig.java
* @Description: TODO
* @author (dell)
* @date 2018年2月5日 下午2:57:17
* @version V1.0
*/
public class DnsIpCfg extends BaseCfg<DnsIpCfg> {
/**
* @Fields serialVersionUID:TODO用一句话描述这个变量表示什么
*
* @since 1.0.0
*/
private static final long serialVersionUID = -4476190616323264876L;
/**
* ip类型
*/
private Integer ipType;
/**
* 源IP地址
*/
private String srcIp;
/**
* 源地址掩码
*/
private String srcIpMask ;
/**
* 源端口
*/
private String srcPort ;
/**
* 源端口掩码
*/
private String srcPortMask ;
/**
* 目的IP地址
*/
private String dstIp ;
/**
* 目的地址掩码
*/
private String dstIpMask ;
/**
* 目的端口
*/
private String dstPort ;
/**
* 目的端口掩码
*/
private String dstPortMask ;
/**
* 方向
*/
private Integer direction ;
/**
* 方向
*/
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() {
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;
}
/* (non-Javadoc)
* @see com.nis.domain.configuration.BaseCfg#initDefaultValue()
*/
@Override
protected void initDefaultValue() {
// TODO Auto-generated method stub
super.initDefaultValue();
this.srcIp ="0.0.0.0";
this.srcPortMask = "65535" ;
this.dstIp = "0.0.0.0" ;
this.dstPortMask = "65535";
this.direction = 0;
}
}