/** * Close socket connection. * * This method just makes the Protocol.disconnect() method * public. */ public void disconnect() { super.disconnect(); authenticated = false; // just in case }
/** * Close socket connection. * * This method just makes the Protocol.disconnect() method * public. */ @Override public void disconnect() { super.disconnect(); authenticated = false; // just in case }
/** * Finalizer. */ protected void finalize() throws Throwable { try { disconnect(); } finally { super.finalize(); } }
/** * Finalizer. */ @Override protected void finalize() throws Throwable { try { disconnect(); } finally { super.finalize(); } }
/** * Convenience routine to handle OK, NO, BAD and BYE responses. * * @param response the response * @exception ProtocolException for protocol failures */ public void handleResult(Response response) throws ProtocolException { if (response.isOK()) return; else if (response.isNO()) throw new CommandFailedException(response); else if (response.isBAD()) throw new BadCommandException(response); else if (response.isBYE()) { disconnect(); throw new ConnectionException(this, response); } }
/** * Convenience routine to handle OK, NO, BAD and BYE responses. * * @param response the response * @exception ProtocolException for protocol failures */ public void handleResult(Response response) throws ProtocolException { if (response.isOK()) return; else if (response.isNO()) throw new CommandFailedException(response); else if (response.isBAD()) throw new BadCommandException(response); else if (response.isBYE()) { disconnect(); throw new ConnectionException(this, response); } }
/** * Close socket connection. * * This method just makes the Protocol.disconnect() method * public. */ public void disconnect() { super.disconnect(); authenticated = false; // just in case }
/** * Close socket connection. * * This method just makes the Protocol.disconnect() method * public. */ @Override public void disconnect() { super.disconnect(); authenticated = false; // just in case }
/** * Close socket connection. * * This method just makes the Protocol.disconnect() method * public. */ public void disconnect() { super.disconnect(); authenticated = false; // just in case }
/** * Close socket connection. * * This method just makes the Protocol.disconnect() method * public. */ @Override public void disconnect() { super.disconnect(); authenticated = false; // just in case }
/** * Close socket connection. * * This method just makes the Protocol.disconnect() method * public. */ @Override public void disconnect() { super.disconnect(); authenticated = false; // just in case }
/** * Close socket connection. * * This method just makes the Protocol.disconnect() method * public. */ @Override public void disconnect() { super.disconnect(); authenticated = false; // just in case }
/** * Finalizer. */ protected void finalize() throws Throwable { super.finalize(); disconnect(); } }
/** * Finalizer. */ @Override protected void finalize() throws Throwable { try { disconnect(); } finally { super.finalize(); } }
/** * Finalizer. */ protected void finalize() throws Throwable { super.finalize(); disconnect(); }
/** * Finalizer. */ @Override protected void finalize() throws Throwable { try { disconnect(); } finally { super.finalize(); } }
/** * Finalizer. */ @Override protected void finalize() throws Throwable { try { disconnect(); } finally { super.finalize(); } }
/** * Finalizer. */ @Override protected void finalize() throws Throwable { try { disconnect(); } finally { super.finalize(); } }