javax.mail.Store.getURLName()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(4.4k)|赞(0)|评价(0)|浏览(153)

本文整理了Java中javax.mail.Store.getURLName()方法的一些代码示例,展示了Store.getURLName()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Store.getURLName()方法的具体详情如下:
包路径:javax.mail.Store
类名称:Store
方法名:getURLName

Store.getURLName介绍

暂无

代码示例

代码示例来源:origin: spring-projects/spring-integration

private void connectStoreIfNecessary() throws MessagingException {
  if (this.store == null) {
    if (this.url != null) {
      this.store = this.session.getStore(this.url);
    }
    else if (this.protocol != null) {
      this.store = this.session.getStore(this.protocol);
    }
    else {
      this.store = this.session.getStore();
    }
  }
  if (!this.store.isConnected()) {
    if (this.logger.isDebugEnabled()) {
      this.logger.debug("connecting to store [" + this.store.getURLName() + "]");
    }
    this.store.connect();
  }
}

代码示例来源:origin: camunda/camunda-bpm-platform

URLName storeURL = getStore().getURLName();
String fullname = getFullName();
StringBuffer encodedName = new StringBuffer();

代码示例来源:origin: com.sun.mail/javax.mail

URLName storeURL = getStore().getURLName();
String fullname = getFullName();
StringBuilder encodedName = new StringBuilder();

代码示例来源:origin: org.apache.geronimo.specs/geronimo-javamail_1.3.1_spec

/**
 * Return the URLName for this folder, which includes the location of the store.
 *
 * @return the URLName for this folder
 * @throws MessagingException
 */
public URLName getURLName() throws MessagingException {
  // todo shouldn't this include the full name of the folder?
  return store.getURLName();
}

代码示例来源:origin: org.apache.jmeter/ApacheJMeter_mail

public MailFileFolder(Store store, String path) {
  super(store);
  String base = store.getURLName().getHost(); // == ServerName from mail sampler
  File parentFolder = new File(base);
  isFile = parentFolder.isFile();
  if (isFile){
    folderPath = new File(base);
  } else {
    folderPath = new File(base,path);
  }
}

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.javax.mail

URLName storeURL = getStore().getURLName();
if (name == null)
  return storeURL;

代码示例来源:origin: org.springframework.integration/spring-integration-mail

private void connectStoreIfNecessary() throws MessagingException {
  if (this.store == null) {
    if (this.url != null) {
      this.store = this.session.getStore(this.url);
    }
    else if (this.protocol != null) {
      this.store = this.session.getStore(this.protocol);
    }
    else {
      this.store = this.session.getStore();
    }
  }
  if (!this.store.isConnected()) {
    if (this.logger.isDebugEnabled()) {
      this.logger.debug("connecting to store [" + this.store.getURLName() + "]");
    }
    this.store.connect();
  }
}

代码示例来源:origin: com.sun.mail/android-mail

URLName storeURL = getStore().getURLName();
String fullname = getFullName();
StringBuilder encodedName = new StringBuilder();

代码示例来源:origin: com.sun.mail/jakarta.mail

URLName storeURL = getStore().getURLName();
String fullname = getFullName();
StringBuilder encodedName = new StringBuilder();

代码示例来源:origin: javax.mail/javax.mail-api

URLName storeURL = getStore().getURLName();
String fullname = getFullName();
StringBuilder encodedName = new StringBuilder();

代码示例来源:origin: org.apache.geronimo.specs/geronimo-javamail_1.4_spec

/**
 * Return the URLName for this folder, which includes the location of the store.
 *
 * @return the URLName for this folder
 * @throws MessagingException
 */
public URLName getURLName() throws MessagingException {
  URLName baseURL = store.getURLName(); 
  return new URLName(baseURL.getProtocol(), baseURL.getHost(), baseURL.getPort(), 
    getFullName(), baseURL.getUsername(), null); 
}

代码示例来源:origin: javax.mail/com.springsource.javax.mail

URLName storeURL = getStore().getURLName();
String fullname = getFullName();
StringBuffer encodedName = new StringBuffer();

代码示例来源:origin: com.sun.mail/mailapi

URLName storeURL = getStore().getURLName();
String fullname = getFullName();
StringBuilder encodedName = new StringBuilder();

代码示例来源:origin: jboss/jboss-javaee-specs

URLName storeURL = getStore().getURLName();
String fullname = getFullName();
StringBuilder encodedName = new StringBuilder();

代码示例来源:origin: org.glassfish.metro/webservices-extra

URLName storeURL = getStore().getURLName();
String fullname = getFullName();
StringBuilder encodedName = new StringBuilder();

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.javax.mail

URLName storeURL = getStore().getURLName();
String fullname = getFullName();
StringBuffer encodedName = new StringBuffer();

代码示例来源:origin: apache/ofbiz-framework

if (store != null && store.getURLName() != null) {
  URLName urlName = this.updateUrlName(store.getURLName(), session.getProperties());
  if (Debug.verboseOn()) {
    Debug.logVerbose("URLName - " + urlName.toString(), module);
  store.close();
} catch (MessagingException e) {
  Debug.logError("Unable to connect to mail store : " + store.getURLName().toString() + " : " + e.getMessage(), module);

相关文章