package org.simantics.maps;
import java.io.IOException;
+import java.lang.reflect.InvocationTargetException;
import java.net.HttpURLConnection;
import java.net.InetSocketAddress;
import java.net.MalformedURLException;
protected URI uri;
protected URL service;
- protected HttpURLConnection connection;
-
public WebService(String address) throws URISyntaxException, MalformedURLException {
this.uri = new URI(address);
this.service = uri.toURL();
IProxyUtil util = null;
try {
Class<?> proxyClass = (Class<?>) Class.forName("org.simantics.maps.eclipse.EclipseProxyUtil");
- util = (IProxyUtil)proxyClass.newInstance();
- } catch (ClassNotFoundException e1) {
- } catch (InstantiationException e) {
- } catch (IllegalAccessException e) {
+ util = (IProxyUtil)proxyClass.getDeclaredConstructor().newInstance();
+ } catch (ClassNotFoundException | InstantiationException | IllegalAccessException | IllegalArgumentException
+ | InvocationTargetException | NoSuchMethodException | SecurityException e) {
}
// AppletProxyUtil should exist always..
if(util == null) {