本文整理了Java中javax.mail.Store.close()
方法的一些代码示例,展示了Store.close()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Store.close()
方法的具体详情如下:
包路径:javax.mail.Store
类名称:Store
方法名:close
暂无
代码示例来源:origin: igniterealtime/Openfire
store.close();
代码示例来源:origin: webx/citrus
/** 关闭mail服务器的连接。 */
@Override
public void close() {
if (store != null) {
try {
store.close();
} catch (MessagingException e) {
} finally {
store = null;
}
}
}
代码示例来源:origin: webx/citrus
/** 关闭mail服务器的连接。 */
@Override
public void close() {
if (store != null) {
try {
store.close();
} catch (MessagingException e) {
} finally {
store = null;
}
}
}
代码示例来源:origin: pentaho/pentaho-kettle
clearFilters();
if ( this.store != null ) {
this.store.close();
this.store = null;
代码示例来源:origin: camunda/camunda-bpm-platform
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();
}
}
代码示例来源:origin: com.sun.mail/javax.mail
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();
}
}
代码示例来源:origin: camunda/camunda-bpm-platform
super.close(); // notifies listeners
} catch (MessagingException mex) {
代码示例来源:origin: com.sun.mail/javax.mail
super.close(); // notifies listeners
} catch (MessagingException mex) {
代码示例来源:origin: org.apache.jmeter/ApacheJMeter_mail
@Override
public void close(boolean expunge) throws MessagingException {
this.store.close();
isOpen = false;
}
代码示例来源:origin: com.infotel.seleniumRobot/core
/**
* disconnect from server
*/
@Override
public void disconnect() throws MessagingException {
store.close();
}
代码示例来源:origin: camunda/camunda-bpm-platform
super.close();
} catch (MessagingException mex) {
代码示例来源:origin: com.sun.mail/javax.mail
super.close();
} catch (MessagingException mex) {
代码示例来源:origin: org.camunda.bpm.extension/camunda-bpm-mail-core
public void close() throws Exception {
if (store != null) {
LOGGER.debug("close the store");
store.close();
store = null;
}
}
代码示例来源:origin: uk.gov.dstl.baleen/baleen-collectionreaders
@Override
protected void doClose() throws IOException {
try {
inboxFolder.close(true);
store.close();
} catch (MessagingException me) {
throw new IOException(me);
}
}
代码示例来源:origin: nbenm/ImapNote2
public static void DisconnectFromRemote() {
try {
store.close();
} catch (MessagingException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.javax.mail
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();
}
}
代码示例来源:origin: it.unimi.dsi/mg4j
public void close() throws IOException {
super.close();
try {
folder.close( false );
store.close();
}
catch( MessagingException e ) {
throw new IOException( e.toString() );
}
}
代码示例来源:origin: it.unimi.di/mg4j-big
public void close() throws IOException {
super.close();
try {
folder.close( false );
store.close();
}
catch( MessagingException e ) {
throw new IOException( e.toString() );
}
}
代码示例来源:origin: org.jboss.jbossas/jboss-as-connector
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();
}
}
}
代码示例来源:origin: org.jboss.jbossas/jboss-as-connector
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();
}
}
}
内容来源于网络,如有侵权,请联系作者删除!