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