Examples of disconnect()


Examples of javax.net.ssl.HttpsURLConnection.disconnect()

  } else if (sSourceURI.startsWith("https://")) {
    try {
        URL oUrl = new URL(sSourceURI);
      HttpsURLConnection oCon = (HttpsURLConnection) oUrl.openConnection();
      int iResponseCode = oCon.getResponseCode();
      oCon.disconnect();
      bExists = (iResponseCode>=200 && iResponseCode<=299);
      } catch (MalformedURLException mue) {
        throw new IOException(mue.getMessage());
      }
  }
View Full Code Here

Examples of javax.obex.ClientSession.disconnect()

                    outputStream.write(filebytes);
                    updateStatus("[CLIENT] File push complete");
                } finally {
                    outputStream.close();
                    putOperation.close();
                    cs.disconnect(null);
                    connection.close();
                    updateStatus("[CLIENT] Connection Closed");
                }
            } catch (final Exception e) {
                BluetoothJSR82Demo.errorDialog(e.toString());
View Full Code Here

Examples of javax.smartcardio.Card.disconnect()

        try {
          IsoDepTamaCommunicator tamaCommunicator = new IsoDepTamaCommunicator(readerWriter, readerWriter);
          tamaCommunicator.connectAsInitiator();
        }
        catch (Exception e1) {
          card.disconnect(true);
          e1.printStackTrace();
          try {
            Thread.sleep(1000);
          }
          catch (InterruptedException e) {
View Full Code Here

Examples of lcmc.host.domain.Host.disconnect()

            cluster.addHost(host);
            final String saveFile = application.getDefaultSaveFile();
            application.saveConfig(saveFile, false);
        }
        for (final Host host : hosts) {
            host.disconnect();
        }
        cluster.connect(null, true, 0);
        for (final Host host : hosts) {
            final boolean r = waitForCondition(
                new Condition() {
View Full Code Here

Examples of modbuspal.automation.AutomationPanel.disconnect()

        AutomationPanel panel = findAutomationPanel(automation);

        if( panel != null )
        {
            // the dialog will be disconnect, so remove it too:
            panel.disconnect();

            // remove panel from the list
            automationsListPanel.remove( panel );

            // force the list to redo the layout
View Full Code Here

Examples of muduo.rpc.RpcChannel.disconnect()

        //sendRequest(channel, client);
        BlockingInterface remoteService = Sudoku.SudokuService.newBlockingStub(channel);
        SudokuRequest request = SudokuRequest.newBuilder().setCheckerboard("001010").build();
        SudokuResponse response = remoteService.solve(null, request);
        System.out.println(response);
        channel.disconnect();
        client.stop();
    }

    @SuppressWarnings("unused")
    private static void asyncConnect(InetSocketAddress addr) {
View Full Code Here

Examples of net.md_5.bungee.api.connection.ProxiedPlayer.disconnect()

        // Check for multiple connections
        ProxiedPlayer old = bungee.getPlayer( getName() );
        if ( old != null )
        {
            // TODO See #1218
            old.disconnect( bungee.getTranslation( "already_connected" ) );
        }

        offlineId = java.util.UUID.nameUUIDFromBytes( ( "OfflinePlayer:" + getName() ).getBytes( Charsets.UTF_8 ) );
        if ( uniqueId == null )
        {
View Full Code Here

Examples of net.neoremind.sshxcute.core.SSHExec.disconnect()

                            e1.printStackTrace();
                                }
                                finally
                                {
                                LogIp.logExecution();
                                    ssh.disconnect();  
                                }
                               
                        }
                }
                else if(source==restart_dialer)
View Full Code Here

Examples of net.schmizz.sshj.SSHClient.disconnect()

            // Wait for session & X11 channel to get closed
            ssh.getConnection().join();

        } finally {
            ssh.disconnect();
        }
    }
}
View Full Code Here

Examples of net.sf.jftp.net.BasicConnection.disconnect()

        if((con != null) && con.isConnected())
        {
            try
            {
                con.disconnect();
            }
            catch(Exception ex)
            {
            }
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.