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;
|
2018-04-08 16:15:06 +08:00
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* 创建一个新的实例 BaseIpCfg.
|
|
|
|
|
|
*
|
|
|
|
|
|
*/
|
|
|
|
|
|
public BaseIpCfg() {
|
|
|
|
|
|
super();
|
|
|
|
|
|
// TODO Auto-generated constructor stub
|
|
|
|
|
|
}
|
2018-02-07 14:51:11 +08:00
|
|
|
|
/**
|
|
|
|
|
|
* ip类型
|
|
|
|
|
|
*/
|
2018-03-05 16:30:16 +08:00
|
|
|
|
@Expose
|
|
|
|
|
|
@SerializedName("ipType")
|
2018-02-07 14:51:11 +08:00
|
|
|
|
protected Integer ipType;
|
2018-05-18 10:49:08 +08:00
|
|
|
|
protected Integer ipPattern;
|
|
|
|
|
|
protected String ipAddress;
|
|
|
|
|
|
protected Integer portPattern;
|
|
|
|
|
|
protected String port;
|
|
|
|
|
|
|
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;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
2018-05-18 10:49:08 +08:00
|
|
|
|
* direction
|
|
|
|
|
|
* @return direction
|
2018-02-07 14:51:11 +08:00
|
|
|
|
*/
|
|
|
|
|
|
|
2018-05-18 10:49:08 +08:00
|
|
|
|
public Integer getDirection() {
|
|
|
|
|
|
return direction;
|
2018-02-07 14:51:11 +08:00
|
|
|
|
}
|
|
|
|
|
|
/**
|
2018-05-18 10:49:08 +08:00
|
|
|
|
* @param direction the direction to set
|
2018-02-07 14:51:11 +08:00
|
|
|
|
*/
|
2018-05-18 10:49:08 +08:00
|
|
|
|
public void setDirection(Integer direction) {
|
|
|
|
|
|
this.direction = direction;
|
2018-02-07 14:51:11 +08:00
|
|
|
|
}
|
|
|
|
|
|
/**
|
2018-05-18 10:49:08 +08:00
|
|
|
|
* protocol
|
|
|
|
|
|
* @return protocol
|
2018-02-07 14:51:11 +08:00
|
|
|
|
*/
|
|
|
|
|
|
|
2018-05-18 10:49:08 +08:00
|
|
|
|
public Integer getProtocol() {
|
|
|
|
|
|
return protocol;
|
2018-02-07 14:51:11 +08:00
|
|
|
|
}
|
|
|
|
|
|
/**
|
2018-05-18 10:49:08 +08:00
|
|
|
|
* @param protocol the protocol to set
|
2018-02-07 14:51:11 +08:00
|
|
|
|
*/
|
2018-05-18 10:49:08 +08:00
|
|
|
|
public void setProtocol(Integer protocol) {
|
|
|
|
|
|
this.protocol = protocol;
|
2018-02-07 14:51:11 +08:00
|
|
|
|
}
|
|
|
|
|
|
/**
|
2018-05-18 10:49:08 +08:00
|
|
|
|
* protocolId
|
|
|
|
|
|
* @return protocolId
|
2018-02-07 14:51:11 +08:00
|
|
|
|
*/
|
|
|
|
|
|
|
2018-05-18 10:49:08 +08:00
|
|
|
|
public Integer getProtocolId() {
|
|
|
|
|
|
return protocolId;
|
2018-02-07 14:51:11 +08:00
|
|
|
|
}
|
|
|
|
|
|
/**
|
2018-05-18 10:49:08 +08:00
|
|
|
|
* @param protocolId the protocolId to set
|
2018-02-07 14:51:11 +08:00
|
|
|
|
*/
|
2018-05-18 10:49:08 +08:00
|
|
|
|
public void setProtocolId(Integer protocolId) {
|
|
|
|
|
|
this.protocolId = protocolId;
|
2018-02-07 14:51:11 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
2018-05-18 10:49:08 +08:00
|
|
|
|
* ipPattern
|
|
|
|
|
|
* @return ipPattern
|
2018-02-07 14:51:11 +08:00
|
|
|
|
*/
|
|
|
|
|
|
|
2018-05-18 10:49:08 +08:00
|
|
|
|
public Integer getIpPattern() {
|
|
|
|
|
|
return ipPattern;
|
2018-02-07 14:51:11 +08:00
|
|
|
|
}
|
|
|
|
|
|
/**
|
2018-05-18 10:49:08 +08:00
|
|
|
|
* @param ipPattern the ipPattern to set
|
2018-02-07 14:51:11 +08:00
|
|
|
|
*/
|
2018-05-18 10:49:08 +08:00
|
|
|
|
public void setIpPattern(Integer ipPattern) {
|
|
|
|
|
|
this.ipPattern = ipPattern;
|
2018-02-07 14:51:11 +08:00
|
|
|
|
}
|
|
|
|
|
|
/**
|
2018-05-18 10:49:08 +08:00
|
|
|
|
* ipAddress
|
|
|
|
|
|
* @return ipAddress
|
2018-02-07 14:51:11 +08:00
|
|
|
|
*/
|
|
|
|
|
|
|
2018-05-18 10:49:08 +08:00
|
|
|
|
public String getIpAddress() {
|
|
|
|
|
|
return ipAddress;
|
2018-02-07 14:51:11 +08:00
|
|
|
|
}
|
|
|
|
|
|
/**
|
2018-05-18 10:49:08 +08:00
|
|
|
|
* @param ipAddress the ipAddress to set
|
2018-02-07 14:51:11 +08:00
|
|
|
|
*/
|
2018-05-18 10:49:08 +08:00
|
|
|
|
public void setIpAddress(String ipAddress) {
|
|
|
|
|
|
this.ipAddress = ipAddress;
|
2018-02-07 14:51:11 +08:00
|
|
|
|
}
|
|
|
|
|
|
/**
|
2018-05-18 10:49:08 +08:00
|
|
|
|
* portPattern
|
|
|
|
|
|
* @return portPattern
|
2018-02-07 14:51:11 +08:00
|
|
|
|
*/
|
|
|
|
|
|
|
2018-05-18 10:49:08 +08:00
|
|
|
|
public Integer getPortPattern() {
|
|
|
|
|
|
return portPattern;
|
2018-02-07 14:51:11 +08:00
|
|
|
|
}
|
|
|
|
|
|
/**
|
2018-05-18 10:49:08 +08:00
|
|
|
|
* @param portPattern the portPattern to set
|
2018-02-07 14:51:11 +08:00
|
|
|
|
*/
|
2018-05-18 10:49:08 +08:00
|
|
|
|
public void setPortPattern(Integer portPattern) {
|
|
|
|
|
|
this.portPattern = portPattern;
|
2018-02-07 14:51:11 +08:00
|
|
|
|
}
|
|
|
|
|
|
/**
|
2018-05-18 10:49:08 +08:00
|
|
|
|
* port
|
|
|
|
|
|
* @return port
|
2018-02-07 14:51:11 +08:00
|
|
|
|
*/
|
|
|
|
|
|
|
2018-05-18 10:49:08 +08:00
|
|
|
|
public String getPort() {
|
|
|
|
|
|
return port;
|
2018-02-07 14:51:11 +08:00
|
|
|
|
}
|
|
|
|
|
|
/**
|
2018-05-18 10:49:08 +08:00
|
|
|
|
* @param port the port to set
|
2018-02-07 14:51:11 +08:00
|
|
|
|
*/
|
2018-05-18 10:49:08 +08:00
|
|
|
|
public void setPort(String port) {
|
|
|
|
|
|
this.port = port;
|
2018-02-07 14:51:11 +08:00
|
|
|
|
}
|
2018-02-23 09:34:58 +08:00
|
|
|
|
@Override
|
|
|
|
|
|
public void initDefaultValue(){
|
|
|
|
|
|
super.initDefaultValue();
|
|
|
|
|
|
this.direction = 0;
|
|
|
|
|
|
}
|
2018-02-07 14:51:11 +08:00
|
|
|
|
|
|
|
|
|
|
}
|