Skip to content

Instantly share code, notes, and snippets.

@rajeevshukla
Created October 14, 2018 23:09
Show Gist options
  • Save rajeevshukla/46ce3a2bd30cd308f6205787ac96d902 to your computer and use it in GitHub Desktop.
Save rajeevshukla/46ce3a2bd30cd308f6205787ac96d902 to your computer and use it in GitHub Desktop.
Configuring Simple Provider
private static SimpleProvider configureAxisLogger() {
SimpleProvider clientConfig = new SimpleProvider();
AxisLogHandler logHandler = new AxisLogHandler();
SimpleChain reqHandler = new SimpleChain();
SimpleChain respHandler = new SimpleChain();
reqHandler.addHandler(logHandler);
respHandler.addHandler(logHandler);
Handler pivot = new HTTPSender();
Handler transport = new SimpleTargetedChain(reqHandler, pivot, respHandler);
clientConfig.deployTransport(HTTPTransport.DEFAULT_TRANSPORT_NAME, transport);
return clientConfig;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment