Skip to content

Commit

Permalink
Merge pull request #2308 from GDLMadushanka/pathParam
Browse files Browse the repository at this point in the history
Change uriParams to pathParams
  • Loading branch information
GDLMadushanka authored Jan 27, 2025
2 parents 80c2313 + 6bca51a commit e3f699b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public ExpressionResult evaluate(EvaluationContext context, boolean isObjectValu
} else if (Type.FUNCTION_PARAM.equals(type)) {
value = context.getFunctionParam(name);
} else {
if (ExpressionConstants.URI_PARAM.equals(scope)) {
if (ExpressionConstants.PATH_PARAM.equals(scope)) {
value = context.getProperty("uri.var." + name, SynapseConstants.SYNAPSE);
} else if (ExpressionConstants.QUERY_PARAM.equals(scope)) {
value = context.getProperty("query.param." + name, SynapseConstants.SYNAPSE);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public class ExpressionConstants {
public static final String SYNAPSE_EXPRESSION_IDENTIFIER_END = "}";
public static final String AXIS2 = "axis2";
public static final String QUERY_PARAM = "queryParams";
public static final String URI_PARAM = "uriParams";
public static final String PATH_PARAM = "pathParams";
public static final String FUNC_PARAM = "functionParams";


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -554,8 +554,8 @@ public ExpressionNode visitParameterAccess(ExpressionParser.ParameterAccessConte
case ExpressionConstants.QUERY_PARAM:
return new HeadersAndPropertiesAccessNode(visit(ctx.propertyName()),
ExpressionConstants.QUERY_PARAM);
case ExpressionConstants.URI_PARAM:
return new HeadersAndPropertiesAccessNode(visit(ctx.propertyName()), ExpressionConstants.URI_PARAM);
case ExpressionConstants.PATH_PARAM:
return new HeadersAndPropertiesAccessNode(visit(ctx.propertyName()), ExpressionConstants.PATH_PARAM);
case ExpressionConstants.FUNC_PARAM:
return new HeadersAndPropertiesAccessNode(visit(ctx.propertyName()),
HeadersAndPropertiesAccessNode.Type.FUNCTION_PARAM);
Expand Down

0 comments on commit e3f699b

Please sign in to comment.