parent
89048bd1d9
commit
bc14fc7989
|
@ -41,4 +41,9 @@ public class AuthConfigValue {
|
|||
* The constant AUTH_WHITE_LIST_CHECK.
|
||||
*/
|
||||
public static volatile boolean AUTH_WHITE_LIST_CHECK = true;
|
||||
|
||||
/**
|
||||
* Instantiates a new Auth config value.
|
||||
*/
|
||||
private AuthConfigValue() {}
|
||||
}
|
||||
|
|
|
@ -100,4 +100,8 @@ public class ConstValue {
|
|||
return ConstValue.IP_ADDR_SEGMENT_REG;
|
||||
}
|
||||
|
||||
/**
|
||||
* Instantiates a new Const value.
|
||||
*/
|
||||
private ConstValue() {}
|
||||
}
|
||||
|
|
|
@ -7,6 +7,11 @@ package com.dispose.common;
|
|||
*/
|
||||
public class DisposeConfigValue {
|
||||
|
||||
/**
|
||||
* Instantiates a new Dispose config value.
|
||||
*/
|
||||
private DisposeConfigValue() {}
|
||||
|
||||
/**
|
||||
* The constant CHECK_PROTO_REQUEST_TIMEOUT.
|
||||
*/
|
||||
|
@ -47,5 +52,8 @@ public class DisposeConfigValue {
|
|||
*/
|
||||
public static volatile int MIN_SPLIT_PAGE_SIZE = 10;
|
||||
|
||||
/**
|
||||
* The constant ENABLE_UTEST_MOCK.
|
||||
*/
|
||||
public static volatile boolean ENABLE_UTEST_MOCK = false;
|
||||
}
|
||||
|
|
|
@ -7,11 +7,16 @@ package com.dispose.common;
|
|||
*/
|
||||
public class DpTechConfigValue {
|
||||
/**
|
||||
* The constant SOAP_CONNECT_TIMEOUT.
|
||||
* Instantiates a new Dp tech config value.
|
||||
*/
|
||||
private DpTechConfigValue () {}
|
||||
|
||||
/**
|
||||
* The constant SOAP_CONNECT_TIMEOUT_SECOND.
|
||||
*/
|
||||
public static volatile long SOAP_CONNECT_TIMEOUT_SECOND = 60;
|
||||
/**
|
||||
* The constant SOAP_RECEIVE_TIMEOUT.
|
||||
* The constant SOAP_RECEIVE_TIMEOUT_SECOND.
|
||||
*/
|
||||
public static volatile long SOAP_RECEIVE_TIMEOUT_SECOND = 60;
|
||||
}
|
||||
|
|
|
@ -23,6 +23,11 @@ import java.util.stream.Collectors;
|
|||
*/
|
||||
public class Helper {
|
||||
|
||||
/**
|
||||
* Instantiates a new Helper.
|
||||
*/
|
||||
private Helper () {}
|
||||
|
||||
/**
|
||||
* Gets current datetime.
|
||||
*
|
||||
|
|
|
@ -10,6 +10,12 @@ import inet.ipaddr.IPAddressString;
|
|||
* @author <huangxin@cmhi.chinamoblie.com>
|
||||
*/
|
||||
public class PrivacyHelper {
|
||||
|
||||
/**
|
||||
* Instantiates a new Privacy helper.
|
||||
*/
|
||||
private PrivacyHelper() {}
|
||||
|
||||
/**
|
||||
* Ip address privacy string.
|
||||
*
|
||||
|
|
|
@ -6,6 +6,12 @@ package com.dispose.common;
|
|||
* @author <huangxin@cmhi.chinamoblie.com>
|
||||
*/
|
||||
public class SecurityConfigValue {
|
||||
|
||||
/**
|
||||
* Instantiates a new Security config value.
|
||||
*/
|
||||
private SecurityConfigValue() {}
|
||||
|
||||
/**
|
||||
* The constant AES_KEY.
|
||||
*/
|
||||
|
|
|
@ -22,12 +22,25 @@ import java.util.Map;
|
|||
*/
|
||||
@Slf4j
|
||||
public class RestfulInterface {
|
||||
/**
|
||||
* Instantiates a new Restful interface.
|
||||
*/
|
||||
private RestfulInterface () {}
|
||||
|
||||
/**
|
||||
* The constant timeOutValue.
|
||||
*/
|
||||
private static int timeOutValue = 1000;
|
||||
/**
|
||||
* The constant OBJECT_MAPPER.
|
||||
*/
|
||||
private static final ObjectMapper OBJECT_MAPPER = new ObjectMapper();
|
||||
|
||||
/**
|
||||
* Init env.
|
||||
*
|
||||
* @param timeout the timeout
|
||||
*/
|
||||
public static void initEnv(int timeout) {
|
||||
RestfulInterface.timeOutValue = timeout;
|
||||
}
|
||||
|
|
|
@ -23,6 +23,11 @@ import java.security.SecureRandom;
|
|||
@Slf4j
|
||||
public class CryptoHelper {
|
||||
|
||||
/**
|
||||
* Instantiates a new Crypto helper.
|
||||
*/
|
||||
private CryptoHelper() {}
|
||||
|
||||
/**
|
||||
* The constant AES_ALGORITHM_STR.
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue