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

com.yahoo.imapnio.async.request.SubscribeFolderCommand Maven / Gradle / Ivy

The newest version!
package com.yahoo.imapnio.async.request;

import javax.annotation.Nonnull;

/**
 * This class defines imap subscribe command request from client.
 */
public class SubscribeFolderCommand extends AbstractFolderActionCommand {

    /** Command name. */
    private static final String SUBSCRIBE = "SUBSCRIBE";

    /**
     * Initializes a {@link SubscribeFolderCommand}.
     *
     * @param folderName folder name to SUBSCRIBE
     */
    public SubscribeFolderCommand(@Nonnull final String folderName) {
        super(SUBSCRIBE, folderName);
    }

    @Override
    public ImapRFCSupportedCommandType getCommandType() {
        return ImapRFCSupportedCommandType.SUBSCRIBE;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy