@Test public void testLanguageParameters() throws Exception { MaximalBodyDescriptor descriptor = describe(ExampleMail.MULTIPART_WITH_BINARY_ATTACHMENTS_BYTES, 3); Assert.assertNotNull(descriptor.getContentLanguage()); Assert.assertEquals(3, descriptor.getContentLanguage().size()); Assert.assertEquals("en", descriptor.getContentLanguage().get(0)); Assert.assertEquals("en-US", descriptor.getContentLanguage().get(1)); Assert.assertEquals("en-CA", descriptor.getContentLanguage().get(2)); }
public List<String> getContentLanguage() { ContentLanguageField contentLanguageField = (ContentLanguageField) fields.get(CONTENT_LANGUAGE); return contentLanguageField != null ? contentLanguageField.getLanguages() : Collections.<String>emptyList(); }
MaximalBodyDescriptor implements BodyDescriptor { public List<String> getContentLanguage() { ContentLanguageField contentLanguageField = (ContentLanguageField) fields.get(CONTENT_LANGUAGE); return contentLanguageField != null ? contentLanguageField.getLanguages() : Collections.<String>emptyList(); } }
MaximalBodyDescriptor implements BodyDescriptor { public List<String> getContentLanguage() { ContentLanguageField contentLanguageField = (ContentLanguageField) fields.get(CONTENT_LANGUAGE); return contentLanguageField != null ? contentLanguageField.getLanguages() : Collections.<String>emptyList(); } MaximalBodyDescriptor(
            final String mimeType,
            final String mediaType,
            final String subType,
            final String boundary,
            final String charset,
            final Map<String, ParsedField> fields); }
MaximalBodyDescriptor implements BodyDescriptor { public List<String> getContentLanguage() { ContentLanguageField contentLanguageField = (ContentLanguageField) fields.get(CONTENT_LANGUAGE); return contentLanguageField != null ? contentLanguageField.getLanguages() : Collections.<String>emptyList(); } MaximalBodyDescriptor(
            final String mimeType,
            final String mediaType,
            final String subType,
            final String boundary,
            final String charset,
            final Map<String, ParsedField> fields); String getMimeType(); String getBoundary(); String getCharset(); String getMediaType(); String getSubType(); Map<String, String> getContentTypeParameters(); String getTransferEncoding(); long getContentLength(); int getMimeMajorVersion(); int getMimeMinorVersion(); String getContentDescription(); String getContentId(); String getContentDispositionType(); Map<String, String> getContentDispositionParameters(); String getContentDispositionFilename(); Date getContentDispositionModificationDate(); Date getContentDispositionCreationDate(); Date getContentDispositionReadDate(); long getContentDispositionSize(); List<String> getContentLanguage(); String getContentLocation(); String getContentMD5Raw(); @Override String toString(); }
MaximalBodyDescriptor implements BodyDescriptor { public List<String> getContentLanguage() { ContentLanguageField contentLanguageField = (ContentLanguageField) fields.get(CONTENT_LANGUAGE); return contentLanguageField != null ? contentLanguageField.getLanguages() : Collections.<String>emptyList(); } MaximalBodyDescriptor(
            final String mimeType,
            final String mediaType,
            final String subType,
            final String boundary,
            final String charset,
            final Map<String, ParsedField> fields); String getMimeType(); String getBoundary(); String getCharset(); String getMediaType(); String getSubType(); Map<String, String> getContentTypeParameters(); String getTransferEncoding(); long getContentLength(); int getMimeMajorVersion(); int getMimeMinorVersion(); String getContentDescription(); String getContentId(); String getContentDispositionType(); Map<String, String> getContentDispositionParameters(); String getContentDispositionFilename(); Date getContentDispositionModificationDate(); Date getContentDispositionCreationDate(); Date getContentDispositionReadDate(); long getContentDispositionSize(); List<String> getContentLanguage(); String getContentLocation(); String getContentMD5Raw(); @Override String toString();  }