com.yahoo.imapnio.async.request.MoveMessageCommand 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.sun.mail.imap.protocol.MessageSet;
import com.yahoo.imapnio.async.data.MessageNumberSet;
/**
* This class defines imap move command request from client.
*/
public class MoveMessageCommand extends AbstractMessageActionCommand {
/** Command name. */
private static final String MOVE = "MOVE";
/**
* Initializes a {@link MoveMessageCommand} with the message sequence syntax.
*
* @param msgsets the set of message set
* @param targetFolder the targetFolder to be stored
*/
public MoveMessageCommand(@Nonnull final MessageSet[] msgsets, @Nonnull final String targetFolder) {
super(MOVE, false, msgsets, targetFolder);
}
/**
* Initializes a {@link MoveMessageCommand} with the start and end message sequence.
*
* @param start the starting message sequence
* @param end the ending message sequence
* @param targetFolder the targetFolder to be stored
*/
public MoveMessageCommand(final int start, final int end, @Nonnull final String targetFolder) {
super(MOVE, false, start, end, targetFolder);
}
/**
* Initializes a {@link CopyMessageCommand} with the {@link MessageNumberSet} array.
*
* @param msgsets the set of {@link MessageNumberSet}
* @param targetFolder the targetFolder to be stored
*/
public MoveMessageCommand(@Nonnull final MessageNumberSet[] msgsets, @Nonnull final String targetFolder) {
super(MOVE, false, msgsets, targetFolder);
}
@Override
public ImapRFCSupportedCommandType getCommandType() {
return ImapRFCSupportedCommandType.MOVE_MESSAGE;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy