本文整理了Java中javax.mail.internet.MimeMessage.getContentID()
方法的一些代码示例,展示了MimeMessage.getContentID()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。MimeMessage.getContentID()
方法的具体详情如下:
包路径:javax.mail.internet.MimeMessage
类名称:MimeMessage
方法名:getContentID
[英]Returns the value of the "Content-ID" header field. Returns null
if the field is unavailable or its value is absent.
This implementation uses the getHeader
method to obtain the requisite header field.
[中]返回“内容ID”标题字段的值。如果字段不可用或其值不存在,则返回null
。
此实现使用getHeader
方法来获取必需的头字段。
代码示例来源:origin: camunda/camunda-bpm-platform
/**
* Get the Content-ID.
*/
public String getContentID() throws MessagingException {
checkExpunged();
if (bodyLoaded)
return super.getContentID();
loadBODYSTRUCTURE();
return bs.id;
}
代码示例来源:origin: com.sun.mail/javax.mail
/**
* Get the Content-ID.
*/
@Override
public String getContentID() throws MessagingException {
checkExpunged();
if (bodyLoaded)
return super.getContentID();
loadBODYSTRUCTURE();
return bs.id;
}
代码示例来源:origin: org.apache.james/james-server-core-library
/**
* @see javax.mail.internet.MimePart#getContentID()
*/
public String getContentID() throws MessagingException {
return getWrappedMessage().getContentID();
}
代码示例来源:origin: org.apache.axis/axis
/**
* Read all mime headers, returning the value of Content-Length and
* SOAPAction.
* @param mimeMessage InputStream to read from
* @param contentType The content type.
* @param contentLocation The content location
* @param soapAction StringBuffer to return the soapAction into
*/
private void parseHeaders(MimeMessage mimeMessage,
StringBuffer contentType,
StringBuffer contentLocation,
StringBuffer soapAction)
throws Exception {
contentType.append(mimeMessage.getContentType());
contentLocation.append(mimeMessage.getContentID());
String values[] = mimeMessage.getHeader(HTTPConstants.HEADER_SOAP_ACTION);
if (values != null)
soapAction.append(values[0]);
}
}
代码示例来源:origin: com.sun.mail/android-mail
/**
* Get the Content-ID.
*/
@Override
public String getContentID() throws MessagingException {
checkExpunged();
if (bodyLoaded)
return super.getContentID();
loadBODYSTRUCTURE();
return bs.id;
}
代码示例来源:origin: org.apache.axis/com.springsource.org.apache.axis
/**
* Read all mime headers, returning the value of Content-Length and
* SOAPAction.
* @param mimeMessage InputStream to read from
* @param contentType The content type.
* @param contentLocation The content location
* @param soapAction StringBuffer to return the soapAction into
*/
private void parseHeaders(MimeMessage mimeMessage,
StringBuffer contentType,
StringBuffer contentLocation,
StringBuffer soapAction)
throws Exception {
contentType.append(mimeMessage.getContentType());
contentLocation.append(mimeMessage.getContentID());
String values[] = mimeMessage.getHeader(HTTPConstants.HEADER_SOAP_ACTION);
if (values != null)
soapAction.append(values[0]);
}
}
代码示例来源:origin: axis/axis
/**
* Read all mime headers, returning the value of Content-Length and
* SOAPAction.
* @param mimeMessage InputStream to read from
* @param contentType The content type.
* @param contentLocation The content location
* @param soapAction StringBuffer to return the soapAction into
*/
private void parseHeaders(MimeMessage mimeMessage,
StringBuffer contentType,
StringBuffer contentLocation,
StringBuffer soapAction)
throws Exception {
contentType.append(mimeMessage.getContentType());
contentLocation.append(mimeMessage.getContentID());
String values[] = mimeMessage.getHeader(HTTPConstants.HEADER_SOAP_ACTION);
if (values != null)
soapAction.append(values[0]);
}
}
代码示例来源:origin: com.sun.mail/jakarta.mail
/**
* Get the Content-ID.
*/
@Override
public String getContentID() throws MessagingException {
checkExpunged();
if (bodyLoaded)
return super.getContentID();
loadBODYSTRUCTURE();
return bs.id;
}
代码示例来源:origin: org.glassfish.metro/webservices-extra
/**
* Get the Content-ID.
*/
@Override
public String getContentID() throws MessagingException {
checkExpunged();
if (bodyLoaded)
return super.getContentID();
loadBODYSTRUCTURE();
return bs.id;
}
代码示例来源:origin: jboss/jboss-javaee-specs
/**
* Get the Content-ID.
*/
@Override
public String getContentID() throws MessagingException {
checkExpunged();
if (bodyLoaded)
return super.getContentID();
loadBODYSTRUCTURE();
return bs.id;
}
代码示例来源:origin: com.axway.ats.framework/ats-actionlibrary
} catch (PackageException pe) {
if (doNotParseBrokenParts) {
log.warn("Could not parse part: " + mimeMessage.getContentID());
} else {
log.error("Could not parse part: " + mimeMessage.getContentID());
throw pe;
代码示例来源:origin: org.apache.axis/axis
String contentLocation = mimeMsg.getContentID();
Message outMsg = new Message(mimeMsg.getInputStream(), false,
contentType, contentLocation);
代码示例来源:origin: org.apache.axis/com.springsource.org.apache.axis
String contentLocation = mimeMsg.getContentID();
Message outMsg = new Message(mimeMsg.getInputStream(), false,
contentType, contentLocation);
代码示例来源:origin: axis/axis
String contentLocation = mimeMsg.getContentID();
Message outMsg = new Message(mimeMsg.getInputStream(), false,
contentType, contentLocation);
代码示例来源:origin: org.codelibs.fess/fess-crawler
data.putValue(header.getName(), header.getValue());
putValue(data, "Content-ID", message.getContentID());
putValue(data, "Content-Language", message.getContentLanguage());
putValue(data, "Content-MD5", message.getContentMD5());
代码示例来源:origin: org.codelibs.robot/s2-robot
putValue(data, "Content-ID", message.getContentID());
} catch (Exception e) {
内容来源于网络,如有侵权,请联系作者删除!