Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@malintha
Created October 8, 2017 05:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save malintha/4d9f378288d4cbcbc73bcbcdd9313453 to your computer and use it in GitHub Desktop.
Save malintha/4d9f378288d4cbcbc73bcbcdd9313453 to your computer and use it in GitHub Desktop.
public class LoggingHandler extends AbstractHandler implements Handler {
private static final Log log = LogFactory.getLog(LogHandler.class);
private String name;
public String getName() {
return name;
}
public InvocationResponse invoke(MessageContext msgContext) throws AxisFault {
log.info(msgContext.getEnvelope().toString());
return InvocationResponse.CONTINUE;
}
public void revoke(MessageContext msgContext) {
log.info(msgContext.getEnvelope().toString());
}
public void setName(String name) {
this.name = name;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment