Package org.xulfactory.gliese.message

Examples of org.xulfactory.gliese.message.DisconnectMessage


      } catch (SSHException se) {
        close();
        throw se;
      }
      if (m.getID() == DisconnectMessage.ID) {
        DisconnectMessage msg = (DisconnectMessage)m;
        GlieseLogger.LOGGER.info("Disconnect message received: " + msg);
        close();
        throw new SSHException(String.format(
          "%s (reason code=%d)", msg.getMessage(),
          msg.getReasonCode()));
      } else if (m.getID() == DebugMessage.ID) {
        DebugMessage msg = (DebugMessage)m;
        if (msg.isAlwaysDisplay()) {
          GlieseLogger.LOGGER.info("Debug message: " + msg.getMessage());
        } else {
          GlieseLogger.LOGGER.debug("Debug message: " + msg.getMessage());
        }
      } else {
        break;
      }
    } while (true);
View Full Code Here

TOP

Related Classes of org.xulfactory.gliese.message.DisconnectMessage

Copyright © 2018 www.massapicom. 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.