如何使用部分小写解码URL?

时间:2017-08-18 16:24:58

标签: java url java-8 decoding

我有编码链接。解码后

String decodedURL = URLDecoder.decode(encodedLink, "UTF-8");
String delims = "[u, &]";
String[] splittedURL = decodedURL.split(delims);
String resultURL = splittedURL[1].substring(1);

我得到下一个链接:

http://example.com?I=vNjWAwAAAABfva85AgAAAABR%2Fv%2F%2F%2FwD%2F%2F%2F%2F%2FBGNhdnMA%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F8%3D

但在这一部分:

%2Fv%2F%2F%2FwD%2F%2F%2F%2F%2FBGNhdnMA%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F8%3D

我需要只有小写的“F”和“D”字母: F - > F, D - > d。 是否可以执行解码,之后这些字母将为小写,而不会拆分解码的链接并制作必要的字母

.toLowerCase();

0 个答案:

没有答案