We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e6ed3b2 + a1c4b84 commit 30fcf8eCopy full SHA for 30fcf8e
src/main/java/com/aspose/asposecloudpdf/ApiClient.java
@@ -531,6 +531,22 @@ public String escapeString(String str) {
531
return str;
532
}
533
534
+
535
+ /**
536
+ * Escape the given string to be used as URL segment value.
537
+ *
538
+ * @param str String to be escaped
539
+ * @return Escaped string
540
+ */
541
+ public String escapePathSegmentString(String str) {
542
+ try {
543
+ return URLEncoder.encode(str, "utf8")
544
+ .replaceAll("\\+", "%20")
545
+ .replaceAll("%2F", "/");
546
+ } catch (UnsupportedEncodingException e) {
547
+ return str;
548
+ }
549
550
551
/**
552
* Deserialize response body to Java object, according to the return type and
0 commit comments