REM:
1. 增加获取设备节点能力接口
2. 增加获取能力节点列表接口
3. 增加获取能力节点详细信息接口
4. 增加1-3接口的单元测试用例
This commit is contained in:
huangxin 2020-04-20 19:48:40 +08:00
parent 57ee6c4c91
commit 6522cf5955
59 changed files with 871 additions and 917 deletions

11
.idea/dataSources.xml Normal file
View File

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="DataSourceManagerImpl" format="xml" multifile-model="true">
<data-source source="LOCAL" name="MySQL - @172.28.72.118" uuid="49f2b8fb-71a6-4274-9120-55f11811ef19">
<driver-ref>mysql.8</driver-ref>
<synchronize>true</synchronize>
<jdbc-driver>com.mysql.cj.jdbc.Driver</jdbc-driver>
<jdbc-url>jdbc:mysql://172.28.72.118:33061</jdbc-url>
</data-source>
</component>
</project>

View File

@ -0,0 +1,6 @@
<component name="InspectionProjectProfileManager">
<profile version="1.0">
<option name="myName" value="Project Default" />
<inspection_tool class="DuplicatedCode" enabled="false" level="WEAK WARNING" enabled_by_default="false" />
</profile>
</component>

View File

@ -1,14 +1,18 @@
package com.dispose.controller;
import com.dispose.common.ConstValue;
import com.dispose.common.ErrorCode;
import com.dispose.pojo.dto.ProtocolReqDTO;
import com.dispose.pojo.dto.ProtocolRespDTO;
import com.dispose.pojo.entity.DisposeDevice;
import com.dispose.pojo.vo.common.DisposeCapacity;
import com.dispose.pojo.vo.common.IDArrayReq;
import com.dispose.pojo.vo.information.DeviceCapacityData;
import com.dispose.pojo.vo.information.DeviceCapacityRsp;
import com.dispose.pojo.vo.information.DeviceInfoData;
import com.dispose.pojo.vo.information.DeviceInfoRsp;
import com.dispose.pojo.vo.information.DisposeNodeData;
import com.dispose.pojo.vo.information.DisposeNodeListRsp;
import com.dispose.pojo.vo.information.LinkStatusRsp;
import com.dispose.pojo.vo.information.VersionRsp;
import com.dispose.service.DisposeNodeManager;
@ -174,8 +178,7 @@ public class DisposeNodeInfoController {
List<DisposeDevice> devList = disposeNodeManager.getAllDisposeDevice();
if (devList != null && devList.size() > 0) {
devList.forEach(v -> {
rspInfo.getItems().add(new DeviceInfoData(
devList.forEach(v -> rspInfo.getItems().add(new DeviceInfoData(
v.getId().toString(),
v.getDevInfo().getVendor(),
v.getDevInfo().getModel(),
@ -187,8 +190,7 @@ public class DisposeNodeInfoController {
v.getDevInfo().getFreeMemory(),
v.getDevInfo().getCpuUsed(),
ErrorCode.ERR_OK
));
});
)));
}
} else {
for (String v : reqInfo.getId()) {
@ -244,7 +246,6 @@ public class DisposeNodeInfoController {
List<DisposeDevice> devList = disposeNodeManager.getAllDisposeDevice();
if (devList != null && devList.size() > 0) {
devList.forEach(v -> {
DeviceCapacityData cpData = new DeviceCapacityData(v.getDevCaps());
cpData.setId(v.getId().toString());
@ -267,10 +268,201 @@ public class DisposeNodeInfoController {
cpData.setId(v);
cpData.setStatus(ErrorCode.ERR_NOSUCHDEVICE.getCode());
cpData.setMessage(ErrorCode.ERR_NOSUCHDEVICE.getMsg());
rspInfo.getItems().add(cpData);
}
}
}
String rspMessage = new ObjectMapper().writerWithView(DisposeCapacity.CapacityView.class).writeValueAsString(rspInfo);
return ProtocolRespDTO.result(ErrorCode.ERR_OK, rspMessage, ConstValue.Protocol.CRYPTO_NONE);
}
@PostMapping("/protected_ip")
@ResponseBody
@ApiOperation("处置设备防护IP")
@Builder
//@JsonView(DisposeCapacity.CapacityView.class)
public ProtocolRespDTO getProtectedIp(@RequestBody ProtocolReqDTO mr,
@RequestHeader HttpHeaders headers)
throws JsonProcessingException {
ErrorCode err = mr.verifyRequest(headers);
if (err != ErrorCode.ERR_OK) {
return ProtocolRespDTO.result(err);
}
IDArrayReq reqInfo = mr.getRequestObject(IDArrayReq.class);
DeviceCapacityRsp rspInfo = new DeviceCapacityRsp();
rspInfo.setItems(new ArrayList<>());
if (reqInfo.getId().length == 0) {
List<DisposeDevice> devList = disposeNodeManager.getAllDisposeDevice();
if (devList != null && devList.size() > 0) {
devList.forEach(v -> {
DeviceCapacityData cpData = new DeviceCapacityData(v.getDevCaps());
cpData.setId(v.getId().toString());
cpData.setStatus(ErrorCode.ERR_OK.getCode());
cpData.setMessage(ErrorCode.ERR_OK.getMsg());
rspInfo.getItems().add(cpData);
});
}
} else {
for (String v : reqInfo.getId()) {
DisposeDevice dev = disposeNodeManager.getDisposeDeviceById(Long.valueOf(v));
if (dev != null && dev.getId().equals(Long.valueOf(v))) {
DeviceCapacityData cpData = new DeviceCapacityData(dev.getDevCaps());
cpData.setId(dev.getId().toString());
cpData.setStatus(ErrorCode.ERR_OK.getCode());
cpData.setMessage(ErrorCode.ERR_OK.getMsg());
rspInfo.getItems().add(cpData);
} else {
DeviceCapacityData cpData = new DeviceCapacityData();
cpData.setId(v);
cpData.setStatus(ErrorCode.ERR_NOSUCHDEVICE.getCode());
cpData.setMessage(ErrorCode.ERR_NOSUCHDEVICE.getMsg());
rspInfo.getItems().add(cpData);
}
}
}
String rspMessage = new ObjectMapper().writerWithView(DisposeCapacity.DependIpView.class).writeValueAsString(rspInfo);
return ProtocolRespDTO.result(ErrorCode.ERR_OK, rspMessage, ConstValue.Protocol.CRYPTO_NONE);
}
@PostMapping("/node_list")
@ResponseBody
@ApiOperation("处置设备列表")
@Builder
//@JsonView(DisposeCapacity.CapacityView.class)
public ProtocolRespDTO getDisposeNodeList(@RequestBody ProtocolReqDTO mr,
@RequestHeader HttpHeaders headers)
throws JsonProcessingException {
ErrorCode err = mr.verifyRequest(headers);
if (err != ErrorCode.ERR_OK) {
return ProtocolRespDTO.result(err);
}
IDArrayReq reqInfo = mr.getRequestObject(IDArrayReq.class);
DisposeNodeListRsp rspInfo = new DisposeNodeListRsp();
rspInfo.setItems(new ArrayList<>());
if (reqInfo.getId().length == 0) {
List<DisposeDevice> devList = disposeNodeManager.getAllDisposeDevice();
if (devList != null && devList.size() > 0) {
devList.forEach(v -> {
DisposeNodeData dpData = DisposeNodeData.builder()
.type(v.getType())
.name(v.getName())
.ip(v.getIpAddr())
.build();
dpData.setId(v.getId().toString());
dpData.setStatus(ErrorCode.ERR_OK.getCode());
dpData.setMessage(ErrorCode.ERR_OK.getMsg());
rspInfo.getItems().add(dpData);
});
}
} else {
for (String v : reqInfo.getId()) {
DisposeDevice dev = disposeNodeManager.getDisposeDeviceById(Long.valueOf(v));
if (dev != null && dev.getId().equals(Long.valueOf(v))) {
DisposeNodeData dpData = DisposeNodeData.builder()
.type(dev.getType())
.name(dev.getName())
.ip(dev.getIpAddr())
.build();
dpData.setId(dev.getId().toString());
dpData.setStatus(ErrorCode.ERR_OK.getCode());
dpData.setMessage(ErrorCode.ERR_OK.getMsg());
rspInfo.getItems().add(dpData);
} else {
DisposeNodeData dpData = new DisposeNodeData();
dpData.setId(v);
dpData.setStatus(ErrorCode.ERR_NOSUCHDEVICE.getCode());
dpData.setMessage(ErrorCode.ERR_NOSUCHDEVICE.getMsg());
rspInfo.getItems().add(dpData);
}
}
}
return ProtocolRespDTO.result(ErrorCode.ERR_OK, rspInfo);
}
@PostMapping("/node_details")
@ResponseBody
@ApiOperation("处置节点详细信息")
@Builder
//@JsonView(DisposeCapacity.CapacityView.class)
public ProtocolRespDTO getDisposeNodeDetails(@RequestBody ProtocolReqDTO mr,
@RequestHeader HttpHeaders headers)
throws JsonProcessingException {
ErrorCode err = mr.verifyRequest(headers);
if (err != ErrorCode.ERR_OK) {
return ProtocolRespDTO.result(err);
}
IDArrayReq reqInfo = mr.getRequestObject(IDArrayReq.class);
DisposeNodeListRsp rspInfo = new DisposeNodeListRsp();
rspInfo.setItems(new ArrayList<>());
if (reqInfo.getId().length == 0) {
List<DisposeDevice> devList = disposeNodeManager.getAllDisposeDevice();
if (devList != null && devList.size() > 0) {
devList.forEach(v -> {
DisposeNodeData dpData = new DisposeNodeData(
v.getType(),
v.getName(),
v.getIpAddr(),
v.getAreaCode(),
v.getManufacturer(),
v.getModel(),
v.getVersion(),
v.getReadme(),
v.getDevCaps()
);
dpData.setId(v.getId().toString());
dpData.setStatus(ErrorCode.ERR_OK.getCode());
dpData.setMessage(ErrorCode.ERR_OK.getMsg());
rspInfo.getItems().add(dpData);
});
}
} else {
for (String v : reqInfo.getId()) {
DisposeDevice dev = disposeNodeManager.getDisposeDeviceById(Long.valueOf(v));
if (dev != null && dev.getId().equals(Long.valueOf(v))) {
DisposeNodeData dpData = new DisposeNodeData(
dev.getType(),
dev.getName(),
dev.getIpAddr(),
dev.getAreaCode(),
dev.getManufacturer(),
dev.getModel(),
dev.getVersion(),
dev.getReadme(),
dev.getDevCaps()
);
dpData.setId(dev.getId().toString());
dpData.setStatus(ErrorCode.ERR_OK.getCode());
dpData.setMessage(ErrorCode.ERR_OK.getMsg());
rspInfo.getItems().add(dpData);
} else {
DisposeNodeData dpData = new DisposeNodeData();
dpData.setId(v);
dpData.setStatus(ErrorCode.ERR_NOSUCHDEVICE.getCode());
dpData.setMessage(ErrorCode.ERR_NOSUCHDEVICE.getMsg());
rspInfo.getItems().add(dpData);
}
}
}
return ProtocolRespDTO.result(ErrorCode.ERR_OK, rspInfo);
}
}

View File

@ -1,6 +1,7 @@
package com.dispose.pojo.dto;
import com.dispose.common.ConstValue;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
@ -30,10 +31,11 @@ public abstract class ProtocolDTO {
@ApiModelProperty(value = "协议详细内容Json字符串格式。\n" +
"保存该cmdId命令相关的详细内容\n" +
"具体每个cmdId命令的详细内容参看对应的命令协议定义", required = false,
"具体每个cmdId命令的详细内容参看对应的命令协议定义",
example = "{}")
private String msgContent;
@JsonIgnore
public Boolean isRequestTimeout() {
if (!ConstValue.GlobalConfigure.IS_SKIP_TIMEOUT_CHECK) {

View File

@ -4,25 +4,22 @@ import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonView;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.Setter;
@Data
@Setter
@Builder
@NoArgsConstructor
@AllArgsConstructor
@JsonInclude(JsonInclude.Include.NON_NULL)
public class DisposeCapacity {
// 视图1
public interface BaseView {
}
public interface BaseView {}
public interface CapacityView extends BaseView {}
public interface DependIpView extends BaseView {}
// 视图2 继承视图1
public interface CapacityView extends BaseView {
}
@JsonView(CapacityView.class)
@JsonView(BaseView.class)
private int type;
@JsonView(DependIpView.class)
private String disposeIp;
@JsonView(CapacityView.class)
private int tolCapacity;

View File

@ -0,0 +1,44 @@
package com.dispose.pojo.vo.information;
import com.dispose.pojo.po.DisposeDeviceCapacity;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import java.util.List;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
@EqualsAndHashCode(callSuper = true)
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonPropertyOrder({"id", "type", "name", "ip", "areaCode", "manufacturer", "model", "version", "readme", "status", "message"})
public class DisposeNodeData extends DeviceCapacityData {
private int type;
private String name;
private String ip;
private Integer areaCode;
private String manufacturer;
private String model;
private String version;
private String readme;
public DisposeNodeData(int type, String name, String ip, Integer areaCode,
String manufacturer, String model, String version,
String readme,
List<DisposeDeviceCapacity> capacity) {
super(capacity);
this.type = type;
this.name = name;
this.ip = ip;
this.areaCode = areaCode;
this.manufacturer = manufacturer;
this.model = model;
this.version = version;
this.readme = readme;
}
}

View File

@ -0,0 +1,11 @@
package com.dispose.pojo.vo.information;
import java.util.List;
import lombok.Data;
import lombok.NoArgsConstructor;
@Data
@NoArgsConstructor
public class DisposeNodeListRsp {
private List<DisposeNodeData> items;
}

View File

@ -1,4 +1,3 @@
package com.dptech.dispose;
import javax.xml.bind.annotation.XmlAccessType;
@ -24,8 +23,6 @@ import javax.xml.bind.annotation.XmlType;
* &lt;/complexContent&gt;
* &lt;/complexType&gt;
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
@ -40,10 +37,8 @@ public class GetAllProtectionObjectFromUMCResponse {
/**
* 获取out属性的值
*
* @return
* possible object is
* @return possible object is
* {@link ArrayOfProtectionObjectDataForService }
*
*/
public ArrayOfProtectionObjectDataForService getOut() {
return out;
@ -52,10 +47,8 @@ public class GetAllProtectionObjectFromUMCResponse {
/**
* 设置out属性的值
*
* @param value
* allowed object is
* @param value allowed object is
* {@link ArrayOfProtectionObjectDataForService }
*
*/
public void setOut(ArrayOfProtectionObjectDataForService value) {
this.out = value;

View File

@ -1,4 +1,3 @@
package com.dptech.dispose;
import javax.xml.bind.annotation.XmlAccessType;
@ -24,8 +23,6 @@ import javax.xml.bind.annotation.XmlType;
* &lt;/complexContent&gt;
* &lt;/complexType&gt;
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
@ -40,10 +37,8 @@ public class GetAnomalyDetectionStrategyFromUMC {
/**
* 获取strategyName属性的值
*
* @return
* possible object is
* @return possible object is
* {@link String }
*
*/
public String getStrategyName() {
return strategyName;
@ -52,10 +47,8 @@ public class GetAnomalyDetectionStrategyFromUMC {
/**
* 设置strategyName属性的值
*
* @param value
* allowed object is
* @param value allowed object is
* {@link String }
*
*/
public void setStrategyName(String value) {
this.strategyName = value;

View File

@ -1,4 +1,3 @@
package com.dptech.dispose;
import javax.xml.bind.annotation.XmlAccessType;
@ -24,8 +23,6 @@ import javax.xml.bind.annotation.XmlType;
* &lt;/complexContent&gt;
* &lt;/complexType&gt;
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
@ -40,10 +37,8 @@ public class GetDdosACProtectionFromUMCResponse {
/**
* 获取out属性的值
*
* @return
* possible object is
* @return possible object is
* {@link ArrayOfDdosACProtectionForService }
*
*/
public ArrayOfDdosACProtectionForService getOut() {
return out;
@ -52,10 +47,8 @@ public class GetDdosACProtectionFromUMCResponse {
/**
* 设置out属性的值
*
* @param value
* allowed object is
* @param value allowed object is
* {@link ArrayOfDdosACProtectionForService }
*
*/
public void setOut(ArrayOfDdosACProtectionForService value) {
this.out = value;

View File

@ -1,4 +1,3 @@
package com.dptech.dispose;
import javax.xml.bind.annotation.XmlAccessType;
@ -24,8 +23,6 @@ import javax.xml.bind.annotation.XmlType;
* &lt;/complexContent&gt;
* &lt;/complexType&gt;
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
@ -40,10 +37,8 @@ public class GetDdosCCuserGroupV4FromUMCResponse {
/**
* 获取out属性的值
*
* @return
* possible object is
* @return possible object is
* {@link ArrayOfDdosCCuserGroupV4ForService }
*
*/
public ArrayOfDdosCCuserGroupV4ForService getOut() {
return out;
@ -52,10 +47,8 @@ public class GetDdosCCuserGroupV4FromUMCResponse {
/**
* 设置out属性的值
*
* @param value
* allowed object is
* @param value allowed object is
* {@link ArrayOfDdosCCuserGroupV4ForService }
*
*/
public void setOut(ArrayOfDdosCCuserGroupV4ForService value) {
this.out = value;

View File

@ -1,4 +1,3 @@
package com.dptech.dispose;
import javax.xml.bind.annotation.XmlAccessType;
@ -24,8 +23,6 @@ import javax.xml.bind.annotation.XmlType;
* &lt;/complexContent&gt;
* &lt;/complexType&gt;
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
@ -40,10 +37,8 @@ public class GetDdosDnsRetryProtectFromUMCResponse {
/**
* 获取out属性的值
*
* @return
* possible object is
* @return possible object is
* {@link ArrayOfDdosDnsRetryProtectForService }
*
*/
public ArrayOfDdosDnsRetryProtectForService getOut() {
return out;
@ -52,10 +47,8 @@ public class GetDdosDnsRetryProtectFromUMCResponse {
/**
* 设置out属性的值
*
* @param value
* allowed object is
* @param value allowed object is
* {@link ArrayOfDdosDnsRetryProtectForService }
*
*/
public void setOut(ArrayOfDdosDnsRetryProtectForService value) {
this.out = value;

View File

@ -1,4 +1,3 @@
package com.dptech.dispose;
import javax.xml.bind.annotation.XmlAccessType;
@ -24,8 +23,6 @@ import javax.xml.bind.annotation.XmlType;
* &lt;/complexContent&gt;
* &lt;/complexType&gt;
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
@ -40,10 +37,8 @@ public class GetDdosGlobalAckPayloadFromUMCResponse {
/**
* 获取out属性的值
*
* @return
* possible object is
* @return possible object is
* {@link DdosGlobalAckPayloadForService }
*
*/
public DdosGlobalAckPayloadForService getOut() {
return out;
@ -52,10 +47,8 @@ public class GetDdosGlobalAckPayloadFromUMCResponse {
/**
* 设置out属性的值
*
* @param value
* allowed object is
* @param value allowed object is
* {@link DdosGlobalAckPayloadForService }
*
*/
public void setOut(DdosGlobalAckPayloadForService value) {
this.out = value;

View File

@ -1,4 +1,3 @@
package com.dptech.dispose;
import javax.xml.bind.annotation.XmlAccessType;
@ -24,8 +23,6 @@ import javax.xml.bind.annotation.XmlType;
* &lt;/complexContent&gt;
* &lt;/complexType&gt;
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
@ -40,10 +37,8 @@ public class GetDdosGlobalIcmpFragFromUMCResponse {
/**
* 获取out属性的值
*
* @return
* possible object is
* @return possible object is
* {@link DdosGlobalIcmpFragForService }
*
*/
public DdosGlobalIcmpFragForService getOut() {
return out;
@ -52,10 +47,8 @@ public class GetDdosGlobalIcmpFragFromUMCResponse {
/**
* 设置out属性的值
*
* @param value
* allowed object is
* @param value allowed object is
* {@link DdosGlobalIcmpFragForService }
*
*/
public void setOut(DdosGlobalIcmpFragForService value) {
this.out = value;

View File

@ -1,4 +1,3 @@
package com.dptech.dispose;
import javax.xml.bind.annotation.XmlAccessType;
@ -24,8 +23,6 @@ import javax.xml.bind.annotation.XmlType;
* &lt;/complexContent&gt;
* &lt;/complexType&gt;
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
@ -40,10 +37,8 @@ public class GetDdosGlobalIcmpLengthFromUMCResponse {
/**
* 获取out属性的值
*
* @return
* possible object is
* @return possible object is
* {@link DdosGlobalIcmpLengthForService }
*
*/
public DdosGlobalIcmpLengthForService getOut() {
return out;
@ -52,10 +47,8 @@ public class GetDdosGlobalIcmpLengthFromUMCResponse {
/**
* 设置out属性的值
*
* @param value
* allowed object is
* @param value allowed object is
* {@link DdosGlobalIcmpLengthForService }
*
*/
public void setOut(DdosGlobalIcmpLengthForService value) {
this.out = value;

View File

@ -1,4 +1,3 @@
package com.dptech.dispose;
import javax.xml.bind.annotation.XmlAccessType;
@ -24,8 +23,6 @@ import javax.xml.bind.annotation.XmlType;
* &lt;/complexContent&gt;
* &lt;/complexType&gt;
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
@ -40,10 +37,8 @@ public class GetDdosGlobalOtherFragFromUMCResponse {
/**
* 获取out属性的值
*
* @return
* possible object is
* @return possible object is
* {@link DdosGlobalOtherFragForService }
*
*/
public DdosGlobalOtherFragForService getOut() {
return out;
@ -52,10 +47,8 @@ public class GetDdosGlobalOtherFragFromUMCResponse {
/**
* 设置out属性的值
*
* @param value
* allowed object is
* @param value allowed object is
* {@link DdosGlobalOtherFragForService }
*
*/
public void setOut(DdosGlobalOtherFragForService value) {
this.out = value;

View File

@ -1,4 +1,3 @@
package com.dptech.dispose;
import javax.xml.bind.annotation.XmlAccessType;
@ -24,8 +23,6 @@ import javax.xml.bind.annotation.XmlType;
* &lt;/complexContent&gt;
* &lt;/complexType&gt;
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
@ -40,10 +37,8 @@ public class GetDdosGlobalSynFloodFromUMCResponse {
/**
* 获取out属性的值
*
* @return
* possible object is
* @return possible object is
* {@link DdosGlobalSynFloodForService }
*
*/
public DdosGlobalSynFloodForService getOut() {
return out;
@ -52,10 +47,8 @@ public class GetDdosGlobalSynFloodFromUMCResponse {
/**
* 设置out属性的值
*
* @param value
* allowed object is
* @param value allowed object is
* {@link DdosGlobalSynFloodForService }
*
*/
public void setOut(DdosGlobalSynFloodForService value) {
this.out = value;

View File

@ -1,4 +1,3 @@
package com.dptech.dispose;
import javax.xml.bind.annotation.XmlAccessType;
@ -24,8 +23,6 @@ import javax.xml.bind.annotation.XmlType;
* &lt;/complexContent&gt;
* &lt;/complexType&gt;
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
@ -40,10 +37,8 @@ public class GetDdosGlobalTcpFlagFromUMCResponse {
/**
* 获取out属性的值
*
* @return
* possible object is
* @return possible object is
* {@link DdosGlobalTcpFlagForService }
*
*/
public DdosGlobalTcpFlagForService getOut() {
return out;
@ -52,10 +47,8 @@ public class GetDdosGlobalTcpFlagFromUMCResponse {
/**
* 设置out属性的值
*
* @param value
* allowed object is
* @param value allowed object is
* {@link DdosGlobalTcpFlagForService }
*
*/
public void setOut(DdosGlobalTcpFlagForService value) {
this.out = value;

View File

@ -1,4 +1,3 @@
package com.dptech.dispose;
import javax.xml.bind.annotation.XmlAccessType;
@ -24,8 +23,6 @@ import javax.xml.bind.annotation.XmlType;
* &lt;/complexContent&gt;
* &lt;/complexType&gt;
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
@ -40,10 +37,8 @@ public class GetDdosGlobalTcpFragFromUMCResponse {
/**
* 获取out属性的值
*
* @return
* possible object is
* @return possible object is
* {@link DdosGlobalTcpFragForService }
*
*/
public DdosGlobalTcpFragForService getOut() {
return out;
@ -52,10 +47,8 @@ public class GetDdosGlobalTcpFragFromUMCResponse {
/**
* 设置out属性的值
*
* @param value
* allowed object is
* @param value allowed object is
* {@link DdosGlobalTcpFragForService }
*
*/
public void setOut(DdosGlobalTcpFragForService value) {
this.out = value;

View File

@ -1,4 +1,3 @@
package com.dptech.dispose;
import javax.xml.bind.annotation.XmlAccessType;
@ -24,8 +23,6 @@ import javax.xml.bind.annotation.XmlType;
* &lt;/complexContent&gt;
* &lt;/complexType&gt;
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
@ -40,10 +37,8 @@ public class GetDdosGlobalTcpLengthFromUMCResponse {
/**
* 获取out属性的值
*
* @return
* possible object is
* @return possible object is
* {@link DdosGlobalTcpLengthForService }
*
*/
public DdosGlobalTcpLengthForService getOut() {
return out;
@ -52,10 +47,8 @@ public class GetDdosGlobalTcpLengthFromUMCResponse {
/**
* 设置out属性的值
*
* @param value
* allowed object is
* @param value allowed object is
* {@link DdosGlobalTcpLengthForService }
*
*/
public void setOut(DdosGlobalTcpLengthForService value) {
this.out = value;

View File

@ -1,4 +1,3 @@
package com.dptech.dispose;
import javax.xml.bind.annotation.XmlAccessType;
@ -24,8 +23,6 @@ import javax.xml.bind.annotation.XmlType;
* &lt;/complexContent&gt;
* &lt;/complexType&gt;
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
@ -40,10 +37,8 @@ public class GetDdosGlobalTcpStateFromUMCResponse {
/**
* 获取out属性的值
*
* @return
* possible object is
* @return possible object is
* {@link DdosGlobalTcpStateForService }
*
*/
public DdosGlobalTcpStateForService getOut() {
return out;
@ -52,10 +47,8 @@ public class GetDdosGlobalTcpStateFromUMCResponse {
/**
* 设置out属性的值
*
* @param value
* allowed object is
* @param value allowed object is
* {@link DdosGlobalTcpStateForService }
*
*/
public void setOut(DdosGlobalTcpStateForService value) {
this.out = value;

View File

@ -1,4 +1,3 @@
package com.dptech.dispose;
import javax.xml.bind.annotation.XmlAccessType;
@ -24,8 +23,6 @@ import javax.xml.bind.annotation.XmlType;
* &lt;/complexContent&gt;
* &lt;/complexType&gt;
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
@ -40,10 +37,8 @@ public class GetDdosGlobalUdpFragFromUMCResponse {
/**
* 获取out属性的值
*
* @return
* possible object is
* @return possible object is
* {@link DdosGlobalUdpFragForService }
*
*/
public DdosGlobalUdpFragForService getOut() {
return out;
@ -52,10 +47,8 @@ public class GetDdosGlobalUdpFragFromUMCResponse {
/**
* 设置out属性的值
*
* @param value
* allowed object is
* @param value allowed object is
* {@link DdosGlobalUdpFragForService }
*
*/
public void setOut(DdosGlobalUdpFragForService value) {
this.out = value;

View File

@ -1,4 +1,3 @@
package com.dptech.dispose;
import javax.xml.bind.annotation.XmlAccessType;
@ -24,8 +23,6 @@ import javax.xml.bind.annotation.XmlType;
* &lt;/complexContent&gt;
* &lt;/complexType&gt;
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
@ -40,10 +37,8 @@ public class GetDdosGlobalUdpLengthFromUMCResponse {
/**
* 获取out属性的值
*
* @return
* possible object is
* @return possible object is
* {@link DdosGlobalUdpLengthForService }
*
*/
public DdosGlobalUdpLengthForService getOut() {
return out;
@ -52,10 +47,8 @@ public class GetDdosGlobalUdpLengthFromUMCResponse {
/**
* 设置out属性的值
*
* @param value
* allowed object is
* @param value allowed object is
* {@link DdosGlobalUdpLengthForService }
*
*/
public void setOut(DdosGlobalUdpLengthForService value) {
this.out = value;

View File

@ -1,4 +1,3 @@
package com.dptech.dispose;
import javax.xml.bind.annotation.XmlAccessType;
@ -24,8 +23,6 @@ import javax.xml.bind.annotation.XmlType;
* &lt;/complexContent&gt;
* &lt;/complexType&gt;
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
@ -40,10 +37,8 @@ public class GetDdosGlobalUdpPayloadFromUMCResponse {
/**
* 获取out属性的值
*
* @return
* possible object is
* @return possible object is
* {@link DdosGlobalUdpPayloadForService }
*
*/
public DdosGlobalUdpPayloadForService getOut() {
return out;
@ -52,10 +47,8 @@ public class GetDdosGlobalUdpPayloadFromUMCResponse {
/**
* 设置out属性的值
*
* @param value
* allowed object is
* @param value allowed object is
* {@link DdosGlobalUdpPayloadForService }
*
*/
public void setOut(DdosGlobalUdpPayloadForService value) {
this.out = value;

View File

@ -1,4 +1,3 @@
package com.dptech.dispose;
import javax.xml.bind.annotation.XmlAccessType;
@ -24,8 +23,6 @@ import javax.xml.bind.annotation.XmlType;
* &lt;/complexContent&gt;
* &lt;/complexType&gt;
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
@ -40,10 +37,8 @@ public class GetDnsDomainGlobalV4FromUMCResponse {
/**
* 获取out属性的值
*
* @return
* possible object is
* @return possible object is
* {@link ArrayOfDnsDomainGlobalV4ForService }
*
*/
public ArrayOfDnsDomainGlobalV4ForService getOut() {
return out;
@ -52,10 +47,8 @@ public class GetDnsDomainGlobalV4FromUMCResponse {
/**
* 设置out属性的值
*
* @param value
* allowed object is
* @param value allowed object is
* {@link ArrayOfDnsDomainGlobalV4ForService }
*
*/
public void setOut(ArrayOfDnsDomainGlobalV4ForService value) {
this.out = value;

View File

@ -1,4 +1,3 @@
package com.dptech.dispose;
import javax.xml.bind.annotation.XmlAccessType;
@ -24,8 +23,6 @@ import javax.xml.bind.annotation.XmlType;
* &lt;/complexContent&gt;
* &lt;/complexType&gt;
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
@ -40,10 +37,8 @@ public class GetDnsSecDomainCustomV4FromUMCResponse {
/**
* 获取out属性的值
*
* @return
* possible object is
* @return possible object is
* {@link ArrayOfDnsSecDomainCustomV4ForService }
*
*/
public ArrayOfDnsSecDomainCustomV4ForService getOut() {
return out;
@ -52,10 +47,8 @@ public class GetDnsSecDomainCustomV4FromUMCResponse {
/**
* 设置out属性的值
*
* @param value
* allowed object is
* @param value allowed object is
* {@link ArrayOfDnsSecDomainCustomV4ForService }
*
*/
public void setOut(ArrayOfDnsSecDomainCustomV4ForService value) {
this.out = value;

View File

@ -1,4 +1,3 @@
package com.dptech.dispose;
import javax.xml.bind.annotation.XmlAccessType;
@ -24,8 +23,6 @@ import javax.xml.bind.annotation.XmlType;
* &lt;/complexContent&gt;
* &lt;/complexType&gt;
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
@ -40,10 +37,8 @@ public class GetDnsSecDomainGlobalV4FromUMCResponse {
/**
* 获取out属性的值
*
* @return
* possible object is
* @return possible object is
* {@link ArrayOfDnsSecDomainGlobalV4ForService }
*
*/
public ArrayOfDnsSecDomainGlobalV4ForService getOut() {
return out;
@ -52,10 +47,8 @@ public class GetDnsSecDomainGlobalV4FromUMCResponse {
/**
* 设置out属性的值
*
* @param value
* allowed object is
* @param value allowed object is
* {@link ArrayOfDnsSecDomainGlobalV4ForService }
*
*/
public void setOut(ArrayOfDnsSecDomainGlobalV4ForService value) {
this.out = value;

View File

@ -1,4 +1,3 @@
package com.dptech.dispose;
import javax.xml.bind.annotation.XmlAccessType;
@ -24,8 +23,6 @@ import javax.xml.bind.annotation.XmlType;
* &lt;/complexContent&gt;
* &lt;/complexType&gt;
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
@ -40,10 +37,8 @@ public class GetFingerprintOtherFromUMCResponse {
/**
* 获取out属性的值
*
* @return
* possible object is
* @return possible object is
* {@link ArrayOfFingerprintOtherForService }
*
*/
public ArrayOfFingerprintOtherForService getOut() {
return out;
@ -52,10 +47,8 @@ public class GetFingerprintOtherFromUMCResponse {
/**
* 设置out属性的值
*
* @param value
* allowed object is
* @param value allowed object is
* {@link ArrayOfFingerprintOtherForService }
*
*/
public void setOut(ArrayOfFingerprintOtherForService value) {
this.out = value;

View File

@ -1,4 +1,3 @@
package com.dptech.dispose;
import javax.xml.bind.annotation.XmlAccessType;
@ -25,8 +24,6 @@ import javax.xml.bind.annotation.XmlType;
* &lt;/complexContent&gt;
* &lt;/complexType&gt;
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
@ -44,10 +41,8 @@ public class LinkProtectionStrategyTemplateForUMC {
/**
* 获取protectName属性的值
*
* @return
* possible object is
* @return possible object is
* {@link String }
*
*/
public String getProtectName() {
return protectName;
@ -56,10 +51,8 @@ public class LinkProtectionStrategyTemplateForUMC {
/**
* 设置protectName属性的值
*
* @param value
* allowed object is
* @param value allowed object is
* {@link String }
*
*/
public void setProtectName(String value) {
this.protectName = value;
@ -68,10 +61,8 @@ public class LinkProtectionStrategyTemplateForUMC {
/**
* 获取templateName属性的值
*
* @return
* possible object is
* @return possible object is
* {@link String }
*
*/
public String getTemplateName() {
return templateName;
@ -80,10 +71,8 @@ public class LinkProtectionStrategyTemplateForUMC {
/**
* 设置templateName属性的值
*
* @param value
* allowed object is
* @param value allowed object is
* {@link String }
*
*/
public void setTemplateName(String value) {
this.templateName = value;

View File

@ -1,4 +1,3 @@
package com.dptech.dispose;
import javax.xml.bind.annotation.XmlAccessType;
@ -24,8 +23,6 @@ import javax.xml.bind.annotation.XmlType;
* &lt;/complexContent&gt;
* &lt;/complexType&gt;
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
@ -40,10 +37,8 @@ public class ModBlackAndWhiteListProtectionResponse {
/**
* 获取out属性的值
*
* @return
* possible object is
* @return possible object is
* {@link NtcRequestResultInfo }
*
*/
public NtcRequestResultInfo getOut() {
return out;
@ -52,10 +47,8 @@ public class ModBlackAndWhiteListProtectionResponse {
/**
* 设置out属性的值
*
* @param value
* allowed object is
* @param value allowed object is
* {@link NtcRequestResultInfo }
*
*/
public void setOut(NtcRequestResultInfo value) {
this.out = value;

View File

@ -1,4 +1,3 @@
package com.dptech.dispose;
import javax.xml.bind.annotation.XmlAccessType;
@ -24,8 +23,6 @@ import javax.xml.bind.annotation.XmlType;
* &lt;/complexContent&gt;
* &lt;/complexType&gt;
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
@ -40,10 +37,8 @@ public class ModBlackHoleAutoStrategyForUMCResponse {
/**
* 获取out属性的值
*
* @return
* possible object is
* @return possible object is
* {@link NtcRequestResultInfo }
*
*/
public NtcRequestResultInfo getOut() {
return out;
@ -52,10 +47,8 @@ public class ModBlackHoleAutoStrategyForUMCResponse {
/**
* 设置out属性的值
*
* @param value
* allowed object is
* @param value allowed object is
* {@link NtcRequestResultInfo }
*
*/
public void setOut(NtcRequestResultInfo value) {
this.out = value;

View File

@ -1,4 +1,3 @@
package com.dptech.dispose;
import javax.xml.bind.annotation.XmlAccessType;
@ -26,8 +25,6 @@ import javax.xml.bind.annotation.XmlType;
* &lt;/complexContent&gt;
* &lt;/complexType&gt;
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
@ -48,10 +45,8 @@ public class ModBypassManualTractionStrategyForUMC {
/**
* 获取policyName属性的值
*
* @return
* possible object is
* @return possible object is
* {@link String }
*
*/
public String getPolicyName() {
return policyName;
@ -60,10 +55,8 @@ public class ModBypassManualTractionStrategyForUMC {
/**
* 设置policyName属性的值
*
* @param value
* allowed object is
* @param value allowed object is
* {@link String }
*
*/
public void setPolicyName(String value) {
this.policyName = value;
@ -72,10 +65,8 @@ public class ModBypassManualTractionStrategyForUMC {
/**
* 获取protectName属性的值
*
* @return
* possible object is
* @return possible object is
* {@link String }
*
*/
public String getProtectName() {
return protectName;
@ -84,10 +75,8 @@ public class ModBypassManualTractionStrategyForUMC {
/**
* 设置protectName属性的值
*
* @param value
* allowed object is
* @param value allowed object is
* {@link String }
*
*/
public void setProtectName(String value) {
this.protectName = value;
@ -96,10 +85,8 @@ public class ModBypassManualTractionStrategyForUMC {
/**
* 获取ipRange属性的值
*
* @return
* possible object is
* @return possible object is
* {@link String }
*
*/
public String getIpRange() {
return ipRange;
@ -108,10 +95,8 @@ public class ModBypassManualTractionStrategyForUMC {
/**
* 设置ipRange属性的值
*
* @param value
* allowed object is
* @param value allowed object is
* {@link String }
*
*/
public void setIpRange(String value) {
this.ipRange = value;

View File

@ -1,4 +1,3 @@
package com.dptech.dispose;
import javax.xml.bind.annotation.XmlAccessType;
@ -24,8 +23,6 @@ import javax.xml.bind.annotation.XmlType;
* &lt;/complexContent&gt;
* &lt;/complexType&gt;
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
@ -40,10 +37,8 @@ public class ModDdosCCuserGroupV4ForUMCResponse {
/**
* 获取out属性的值
*
* @return
* possible object is
* @return possible object is
* {@link NtcRequestResultInfo }
*
*/
public NtcRequestResultInfo getOut() {
return out;
@ -52,10 +47,8 @@ public class ModDdosCCuserGroupV4ForUMCResponse {
/**
* 设置out属性的值
*
* @param value
* allowed object is
* @param value allowed object is
* {@link NtcRequestResultInfo }
*
*/
public void setOut(NtcRequestResultInfo value) {
this.out = value;

View File

@ -1,4 +1,3 @@
package com.dptech.dispose;
import javax.xml.bind.annotation.XmlAccessType;
@ -24,8 +23,6 @@ import javax.xml.bind.annotation.XmlType;
* &lt;/complexContent&gt;
* &lt;/complexType&gt;
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
@ -40,10 +37,8 @@ public class ModDdosDnsRetryProtectForUMCResponse {
/**
* 获取out属性的值
*
* @return
* possible object is
* @return possible object is
* {@link NtcRequestResultInfo }
*
*/
public NtcRequestResultInfo getOut() {
return out;
@ -52,10 +47,8 @@ public class ModDdosDnsRetryProtectForUMCResponse {
/**
* 设置out属性的值
*
* @param value
* allowed object is
* @param value allowed object is
* {@link NtcRequestResultInfo }
*
*/
public void setOut(NtcRequestResultInfo value) {
this.out = value;

View File

@ -1,4 +1,3 @@
package com.dptech.dispose;
import javax.xml.bind.annotation.XmlAccessType;
@ -24,8 +23,6 @@ import javax.xml.bind.annotation.XmlType;
* &lt;/complexContent&gt;
* &lt;/complexType&gt;
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
@ -40,10 +37,8 @@ public class ModDnsDomainCustomV4ForUMCResponse {
/**
* 获取out属性的值
*
* @return
* possible object is
* @return possible object is
* {@link NtcRequestResultInfo }
*
*/
public NtcRequestResultInfo getOut() {
return out;
@ -52,10 +47,8 @@ public class ModDnsDomainCustomV4ForUMCResponse {
/**
* 设置out属性的值
*
* @param value
* allowed object is
* @param value allowed object is
* {@link NtcRequestResultInfo }
*
*/
public void setOut(NtcRequestResultInfo value) {
this.out = value;

View File

@ -1,4 +1,3 @@
package com.dptech.dispose;
import javax.xml.bind.annotation.XmlAccessType;
@ -24,8 +23,6 @@ import javax.xml.bind.annotation.XmlType;
* &lt;/complexContent&gt;
* &lt;/complexType&gt;
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
@ -40,10 +37,8 @@ public class ModDnsDomainGlobalV4ForUMCResponse {
/**
* 获取out属性的值
*
* @return
* possible object is
* @return possible object is
* {@link NtcRequestResultInfo }
*
*/
public NtcRequestResultInfo getOut() {
return out;
@ -52,10 +47,8 @@ public class ModDnsDomainGlobalV4ForUMCResponse {
/**
* 设置out属性的值
*
* @param value
* allowed object is
* @param value allowed object is
* {@link NtcRequestResultInfo }
*
*/
public void setOut(NtcRequestResultInfo value) {
this.out = value;

View File

@ -1,4 +1,3 @@
package com.dptech.dispose;
import javax.xml.bind.annotation.XmlAccessType;
@ -24,8 +23,6 @@ import javax.xml.bind.annotation.XmlType;
* &lt;/complexContent&gt;
* &lt;/complexType&gt;
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
@ -40,10 +37,8 @@ public class ModDnsSecDomainCustomV4ForUMCResponse {
/**
* 获取out属性的值
*
* @return
* possible object is
* @return possible object is
* {@link NtcRequestResultInfo }
*
*/
public NtcRequestResultInfo getOut() {
return out;
@ -52,10 +47,8 @@ public class ModDnsSecDomainCustomV4ForUMCResponse {
/**
* 设置out属性的值
*
* @param value
* allowed object is
* @param value allowed object is
* {@link NtcRequestResultInfo }
*
*/
public void setOut(NtcRequestResultInfo value) {
this.out = value;

View File

@ -1,4 +1,3 @@
package com.dptech.dispose;
import javax.xml.bind.annotation.XmlAccessType;
@ -24,8 +23,6 @@ import javax.xml.bind.annotation.XmlType;
* &lt;/complexContent&gt;
* &lt;/complexType&gt;
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
@ -40,10 +37,8 @@ public class ModDnsSecDomainGlobalV4ForUMCResponse {
/**
* 获取out属性的值
*
* @return
* possible object is
* @return possible object is
* {@link NtcRequestResultInfo }
*
*/
public NtcRequestResultInfo getOut() {
return out;
@ -52,10 +47,8 @@ public class ModDnsSecDomainGlobalV4ForUMCResponse {
/**
* 设置out属性的值
*
* @param value
* allowed object is
* @param value allowed object is
* {@link NtcRequestResultInfo }
*
*/
public void setOut(NtcRequestResultInfo value) {
this.out = value;

View File

@ -1,4 +1,3 @@
package com.dptech.dispose;
import javax.xml.bind.annotation.XmlAccessType;
@ -24,8 +23,6 @@ import javax.xml.bind.annotation.XmlType;
* &lt;/complexContent&gt;
* &lt;/complexType&gt;
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
@ -40,10 +37,8 @@ public class ModifyDetectionObjectForUMCResponse {
/**
* 获取out属性的值
*
* @return
* possible object is
* @return possible object is
* {@link NtcRequestResultInfo }
*
*/
public NtcRequestResultInfo getOut() {
return out;
@ -52,10 +47,8 @@ public class ModifyDetectionObjectForUMCResponse {
/**
* 设置out属性的值
*
* @param value
* allowed object is
* @param value allowed object is
* {@link NtcRequestResultInfo }
*
*/
public void setOut(NtcRequestResultInfo value) {
this.out = value;

View File

@ -1,4 +1,3 @@
package com.dptech.dispose;
import javax.xml.bind.annotation.XmlAccessType;
@ -24,8 +23,6 @@ import javax.xml.bind.annotation.XmlType;
* &lt;/complexContent&gt;
* &lt;/complexType&gt;
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
@ -40,10 +37,8 @@ public class ModifyProtectionObjectForUMCResponse {
/**
* 获取out属性的值
*
* @return
* possible object is
* @return possible object is
* {@link NtcRequestResultInfo }
*
*/
public NtcRequestResultInfo getOut() {
return out;
@ -52,10 +47,8 @@ public class ModifyProtectionObjectForUMCResponse {
/**
* 设置out属性的值
*
* @param value
* allowed object is
* @param value allowed object is
* {@link NtcRequestResultInfo }
*
*/
public void setOut(NtcRequestResultInfo value) {
this.out = value;

View File

@ -1,4 +1,3 @@
package com.dptech.dispose;
import javax.xml.bind.JAXBElement;
@ -25,8 +24,6 @@ import javax.xml.bind.annotation.XmlType;
* &lt;/complexContent&gt;
* &lt;/complexType&gt;
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "ProtectionStrategyTemplateForService", namespace = "http://data.ntc.dp.com", propOrder = {
@ -43,10 +40,8 @@ public class ProtectionStrategyTemplateForService {
/**
* 获取description属性的值
*
* @return
* possible object is
* @return possible object is
* {@link JAXBElement }{@code <}{@link String }{@code >}
*
*/
public JAXBElement<String> getDescription() {
return description;
@ -55,10 +50,8 @@ public class ProtectionStrategyTemplateForService {
/**
* 设置description属性的值
*
* @param value
* allowed object is
* @param value allowed object is
* {@link JAXBElement }{@code <}{@link String }{@code >}
*
*/
public void setDescription(JAXBElement<String> value) {
this.description = value;
@ -67,10 +60,8 @@ public class ProtectionStrategyTemplateForService {
/**
* 获取name属性的值
*
* @return
* possible object is
* @return possible object is
* {@link JAXBElement }{@code <}{@link String }{@code >}
*
*/
public JAXBElement<String> getName() {
return name;
@ -79,10 +70,8 @@ public class ProtectionStrategyTemplateForService {
/**
* 设置name属性的值
*
* @param value
* allowed object is
* @param value allowed object is
* {@link JAXBElement }{@code <}{@link String }{@code >}
*
*/
public void setName(JAXBElement<String> value) {
this.name = value;

View File

@ -1,4 +1,3 @@
package com.dptech.dispose;
import javax.xml.bind.JAXBElement;
@ -25,8 +24,6 @@ import javax.xml.bind.annotation.XmlType;
* &lt;/complexContent&gt;
* &lt;/complexType&gt;
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "ProtectionTargetWithStrategyForService", namespace = "http://data.ntc.dp.com", propOrder = {
@ -43,10 +40,8 @@ public class ProtectionTargetWithStrategyForService {
/**
* 获取protectionStrategyName属性的值
*
* @return
* possible object is
* @return possible object is
* {@link JAXBElement }{@code <}{@link String }{@code >}
*
*/
public JAXBElement<String> getProtectionStrategyName() {
return protectionStrategyName;
@ -55,10 +50,8 @@ public class ProtectionTargetWithStrategyForService {
/**
* 设置protectionStrategyName属性的值
*
* @param value
* allowed object is
* @param value allowed object is
* {@link JAXBElement }{@code <}{@link String }{@code >}
*
*/
public void setProtectionStrategyName(JAXBElement<String> value) {
this.protectionStrategyName = value;
@ -67,10 +60,8 @@ public class ProtectionTargetWithStrategyForService {
/**
* 获取protectionTargetName属性的值
*
* @return
* possible object is
* @return possible object is
* {@link JAXBElement }{@code <}{@link String }{@code >}
*
*/
public JAXBElement<String> getProtectionTargetName() {
return protectionTargetName;
@ -79,10 +70,8 @@ public class ProtectionTargetWithStrategyForService {
/**
* 设置protectionTargetName属性的值
*
* @param value
* allowed object is
* @param value allowed object is
* {@link JAXBElement }{@code <}{@link String }{@code >}
*
*/
public void setProtectionTargetName(JAXBElement<String> value) {
this.protectionTargetName = value;

View File

@ -1,4 +1,3 @@
package com.dptech.dispose;
import javax.xml.bind.annotation.XmlAccessType;
@ -24,8 +23,6 @@ import javax.xml.bind.annotation.XmlType;
* &lt;/complexContent&gt;
* &lt;/complexType&gt;
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
@ -40,10 +37,8 @@ public class SetDdosGlobalAckPayloadForUMCResponse {
/**
* 获取out属性的值
*
* @return
* possible object is
* @return possible object is
* {@link NtcRequestResultInfo }
*
*/
public NtcRequestResultInfo getOut() {
return out;
@ -52,10 +47,8 @@ public class SetDdosGlobalAckPayloadForUMCResponse {
/**
* 设置out属性的值
*
* @param value
* allowed object is
* @param value allowed object is
* {@link NtcRequestResultInfo }
*
*/
public void setOut(NtcRequestResultInfo value) {
this.out = value;

View File

@ -1,4 +1,3 @@
package com.dptech.dispose;
import javax.xml.bind.annotation.XmlAccessType;
@ -24,8 +23,6 @@ import javax.xml.bind.annotation.XmlType;
* &lt;/complexContent&gt;
* &lt;/complexType&gt;
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
@ -40,10 +37,8 @@ public class SetDdosGlobalIcmpFragForUMCResponse {
/**
* 获取out属性的值
*
* @return
* possible object is
* @return possible object is
* {@link NtcRequestResultInfo }
*
*/
public NtcRequestResultInfo getOut() {
return out;
@ -52,10 +47,8 @@ public class SetDdosGlobalIcmpFragForUMCResponse {
/**
* 设置out属性的值
*
* @param value
* allowed object is
* @param value allowed object is
* {@link NtcRequestResultInfo }
*
*/
public void setOut(NtcRequestResultInfo value) {
this.out = value;

View File

@ -1,4 +1,3 @@
package com.dptech.dispose;
import javax.xml.bind.annotation.XmlAccessType;
@ -24,8 +23,6 @@ import javax.xml.bind.annotation.XmlType;
* &lt;/complexContent&gt;
* &lt;/complexType&gt;
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
@ -40,10 +37,8 @@ public class SetDdosGlobalIcmpLengthForUMCResponse {
/**
* 获取out属性的值
*
* @return
* possible object is
* @return possible object is
* {@link NtcRequestResultInfo }
*
*/
public NtcRequestResultInfo getOut() {
return out;
@ -52,10 +47,8 @@ public class SetDdosGlobalIcmpLengthForUMCResponse {
/**
* 设置out属性的值
*
* @param value
* allowed object is
* @param value allowed object is
* {@link NtcRequestResultInfo }
*
*/
public void setOut(NtcRequestResultInfo value) {
this.out = value;

View File

@ -1,4 +1,3 @@
package com.dptech.dispose;
import javax.xml.bind.annotation.XmlAccessType;
@ -24,8 +23,6 @@ import javax.xml.bind.annotation.XmlType;
* &lt;/complexContent&gt;
* &lt;/complexType&gt;
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
@ -40,10 +37,8 @@ public class SetDdosGlobalIcmpPayloadForUMCResponse {
/**
* 获取out属性的值
*
* @return
* possible object is
* @return possible object is
* {@link NtcRequestResultInfo }
*
*/
public NtcRequestResultInfo getOut() {
return out;
@ -52,10 +47,8 @@ public class SetDdosGlobalIcmpPayloadForUMCResponse {
/**
* 设置out属性的值
*
* @param value
* allowed object is
* @param value allowed object is
* {@link NtcRequestResultInfo }
*
*/
public void setOut(NtcRequestResultInfo value) {
this.out = value;

View File

@ -1,4 +1,3 @@
package com.dptech.dispose;
import javax.xml.bind.annotation.XmlAccessType;
@ -24,8 +23,6 @@ import javax.xml.bind.annotation.XmlType;
* &lt;/complexContent&gt;
* &lt;/complexType&gt;
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
@ -40,10 +37,8 @@ public class SetDdosGlobalOtherFragForUMCResponse {
/**
* 获取out属性的值
*
* @return
* possible object is
* @return possible object is
* {@link NtcRequestResultInfo }
*
*/
public NtcRequestResultInfo getOut() {
return out;
@ -52,10 +47,8 @@ public class SetDdosGlobalOtherFragForUMCResponse {
/**
* 设置out属性的值
*
* @param value
* allowed object is
* @param value allowed object is
* {@link NtcRequestResultInfo }
*
*/
public void setOut(NtcRequestResultInfo value) {
this.out = value;

View File

@ -1,4 +1,3 @@
package com.dptech.dispose;
import javax.xml.bind.annotation.XmlAccessType;
@ -24,8 +23,6 @@ import javax.xml.bind.annotation.XmlType;
* &lt;/complexContent&gt;
* &lt;/complexType&gt;
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
@ -40,10 +37,8 @@ public class SetDdosGlobalSynFloodForUMCResponse {
/**
* 获取out属性的值
*
* @return
* possible object is
* @return possible object is
* {@link NtcRequestResultInfo }
*
*/
public NtcRequestResultInfo getOut() {
return out;
@ -52,10 +47,8 @@ public class SetDdosGlobalSynFloodForUMCResponse {
/**
* 设置out属性的值
*
* @param value
* allowed object is
* @param value allowed object is
* {@link NtcRequestResultInfo }
*
*/
public void setOut(NtcRequestResultInfo value) {
this.out = value;

View File

@ -1,4 +1,3 @@
package com.dptech.dispose;
import javax.xml.bind.annotation.XmlAccessType;
@ -24,8 +23,6 @@ import javax.xml.bind.annotation.XmlType;
* &lt;/complexContent&gt;
* &lt;/complexType&gt;
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
@ -40,10 +37,8 @@ public class SetDdosGlobalTcpFlagForUMCResponse {
/**
* 获取out属性的值
*
* @return
* possible object is
* @return possible object is
* {@link NtcRequestResultInfo }
*
*/
public NtcRequestResultInfo getOut() {
return out;
@ -52,10 +47,8 @@ public class SetDdosGlobalTcpFlagForUMCResponse {
/**
* 设置out属性的值
*
* @param value
* allowed object is
* @param value allowed object is
* {@link NtcRequestResultInfo }
*
*/
public void setOut(NtcRequestResultInfo value) {
this.out = value;

View File

@ -1,4 +1,3 @@
package com.dptech.dispose;
import javax.xml.bind.annotation.XmlAccessType;
@ -24,8 +23,6 @@ import javax.xml.bind.annotation.XmlType;
* &lt;/complexContent&gt;
* &lt;/complexType&gt;
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
@ -40,10 +37,8 @@ public class SetDdosGlobalTcpFragForUMCResponse {
/**
* 获取out属性的值
*
* @return
* possible object is
* @return possible object is
* {@link NtcRequestResultInfo }
*
*/
public NtcRequestResultInfo getOut() {
return out;
@ -52,10 +47,8 @@ public class SetDdosGlobalTcpFragForUMCResponse {
/**
* 设置out属性的值
*
* @param value
* allowed object is
* @param value allowed object is
* {@link NtcRequestResultInfo }
*
*/
public void setOut(NtcRequestResultInfo value) {
this.out = value;

View File

@ -1,4 +1,3 @@
package com.dptech.dispose;
import javax.xml.bind.annotation.XmlAccessType;
@ -24,8 +23,6 @@ import javax.xml.bind.annotation.XmlType;
* &lt;/complexContent&gt;
* &lt;/complexType&gt;
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
@ -40,10 +37,8 @@ public class SetDdosGlobalTcpLengthForUMCResponse {
/**
* 获取out属性的值
*
* @return
* possible object is
* @return possible object is
* {@link NtcRequestResultInfo }
*
*/
public NtcRequestResultInfo getOut() {
return out;
@ -52,10 +47,8 @@ public class SetDdosGlobalTcpLengthForUMCResponse {
/**
* 设置out属性的值
*
* @param value
* allowed object is
* @param value allowed object is
* {@link NtcRequestResultInfo }
*
*/
public void setOut(NtcRequestResultInfo value) {
this.out = value;

View File

@ -1,4 +1,3 @@
package com.dptech.dispose;
import javax.xml.bind.annotation.XmlAccessType;
@ -24,8 +23,6 @@ import javax.xml.bind.annotation.XmlType;
* &lt;/complexContent&gt;
* &lt;/complexType&gt;
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
@ -40,10 +37,8 @@ public class SetDdosGlobalTcpStateForUMCResponse {
/**
* 获取out属性的值
*
* @return
* possible object is
* @return possible object is
* {@link NtcRequestResultInfo }
*
*/
public NtcRequestResultInfo getOut() {
return out;
@ -52,10 +47,8 @@ public class SetDdosGlobalTcpStateForUMCResponse {
/**
* 设置out属性的值
*
* @param value
* allowed object is
* @param value allowed object is
* {@link NtcRequestResultInfo }
*
*/
public void setOut(NtcRequestResultInfo value) {
this.out = value;

View File

@ -1,4 +1,3 @@
package com.dptech.dispose;
import javax.xml.bind.annotation.XmlAccessType;
@ -24,8 +23,6 @@ import javax.xml.bind.annotation.XmlType;
* &lt;/complexContent&gt;
* &lt;/complexType&gt;
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
@ -40,10 +37,8 @@ public class SetDdosGlobalUdpFragForUMCResponse {
/**
* 获取out属性的值
*
* @return
* possible object is
* @return possible object is
* {@link NtcRequestResultInfo }
*
*/
public NtcRequestResultInfo getOut() {
return out;
@ -52,10 +47,8 @@ public class SetDdosGlobalUdpFragForUMCResponse {
/**
* 设置out属性的值
*
* @param value
* allowed object is
* @param value allowed object is
* {@link NtcRequestResultInfo }
*
*/
public void setOut(NtcRequestResultInfo value) {
this.out = value;

View File

@ -1,4 +1,3 @@
package com.dptech.dispose;
import javax.xml.bind.annotation.XmlAccessType;
@ -24,8 +23,6 @@ import javax.xml.bind.annotation.XmlType;
* &lt;/complexContent&gt;
* &lt;/complexType&gt;
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
@ -40,10 +37,8 @@ public class SetDdosGlobalUdpLengthForUMCResponse {
/**
* 获取out属性的值
*
* @return
* possible object is
* @return possible object is
* {@link NtcRequestResultInfo }
*
*/
public NtcRequestResultInfo getOut() {
return out;
@ -52,10 +47,8 @@ public class SetDdosGlobalUdpLengthForUMCResponse {
/**
* 设置out属性的值
*
* @param value
* allowed object is
* @param value allowed object is
* {@link NtcRequestResultInfo }
*
*/
public void setOut(NtcRequestResultInfo value) {
this.out = value;

View File

@ -1,4 +1,3 @@
package com.dptech.dispose;
import javax.xml.bind.annotation.XmlAccessType;
@ -24,8 +23,6 @@ import javax.xml.bind.annotation.XmlType;
* &lt;/complexContent&gt;
* &lt;/complexType&gt;
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
@ -40,10 +37,8 @@ public class SetDdosGlobalUdpPayloadForUMCResponse {
/**
* 获取out属性的值
*
* @return
* possible object is
* @return possible object is
* {@link NtcRequestResultInfo }
*
*/
public NtcRequestResultInfo getOut() {
return out;
@ -52,10 +47,8 @@ public class SetDdosGlobalUdpPayloadForUMCResponse {
/**
* 设置out属性的值
*
* @param value
* allowed object is
* @param value allowed object is
* {@link NtcRequestResultInfo }
*
*/
public void setOut(NtcRequestResultInfo value) {
this.out = value;

View File

@ -1,4 +1,3 @@
package com.dptech.dispose;
import javax.xml.bind.annotation.XmlAccessType;
@ -24,8 +23,6 @@ import javax.xml.bind.annotation.XmlType;
* &lt;/complexContent&gt;
* &lt;/complexType&gt;
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
@ -40,10 +37,8 @@ public class StartBlackHoleStrategyForUMCResponse {
/**
* 获取out属性的值
*
* @return
* possible object is
* @return possible object is
* {@link NtcRequestResultInfo }
*
*/
public NtcRequestResultInfo getOut() {
return out;
@ -52,10 +47,8 @@ public class StartBlackHoleStrategyForUMCResponse {
/**
* 设置out属性的值
*
* @param value
* allowed object is
* @param value allowed object is
* {@link NtcRequestResultInfo }
*
*/
public void setOut(NtcRequestResultInfo value) {
this.out = value;

View File

@ -1,4 +1,3 @@
package com.dptech.dispose;
import javax.xml.bind.annotation.XmlAccessType;
@ -24,8 +23,6 @@ import javax.xml.bind.annotation.XmlType;
* &lt;/complexContent&gt;
* &lt;/complexType&gt;
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
@ -40,10 +37,8 @@ public class StopBlackHoleStrategyForUMCResponse {
/**
* 获取out属性的值
*
* @return
* possible object is
* @return possible object is
* {@link NtcRequestResultInfo }
*
*/
public NtcRequestResultInfo getOut() {
return out;
@ -52,10 +47,8 @@ public class StopBlackHoleStrategyForUMCResponse {
/**
* 设置out属性的值
*
* @param value
* allowed object is
* @param value allowed object is
* {@link NtcRequestResultInfo }
*
*/
public void setOut(NtcRequestResultInfo value) {
this.out = value;

View File

@ -1,4 +1,3 @@
package com.dptech.dispose;
import javax.xml.bind.annotation.XmlAccessType;
@ -25,8 +24,6 @@ import javax.xml.bind.annotation.XmlType;
* &lt;/complexContent&gt;
* &lt;/complexType&gt;
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
@ -44,10 +41,8 @@ public class StopBypassManualTractionStrategyForUMC {
/**
* 获取policyName属性的值
*
* @return
* possible object is
* @return possible object is
* {@link String }
*
*/
public String getPolicyName() {
return policyName;
@ -56,10 +51,8 @@ public class StopBypassManualTractionStrategyForUMC {
/**
* 设置policyName属性的值
*
* @param value
* allowed object is
* @param value allowed object is
* {@link String }
*
*/
public void setPolicyName(String value) {
this.policyName = value;
@ -68,10 +61,8 @@ public class StopBypassManualTractionStrategyForUMC {
/**
* 获取cleaningDevices属性的值
*
* @return
* possible object is
* @return possible object is
* {@link String }
*
*/
public String getCleaningDevices() {
return cleaningDevices;
@ -80,10 +71,8 @@ public class StopBypassManualTractionStrategyForUMC {
/**
* 设置cleaningDevices属性的值
*
* @param value
* allowed object is
* @param value allowed object is
* {@link String }
*
*/
public void setCleaningDevices(String value) {
this.cleaningDevices = value;

View File

@ -4,11 +4,10 @@ import com.dispose.common.ConstValue;
import com.dispose.mapper.DisposeDeviceMapper;
import com.dispose.pojo.dto.ProtocolReqDTO;
import com.dispose.pojo.entity.DisposeDevice;
import com.dispose.pojo.vo.common.DisposeCapacity;
import com.dispose.pojo.vo.common.IDArrayReq;
import com.fasterxml.jackson.annotation.JsonView;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import java.util.List;
import javax.annotation.Resource;
import lombok.extern.slf4j.Slf4j;
import org.junit.FixMethodOrder;
import org.junit.Test;
@ -21,11 +20,6 @@ import org.springframework.test.annotation.DirtiesContext;
import org.springframework.test.context.junit4.SpringRunner;
import org.springframework.test.web.servlet.MockMvc;
import org.springframework.test.web.servlet.request.MockMvcRequestBuilders;
import javax.annotation.Resource;
import java.util.List;
import static org.springframework.test.web.servlet.result.MockMvcResultHandlers.print;
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.jsonPath;
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status;
@ -134,4 +128,82 @@ public class DeviceNodeInfoControllerTest {
.getResponse()
.getContentAsString();
}
@Test
public void t3_getDeviceProtectedIp() throws Exception {
IDArrayReq reqData = IDArrayReq.builder()
.id(new String[] {String.valueOf(getExistsDeviceId()), "123"})
.build();
ProtocolReqDTO reqInfo = new ProtocolReqDTO();
reqInfo.setVer(ConstValue.Protocol.VERSION);
reqInfo.setCryptoType(ConstValue.Protocol.CRYPTO_NONE);
reqInfo.setTimeStamp(System.currentTimeMillis());
reqInfo.setMsgContent(objectMapper.writeValueAsString(reqData));
log.info("Request Json:" + objectMapper.writeValueAsString(reqInfo));
mockMvc.perform(MockMvcRequestBuilders
.post("/information/protected_ip")
.contentType(MediaType.APPLICATION_JSON)
.header("Authorization", "Bearer 45509b805d955cfd5ef7093e27a8bb99b3733d9a7bf90e88ba528bcbd29c6122")
.content(objectMapper.writeValueAsString(reqInfo)))
.andDo(print()).andExpect(status().isOk())
.andExpect(jsonPath("$.code").value(200))
.andReturn()
.getResponse()
.getContentAsString();
}
@Test
public void t3_getDisposeNodeList() throws Exception {
IDArrayReq reqData = IDArrayReq.builder()
.id(new String[] {String.valueOf(getExistsDeviceId()), "123"})
.build();
ProtocolReqDTO reqInfo = new ProtocolReqDTO();
reqInfo.setVer(ConstValue.Protocol.VERSION);
reqInfo.setCryptoType(ConstValue.Protocol.CRYPTO_NONE);
reqInfo.setTimeStamp(System.currentTimeMillis());
reqInfo.setMsgContent(objectMapper.writeValueAsString(reqData));
log.info("Request Json:" + objectMapper.writeValueAsString(reqInfo));
mockMvc.perform(MockMvcRequestBuilders
.post("/information/node_list")
.contentType(MediaType.APPLICATION_JSON)
.header("Authorization", "Bearer 45509b805d955cfd5ef7093e27a8bb99b3733d9a7bf90e88ba528bcbd29c6122")
.content(objectMapper.writeValueAsString(reqInfo)))
.andDo(print()).andExpect(status().isOk())
.andExpect(jsonPath("$.code").value(200))
.andReturn()
.getResponse()
.getContentAsString();
}
@Test
public void t3_getDisposeNodeDetails() throws Exception {
IDArrayReq reqData = IDArrayReq.builder()
.id(new String[] {String.valueOf(getExistsDeviceId()), "123"})
.build();
ProtocolReqDTO reqInfo = new ProtocolReqDTO();
reqInfo.setVer(ConstValue.Protocol.VERSION);
reqInfo.setCryptoType(ConstValue.Protocol.CRYPTO_NONE);
reqInfo.setTimeStamp(System.currentTimeMillis());
reqInfo.setMsgContent(objectMapper.writeValueAsString(reqData));
log.info("Request Json:" + objectMapper.writeValueAsString(reqInfo));
mockMvc.perform(MockMvcRequestBuilders
.post("/information/node_details")
.contentType(MediaType.APPLICATION_JSON)
.header("Authorization", "Bearer 45509b805d955cfd5ef7093e27a8bb99b3733d9a7bf90e88ba528bcbd29c6122")
.content(objectMapper.writeValueAsString(reqInfo)))
.andDo(print()).andExpect(status().isOk())
.andExpect(jsonPath("$.code").value(200))
.andReturn()
.getResponse()
.getContentAsString();
}
}