fixed formatting issues

This commit is contained in:
ayyoob 2016-10-25 13:58:01 +05:30
parent 968fa4f837
commit ed708852dc

View File

@ -114,11 +114,9 @@ public class OAuthTokenValidaterStubFactory extends BasePoolableObjectFactory {
client.setOptions(options); client.setOptions(options);
if (hostURL.getProtocol().equals("https")) { if (hostURL.getProtocol().equals("https")) {
// set up ssl factory since axis2 https transport is used. // set up ssl factory since axis2 https transport is used.
EasySSLProtocolSocketFactory sslProtocolSocketFactory = EasySSLProtocolSocketFactory sslProtocolSocketFactory = createProtocolSocketFactory();
createProtocolSocketFactory(); Protocol authhttps = new Protocol(hostURL.getProtocol()
Protocol authhttps = new Protocol(hostURL.getProtocol(), , (ProtocolSocketFactory) sslProtocolSocketFactory, hostURL.getPort());
(ProtocolSocketFactory) sslProtocolSocketFactory,
hostURL.getPort());
Protocol.registerProtocol(hostURL.getProtocol(), authhttps); Protocol.registerProtocol(hostURL.getProtocol(), authhttps);
options.setProperty(HTTPConstants.CUSTOM_PROTOCOL_HANDLER, authhttps); options.setProperty(HTTPConstants.CUSTOM_PROTOCOL_HANDLER, authhttps);
} }