Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changes for supporting ctx in payloadFactory #261

Merged
merged 4 commits into from
Jul 20, 2015
Merged

Changes for supporting ctx in payloadFactory #261

merged 4 commits into from
Jul 20, 2015

Conversation

keerthu
Copy link
Contributor

@keerthu keerthu commented Jul 16, 2015

No description provided.

@@ -132,7 +133,9 @@ private boolean mediate(MessageContext synCtx, String format) {
}
org.apache.axis2.context.MessageContext axis2MessageContext = ((Axis2MessageContext) synCtx).getAxis2MessageContext();
StringBuffer result = new StringBuffer();
regexTransform(result, synCtx, format);
StringBuffer resultCTX = new StringBuffer();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't we use result (StringBuffer)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If same variable is used to do the replacing in both (ctx and args) it will append the both results in the payload.

malakasilva added a commit that referenced this pull request Jul 20, 2015
Changes for supporting ctx in payloadFactory
@malakasilva malakasilva merged commit f126d90 into wso2:master Jul 20, 2015

private static final Log log = LogFactory.getLog(PayloadFactoryMediator.class);
private static final Log log = LogFactory.getLog(PayloadFactoryMediator.class);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Formatting issue

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
6 participants