Created
April 17, 2019 16:48
-
-
Save ssisaias/2f0a86f079982052bc38d4528d3fd2a5 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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