Class PathBuilder
java.lang.Object
io.clientcore.annotation.processor.utils.PathBuilder
This class is responsible for building the path of the request URL by replacing the placeholders with the actual
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringbuildPath(String rawPath, HttpRequestContext method) Builds the path of the request URL by replacing the placeholders with the actual values.
-
Method Details
-
buildPath
Builds the path of the request URL by replacing the placeholders with the actual values.- Parameters:
rawPath- The raw host string that contains {} delimited parameters.method- The HttpRequestContext object that contains the method's configuration, parameters, headers, and other details.- Returns:
- The path of the request URL with the placeholders replaced with the actual values.
- Throws:
NullPointerException- If the method is null.MissingSubstitutionException- If a substitution is missing for a placeholder in the raw host string.IllegalArgumentException- If the query parameter key or value is empty.
-