store.close();
/** 关闭mail服务器的连接。 */ @Override public void close() { if (store != null) { try { store.close(); } catch (MessagingException e) { } finally { store = null; } } }
/** 关闭mail服务器的连接。 */ @Override public void close() { if (store != null) { try { store.close(); } catch (MessagingException e) { } finally { store = null; } } }
clearFilters(); if ( this.store != null ) { this.store.close(); this.store = null;
synchronized void close(boolean force) throws MessagingException { try { if (port != null) { if (force) port.close(); else port.quit(); } } catch (IOException ioex) { } finally { port = null; // to set the state and send the closed connection event super.close(); } }
synchronized void close(boolean force) throws MessagingException { try { if (port != null) { if (force) port.close(); else port.quit(); } } catch (IOException ioex) { } finally { port = null; // to set the state and send the closed connection event super.close(); } }
super.close(); // notifies listeners } catch (MessagingException mex) {
super.close(); // notifies listeners } catch (MessagingException mex) {
@Override public void close(boolean expunge) throws MessagingException { this.store.close(); isOpen = false; }
/** * disconnect from server */ @Override public void disconnect() throws MessagingException { store.close(); }
super.close(); } catch (MessagingException mex) {
super.close(); } catch (MessagingException mex) {
public void close() throws Exception { if (store != null) { LOGGER.debug("close the store"); store.close(); store = null; } }
@Override protected void doClose() throws IOException { try { inboxFolder.close(true); store.close(); } catch (MessagingException me) { throw new IOException(me); } }
public static void DisconnectFromRemote() { try { store.close(); } catch (MessagingException e) { // TODO Auto-generated catch block e.printStackTrace(); } }
public synchronized void close() throws MessagingException { try { if (port != null) port.quit(); } catch (IOException ioex) { } finally { port = null; // to set the state and send the closed connection event super.close(); } }
public void close() throws IOException { super.close(); try { folder.close( false ); store.close(); } catch( MessagingException e ) { throw new IOException( e.toString() ); } }
public void close() throws IOException { super.close(); try { folder.close( false ); store.close(); } catch( MessagingException e ) { throw new IOException( e.toString() ); } }
protected void closeStore(boolean success, Store store, Folder folder) throws MessagingException { try { if (folder != null && folder.isOpen()) { folder.close(success); } } finally { if (store != null && store.isConnected()) { store.close(); } } }
protected void closeStore(boolean success, Store store, Folder folder) throws MessagingException { try { if (folder != null && folder.isOpen()) { folder.close(success && flush); } } finally { if (store != null && store.isConnected()) { store.close(); } } }