Code example for Constructor

Methods: setAccessiblenewInstance

    if (webViewCoreClass != null && proxyPropertiesClass != null) {
      Method m =
          webViewCoreClass.getDeclaredMethod("sendStaticMessage", Integer.TYPE, Object.class);
      Constructor c = proxyPropertiesClass.getConstructor(String.class, Integer.TYPE, String.class);
      Object properties = c.newInstance(host, port, null);
      m.invoke(null, PROXY_CHANGED, properties);
      return true; 
    return false; 
  private static void setSystemProperties(String host, int port) {
    System.setProperty("http.proxyHost", host);
    System.setProperty("http.proxyPort", port + "");
    System.setProperty("https.proxyHost", host);
    System.setProperty("https.proxyPort", port + "");
Connect your IDE to all the code out there  Get Codota for Java