Created
October 14, 2018 23:09
-
-
Save rajeevshukla/46ce3a2bd30cd308f6205787ac96d902 to your computer and use it in GitHub Desktop.
Configuring Simple Provider
This file contains 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
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