Class MD5Util
- java.lang.Object
-
- com.alibaba.nacos.config.server.utils.MD5Util
-
public class MD5Util extends Object
轮询逻辑封装类- Author:
- Nacos
-
-
Constructor Summary
Constructors Constructor Description MD5Util()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static List<String>compareMd5(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Map<String,String> clientMd5Map)static StringcompareMd5OldResult(List<String> changedGroupKeys)static StringcompareMd5ResultString(List<String> changedGroupKeys)static longcopy(Reader input, Writer output)static Map<String,String>getClientMd5Map(String configKeysString)解析传输协议 传输协议有两种格式(w为字段分隔符,l为每条数据分隔符): 老报文:D w G w MD5 l 新报文:D w G w MD5 w T lstatic StringtoString(InputStream input, String encoding)static StringtoString(Reader reader)
-
-
-
Method Detail
-
compareMd5
public static List<String> compareMd5(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Map<String,String> clientMd5Map)
-
compareMd5ResultString
public static String compareMd5ResultString(List<String> changedGroupKeys) throws IOException
- Throws:
IOException
-
getClientMd5Map
public static Map<String,String> getClientMd5Map(String configKeysString)
解析传输协议 传输协议有两种格式(w为字段分隔符,l为每条数据分隔符): 老报文:D w G w MD5 l 新报文:D w G w MD5 w T l- Parameters:
configKeysString- 协议字符串- Returns:
- 协议报文
-
toString
public static String toString(InputStream input, String encoding) throws IOException
- Throws:
IOException
-
toString
public static String toString(Reader reader) throws IOException
- Throws:
IOException
-
copy
public static long copy(Reader input, Writer output) throws IOException
- Throws:
IOException
-
-