fixed formatting issues

merge-requests/1/head
ayyoob 8 years ago
parent 968fa4f837
commit ed708852dc

@ -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);
} }

Loading…
Cancel
Save