javax.mail.internet.MimeBodyPart.getContentLanguage()方法的使用及代码示例

x33g5p2x  于2022-01-24 转载在 其他  
字(10.7k)|赞(0)|评价(0)|浏览(117)

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

MimeBodyPart.getContentLanguage介绍

[英]Get the languages specified in the Content-Language header of this MimePart. The Content-Language header is defined by RFC 1766. Returns null if this header is not available or its value is absent.

This implementation uses getHeader(name) to obtain the requisite header field.
[中]获取此MimePart的内容语言标头中指定的语言。内容语言标头由RFC1766定义。如果此标题不可用或其值不存在,则返回null
此实现使用getHeader(name)来获取必需的头字段。

代码示例

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

  1. /**
  2. * Get the languages specified in the Content-Language header
  3. * of this MimePart. The Content-Language header is defined by
  4. * RFC 1766. Returns <code>null</code> if this header is not
  5. * available or its value is absent. <p>
  6. *
  7. * This implementation uses <code>getHeader(name)</code>
  8. * to obtain the requisite header field.
  9. */
  10. public String[] getContentLanguage() throws MessagingException {
  11. return getContentLanguage(this);
  12. }

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

  1. /**
  2. * Get the languages specified in the Content-Language header
  3. * of this MimePart. The Content-Language header is defined by
  4. * RFC 1766. Returns <code>null</code> if this header is not
  5. * available or its value is absent. <p>
  6. *
  7. * This implementation uses <code>getHeader(name)</code>
  8. * to obtain the requisite header field.
  9. */
  10. @Override
  11. public String[] getContentLanguage() throws MessagingException {
  12. return getContentLanguage(this);
  13. }

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

  1. /**
  2. * Get the languages specified in the "Content-Language" header
  3. * field of this message. The Content-Language header is defined by
  4. * RFC 1766. Returns <code>null</code> if this field is unavailable
  5. * or its value is absent. <p>
  6. *
  7. * This implementation uses the <code>getHeader</code> method
  8. * to obtain the requisite header field.
  9. *
  10. * @return value of content-language header.
  11. * @exception MessagingException for failures
  12. */
  13. public String[] getContentLanguage() throws MessagingException {
  14. return MimeBodyPart.getContentLanguage(this);
  15. }

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

  1. /**
  2. * Get the languages specified in the "Content-Language" header
  3. * field of this message. The Content-Language header is defined by
  4. * RFC 1766. Returns <code>null</code> if this field is unavailable
  5. * or its value is absent. <p>
  6. *
  7. * This implementation uses the <code>getHeader</code> method
  8. * to obtain the requisite header field.
  9. *
  10. * @return value of content-language header.
  11. * @exception MessagingException for failures
  12. */
  13. @Override
  14. public String[] getContentLanguage() throws MessagingException {
  15. return MimeBodyPart.getContentLanguage(this);
  16. }

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

  1. /**
  2. * Get the languages specified in the Content-Language header
  3. * of this MimePart. The Content-Language header is defined by
  4. * RFC 1766. Returns <code>null</code> if this header is not
  5. * available or its value is absent. <p>
  6. *
  7. * This implementation uses <code>getHeader(name)</code>
  8. * to obtain the requisite header field.
  9. */
  10. public String[] getContentLanguage() throws MessagingException {
  11. return getContentLanguage(this);
  12. }

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

  1. /**
  2. * Get the languages specified in the Content-Language header
  3. * of this MimePart. The Content-Language header is defined by
  4. * RFC 1766. Returns <code>null</code> if this header is not
  5. * available or its value is absent. <p>
  6. *
  7. * This implementation uses <code>getHeader(name)</code>
  8. * to obtain the requisite header field.
  9. */
  10. public String[] getContentLanguage() throws MessagingException {
  11. return getContentLanguage(this);
  12. }

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

  1. /**
  2. * Get the languages specified in the Content-Language header
  3. * of this MimePart. The Content-Language header is defined by
  4. * RFC 1766. Returns <code>null</code> if this header is not
  5. * available or its value is absent. <p>
  6. *
  7. * This implementation uses <code>getHeader(name)</code>
  8. * to obtain the requisite header field.
  9. */
  10. @Override
  11. public String[] getContentLanguage() throws MessagingException {
  12. return getContentLanguage(this);
  13. }

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

  1. /**
  2. * Get the languages specified in the Content-Language header
  3. * of this MimePart. The Content-Language header is defined by
  4. * RFC 1766. Returns <code>null</code> if this header is not
  5. * available or its value is absent. <p>
  6. *
  7. * This implementation uses <code>getHeader(name)</code>
  8. * to obtain the requisite header field.
  9. */
  10. @Override
  11. public String[] getContentLanguage() throws MessagingException {
  12. return getContentLanguage(this);
  13. }

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

  1. /**
  2. * Get the languages specified in the Content-Language header
  3. * of this MimePart. The Content-Language header is defined by
  4. * RFC 1766. Returns <code>null</code> if this header is not
  5. * available or its value is absent. <p>
  6. *
  7. * This implementation uses <code>getHeader(name)</code>
  8. * to obtain the requisite header field.
  9. */
  10. @Override
  11. public String[] getContentLanguage() throws MessagingException {
  12. return getContentLanguage(this);
  13. }

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

  1. /**
  2. * Get the languages specified in the Content-Language header
  3. * of this MimePart. The Content-Language header is defined by
  4. * RFC 1766. Returns <code>null</code> if this header is not
  5. * available or its value is absent. <p>
  6. *
  7. * This implementation uses <code>getHeader(name)</code>
  8. * to obtain the requisite header field.
  9. */
  10. @Override
  11. public String[] getContentLanguage() throws MessagingException {
  12. return getContentLanguage(this);
  13. }

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

  1. /**
  2. * Get the languages specified in the Content-Language header
  3. * of this MimePart. The Content-Language header is defined by
  4. * RFC 1766. Returns <code>null</code> if this header is not
  5. * available or its value is absent. <p>
  6. *
  7. * This implementation uses <code>getHeader(name)</code>
  8. * to obtain the requisite header field.
  9. */
  10. @Override
  11. public String[] getContentLanguage() throws MessagingException {
  12. return getContentLanguage(this);
  13. }

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

  1. /**
  2. * Get the languages specified in the Content-Language header
  3. * of this MimePart. The Content-Language header is defined by
  4. * RFC 1766. Returns <code>null</code> if this header is not
  5. * available or its value is absent. <p>
  6. *
  7. * This implementation uses <code>getHeader(name)</code>
  8. * to obtain the requisite header field.
  9. */
  10. @Override
  11. public String[] getContentLanguage() throws MessagingException {
  12. return getContentLanguage(this);
  13. }

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

  1. /**
  2. * Get the languages specified in the "Content-Language" header
  3. * field of this message. The Content-Language header is defined by
  4. * RFC 1766. Returns <code>null</code> if this field is unavailable
  5. * or its value is absent. <p>
  6. *
  7. * This implementation uses the <code>getHeader</code> method
  8. * to obtain the requisite header field.
  9. *
  10. * @return value of content-language header.
  11. * @exception MessagingException
  12. */
  13. public String[] getContentLanguage() throws MessagingException {
  14. return MimeBodyPart.getContentLanguage(this);
  15. }

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

  1. /**
  2. * Get the languages specified in the "Content-Language" header
  3. * field of this message. The Content-Language header is defined by
  4. * RFC 1766. Returns <code>null</code> if this field is unavailable
  5. * or its value is absent. <p>
  6. *
  7. * This implementation uses the <code>getHeader</code> method
  8. * to obtain the requisite header field.
  9. *
  10. * @return value of content-language header.
  11. * @exception MessagingException for failures
  12. */
  13. @Override
  14. public String[] getContentLanguage() throws MessagingException {
  15. return MimeBodyPart.getContentLanguage(this);
  16. }

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

  1. /**
  2. * Get the languages specified in the "Content-Language" header
  3. * field of this message. The Content-Language header is defined by
  4. * RFC 1766. Returns <code>null</code> if this field is unavailable
  5. * or its value is absent. <p>
  6. *
  7. * This implementation uses the <code>getHeader</code> method
  8. * to obtain the requisite header field.
  9. *
  10. * @return value of content-language header.
  11. * @exception MessagingException
  12. */
  13. public String[] getContentLanguage() throws MessagingException {
  14. return MimeBodyPart.getContentLanguage(this);
  15. }

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

  1. /**
  2. * Get the languages specified in the "Content-Language" header
  3. * field of this message. The Content-Language header is defined by
  4. * RFC 1766. Returns <code>null</code> if this field is unavailable
  5. * or its value is absent. <p>
  6. *
  7. * This implementation uses the <code>getHeader</code> method
  8. * to obtain the requisite header field.
  9. *
  10. * @return value of content-language header.
  11. * @exception MessagingException for failures
  12. */
  13. @Override
  14. public String[] getContentLanguage() throws MessagingException {
  15. return MimeBodyPart.getContentLanguage(this);
  16. }

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

  1. /**
  2. * Get the languages specified in the "Content-Language" header
  3. * field of this message. The Content-Language header is defined by
  4. * RFC 1766. Returns <code>null</code> if this field is unavailable
  5. * or its value is absent. <p>
  6. *
  7. * This implementation uses the <code>getHeader</code> method
  8. * to obtain the requisite header field.
  9. *
  10. * @return value of content-language header.
  11. * @exception MessagingException for failures
  12. */
  13. @Override
  14. public String[] getContentLanguage() throws MessagingException {
  15. return MimeBodyPart.getContentLanguage(this);
  16. }

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

  1. /**
  2. * Get the languages specified in the "Content-Language" header
  3. * field of this message. The Content-Language header is defined by
  4. * RFC 1766. Returns <code>null</code> if this field is unavailable
  5. * or its value is absent. <p>
  6. *
  7. * This implementation uses the <code>getHeader</code> method
  8. * to obtain the requisite header field.
  9. *
  10. * @return value of content-language header.
  11. * @exception MessagingException for failures
  12. */
  13. @Override
  14. public String[] getContentLanguage() throws MessagingException {
  15. return MimeBodyPart.getContentLanguage(this);
  16. }

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

  1. /**
  2. * Get the languages specified in the "Content-Language" header
  3. * field of this message. The Content-Language header is defined by
  4. * RFC 1766. Returns <code>null</code> if this field is unavailable
  5. * or its value is absent. <p>
  6. *
  7. * This implementation uses the <code>getHeader</code> method
  8. * to obtain the requisite header field.
  9. *
  10. * @return value of content-language header.
  11. * @exception MessagingException for failures
  12. */
  13. @Override
  14. public String[] getContentLanguage() throws MessagingException {
  15. return MimeBodyPart.getContentLanguage(this);
  16. }

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

  1. /**
  2. * Get the languages specified in the "Content-Language" header
  3. * field of this message. The Content-Language header is defined by
  4. * RFC 1766. Returns <code>null</code> if this field is unavailable
  5. * or its value is absent. <p>
  6. *
  7. * This implementation uses the <code>getHeader</code> method
  8. * to obtain the requisite header field.
  9. *
  10. * @return value of content-language header.
  11. * @exception MessagingException for failures
  12. */
  13. @Override
  14. public String[] getContentLanguage() throws MessagingException {
  15. return MimeBodyPart.getContentLanguage(this);
  16. }

相关文章