本文整理了Java中javax.mail.Header.<init>()
方法的一些代码示例,展示了Header.<init>()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Header.<init>()
方法的具体详情如下:
包路径:javax.mail.Header
类名称:Header
方法名:<init>
[英]Construct a Header object.
[中]构造一个Header对象。
代码示例来源:origin: pentaho/pentaho-kettle
when( message.getSize() ).thenReturn( CNTNT_SIZE );
Header ex1 = new Header( HDR_EX1, HDR_EX1V );
Header ex2 = new Header( HDR_EX2, HDR_EX2V );
代码示例来源:origin: camunda/camunda-bpm-platform
public Object nextElement() {
if (next_header == null)
next_header = nextMatch();
if (next_header == null)
throw new NoSuchElementException("No more headers");
InternetHeader h = next_header;
next_header = null;
if (want_line)
return h.line;
else
return new Header(h.getName(), h.getValue());
}
代码示例来源:origin: com.sun.mail/javax.mail
public Object nextElement() {
if (next_header == null)
next_header = nextMatch();
if (next_header == null)
throw new NoSuchElementException("No more headers");
InternetHeader h = next_header;
next_header = null;
if (want_line)
return h.line;
else
return new Header(h.getName(), h.getValue());
}
代码示例来源:origin: org.mnode.mstor/mstor
public Object createPrototype() {
return new Header(null, null);
}
}
代码示例来源:origin: org.mnode.mstor/mstor
protected Object createObject() {
return new Header((String) values.get("name"), (String) values.get("value"));
}
代码示例来源:origin: javax.mail/javax.mail-api
public Object nextElement() {
if (next_header == null)
next_header = nextMatch();
if (next_header == null)
throw new NoSuchElementException("No more headers");
InternetHeader h = next_header;
next_header = null;
if (want_line)
return h.line;
else
return new Header(h.getName(), h.getValue());
}
代码示例来源:origin: com.sun.mail/jakarta.mail
public Object nextElement() {
if (next_header == null)
next_header = nextMatch();
if (next_header == null)
throw new NoSuchElementException("No more headers");
InternetHeader h = next_header;
next_header = null;
if (want_line)
return h.line;
else
return new Header(h.getName(), h.getValue());
}
代码示例来源:origin: javax.mail/com.springsource.javax.mail
public Object nextElement() {
if (next_header == null)
next_header = nextMatch();
if (next_header == null)
throw new NoSuchElementException("No more headers");
InternetHeader h = next_header;
next_header = null;
if (want_line)
return h.line;
else
return new Header(h.getName(), h.getValue());
}
代码示例来源:origin: com.sun.mail/android-mail
public Object nextElement() {
if (next_header == null)
next_header = nextMatch();
if (next_header == null)
throw new NoSuchElementException("No more headers");
InternetHeader h = next_header;
next_header = null;
if (want_line)
return h.line;
else
return new Header(h.getName(), h.getValue());
}
代码示例来源:origin: jboss/jboss-javaee-specs
public Object nextElement() {
if (next_header == null)
next_header = nextMatch();
if (next_header == null)
throw new NoSuchElementException("No more headers");
InternetHeader h = next_header;
next_header = null;
if (want_line)
return h.line;
else
return new Header(h.getName(), h.getValue());
}
代码示例来源:origin: com.sun.mail/mailapi
public Object nextElement() {
if (next_header == null)
next_header = nextMatch();
if (next_header == null)
throw new NoSuchElementException("No more headers");
InternetHeader h = next_header;
next_header = null;
if (want_line)
return h.line;
else
return new Header(h.getName(), h.getValue());
}
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.javax.mail
public Object nextElement() {
if (next_header == null)
next_header = nextMatch();
if (next_header == null)
throw new NoSuchElementException("No more headers");
InternetHeader h = next_header;
next_header = null;
if (want_line)
return h.line;
else
return new Header(h.getName(), h.getValue());
}
代码示例来源:origin: org.glassfish.metro/webservices-extra
public Object nextElement() {
if (next_header == null)
next_header = nextMatch();
if (next_header == null)
throw new NoSuchElementException("No more headers");
InternetHeader h = next_header;
next_header = null;
if (want_line)
return h.line;
else
return new Header(h.getName(), h.getValue());
}
代码示例来源:origin: com.gitlab.jhonsapp/simple-email
@Override
protected void updateMessageID() throws MessagingException {
Header header = new Header("Message-ID", messageId);
setHeader(header.getName(), header.getValue());
}
内容来源于网络,如有侵权,请联系作者删除!