com.yahoo.imapnio.async.request.FetchCommand Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of imapnio.core Show documentation
Show all versions of imapnio.core Show documentation
imapnio component ${project.name}
The newest version!
package com.yahoo.imapnio.async.request;
import javax.annotation.Nonnull;
import com.yahoo.imapnio.async.data.MessageNumberSet;
/**
* This class defines imap fetch command request from client.
*/
public class FetchCommand extends AbstractFetchCommand {
/**
* Initializes a {@link FetchCommand} with the {@link MessageNumberSet} array and fetch items.
*
* @param msgsets the set of message set
* @param items the data items
*/
public FetchCommand(@Nonnull final MessageNumberSet[] msgsets, @Nonnull final String items) {
super(false, msgsets, items);
}
/**
* Initializes a {@link FetchCommand} with the {@link MessageNumberSet} array and macro.
*
* @param msgsets the set of message set
* @param macro the macro
*/
public FetchCommand(@Nonnull final MessageNumberSet[] msgsets, @Nonnull final FetchMacro macro) {
super(false, msgsets, macro);
}
@Override
public ImapRFCSupportedCommandType getCommandType() {
return ImapRFCSupportedCommandType.FETCH;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy