Skip to content

Instantly share code, notes, and snippets.

@ssisaias
Created April 17, 2019 16:48
Show Gist options
  • Save ssisaias/2f0a86f079982052bc38d4528d3fd2a5 to your computer and use it in GitHub Desktop.
Save ssisaias/2f0a86f079982052bc38d4528d3fd2a5 to your computer and use it in GitHub Desktop.
public boolean mediate(MessageContext context) {
try {
log.warn("OPERATION: ");
Axis2MessageContext axis2MsgCtx = ((Axis2MessageContext) context);
Iterator<String> propNames = axis2MsgCtx.getAxis2MessageContext().getOperationContext().getPropertyNames();
while(propNames.hasNext()) {
String propKey = propNames.next();
log.warn("NAME - "+ propKey + " VALUE - " + axis2MsgCtx.getAxis2MessageContext().getOperationContext().getProperty(propKey).toString());
}
log.warn("AXIS2: ");
propNames = axis2MsgCtx.getAxis2MessageContext().getPropertyNames();
while(propNames.hasNext()) {
String propKey_ = propNames.next();
log.warn("NAME - "+ propKey_ + " VALUE - " + axis2MsgCtx.getAxis2MessageContext().getProperty(propKey_).toString());
}
}
catch(Exception e) {
log.error(e);
}
return true;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment