Aias00 commented on code in PR #6266:
URL: https://github.com/apache/shenyu/pull/6266#discussion_r2663353134
##########
shenyu-plugin/shenyu-plugin-mcp-server/src/main/java/org/apache/shenyu/plugin/mcp/server/callback/ShenyuToolCallback.java:
##########
@@ -612,6 +610,23 @@ private void configureShenyuContext(final
ServerWebExchange decoratedExchange,
}
}
+ /**
+ * Safely extracts raw path from a URI string, falling back to original
string on failure.
+ *
+ * @param path the path string to process
+ * @return raw path if URI parsing succeeds, otherwise the original string
+ */
+ private String extractRawPath(final String path) {
+ if (org.apache.commons.lang3.StringUtils.isEmpty(path)) {
Review Comment:
do not use full name , use simple name pls
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]