All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.apache.james.imap.decode.parser.MoveCommandParser Maven / Gradle / Ivy

There is a newer version: 3.8.1
Show newest version
package org.apache.james.imap.decode.parser;

import javax.inject.Inject;

import org.apache.james.imap.api.ImapConstants;
import org.apache.james.imap.api.Tag;
import org.apache.james.imap.api.message.IdRange;
import org.apache.james.imap.api.message.response.StatusResponseFactory;
import org.apache.james.imap.message.request.MoveRequest;

/**
 * Parse MOVE commands
 */
public class MoveCommandParser extends AbstractMessageRangeCommandParser {

    @Inject
    public MoveCommandParser(StatusResponseFactory statusResponseFactory) {
        super(ImapConstants.MOVE_COMMAND, statusResponseFactory);
    }

    @Override
    protected MoveRequest createRequest(Tag tag, boolean useUids, IdRange[] idSet, String mailboxName) {
        return new MoveRequest(idSet, mailboxName, useUids, tag);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy