public String getContentType() { return ContentType.MESSAGE_RFC822.toString(); }
public String getContentType() { return ContentType.MESSAGE_RFC822.toString(); }
/** The mime type of the collection */ public String getType() { return ContentType.getAtomFeed().toString(); }
/** The mime type of the collection */ public String getType() { return ContentType.getAtomFeed().toString(); }
@Override public String getType() { return ContentType.getAtomEntry().toString(); }
@Override public String getType() { return ContentType.getAtomEntry().toString(); }
@Override public String getType() { return ContentType.getAtomFeed().toString(); }
/** The mime type of the collection */ public String getType() { return ContentType.getAtomFeed().toString(); }
public String getType() { return ContentType.getAtomFeed().toString(); }
@Override public String getType() { return ContentType.getAtomFeed().toString(); }
@Override public String getType() { return ContentType.getAtomEntry().toString(); }
@Override public String getType() { return ContentType.getAtomFeed().toString(); }
public String getType() { return ContentType.getAtomFeed().toString(); }
public String getType() { return ContentType.getAtomFeed().toString(); }
public String getType() { return ContentType.getAtomFeed().toString(); }
public String getType() { return ContentType.getAtomFeed().toString(); }
public String getType() { return ContentType.getAtomFeed().toString(); }
public <R extends MediaSource> R parse(ParseSource parseSource, InputProperties inProps, Class<R> resultClass) { // Ensure that the expected result type is MediaSource Preconditions.checkArgument(resultClass.isAssignableFrom(MediaSource.class), "Result class must be " + MediaSource.class.getName()); InputStream inputStream = parseSource.getInputStream(); Preconditions.checkNotNull(inputStream, "Parse source must be stream-based"); MediaStreamSource mediaSource = new MediaStreamSource(inputStream, inProps.getContentType().toString()); return resultClass.cast(mediaSource); } }
public <R extends MediaSource> R parse(ParseSource parseSource, InputProperties inProps, Class<R> resultClass) { // Ensure that the expected result type is MediaSource Preconditions.checkArgument(resultClass.isAssignableFrom(MediaSource.class), "Result class must be " + MediaSource.class.getName()); InputStream inputStream = parseSource.getInputStream(); Preconditions.checkNotNull(inputStream, "Parse source must be stream-based"); MediaStreamSource mediaSource = new MediaStreamSource(inputStream, inProps.getContentType().toString()); return resultClass.cast(mediaSource); } }
/** * Creates the MediaMultipart instance that does the actual parsing into * multipart body parts. * * @param parseSource source input stream * @param inputProperties input properties * @return resulting media multipart * @throws MessagingException */ protected MediaMultipart createMultipart(ParseSource parseSource, InputProperties inputProperties) throws MessagingException { return new MediaMultipart(inputProperties.getContentType().toString(), parseSource.getInputStream()); }