parent
548914f306
commit
5de17d4478
2
pom.xml
2
pom.xml
|
@ -18,7 +18,7 @@
|
|||
</parent>
|
||||
<groupId>com.dispose</groupId>
|
||||
<artifactId>phoenix_ddos_handle</artifactId>
|
||||
<version>2.0.1</version>
|
||||
<version>2.0.3</version>
|
||||
<name>phoenix_ddos_handle</name>
|
||||
<description>Dispose Platform</description>
|
||||
<dependencies>
|
||||
|
|
|
@ -1,8 +1,7 @@
|
|||
package com.dispose.ability.impl;
|
||||
|
||||
import com.dispose.ability.DisposeAbility;
|
||||
|
||||
import cn.hutool.http.HttpResponse;
|
||||
import com.dispose.ability.DisposeAbility;
|
||||
import com.dispose.common.DisposeCapacityType;
|
||||
import com.dispose.common.DisposeObjectType;
|
||||
import com.dispose.common.ErrorCode;
|
||||
|
@ -22,6 +21,11 @@ import org.springframework.stereotype.Component;
|
|||
import javax.annotation.Nullable;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
/**
|
||||
* The type Hua wei ability.
|
||||
*
|
||||
* @author <huangxin@cmhi.chinamoblie.com>
|
||||
*/
|
||||
@Component
|
||||
@Slf4j
|
||||
public class HuaWeiAbilityImpl implements DisposeAbility {
|
||||
|
|
|
@ -10,18 +10,18 @@ import org.springframework.web.bind.annotation.RequestMethod;
|
|||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
/**
|
||||
* The type Hua Wei interface.
|
||||
* The type Hua wei interface.
|
||||
*
|
||||
* @author <chenlinghy@cmhi.chinamoblie.com>
|
||||
* @author <huangxin@cmhi.chinamoblie.com>
|
||||
*/
|
||||
public class HuaWeiInterface {
|
||||
/**
|
||||
* Login protocol resp dto.
|
||||
* Auth http response.
|
||||
*
|
||||
* @param baseUrlPath the base url path
|
||||
* @param username the username
|
||||
* @param password the password
|
||||
* @return the http resp
|
||||
* @return the http response
|
||||
*/
|
||||
public HttpResponse auth(String baseUrlPath, String username, String password) {
|
||||
return RestfulInterface.huaWeiProRun(baseUrlPath + "/auth",
|
||||
|
@ -32,12 +32,12 @@ public class HuaWeiInterface {
|
|||
|
||||
|
||||
/**
|
||||
* create divert protocol resp dto.
|
||||
* Create divert error code.
|
||||
*
|
||||
* @param baseUrlPath the base url path
|
||||
* @param token the token
|
||||
* @param zone_ip zone ip
|
||||
* @return the delete zone status
|
||||
* @param zone_ip the zone ip
|
||||
* @return the error code
|
||||
*/
|
||||
public ErrorCode createDivert(String baseUrlPath, String token, String[] zone_ip) {
|
||||
//获取HTTP部分
|
||||
|
@ -65,11 +65,11 @@ public class HuaWeiInterface {
|
|||
|
||||
|
||||
/**
|
||||
* delete divert protocol resp dto.
|
||||
* Delete zones error code.
|
||||
*
|
||||
* @param baseUrlPath the base url path
|
||||
* @param token the token
|
||||
* @return the delete zone status
|
||||
* @return the error code
|
||||
*/
|
||||
public ErrorCode deleteZones(String baseUrlPath, String token) {
|
||||
//获取HTTP部分
|
||||
|
@ -96,11 +96,11 @@ public class HuaWeiInterface {
|
|||
}
|
||||
|
||||
/**
|
||||
* query all zones protocol resp dto.
|
||||
* Query all zones http response.
|
||||
*
|
||||
* @param baseUrlPath the base url path
|
||||
* @param token the token
|
||||
* @return the http resp
|
||||
* @return the http response
|
||||
*/
|
||||
public HttpResponse queryAllZones(String baseUrlPath, String token) {
|
||||
return RestfulInterface.huaWeiProRun(baseUrlPath,
|
||||
|
|
Loading…
Reference in New Issue