# Uses of Enum
org.apache.commons.net.imap.IMAPCommand

Packages that use IMAPCommand
Package
Description
org.apache.commons.net.imap
Basic IMAP and IMAPS support classes

- ## Uses of IMAPCommand in org.apache.commons.net.imap

  Methods in org.apache.commons.net.imap that return IMAPCommand
  Modifier and Type
  Method
  Description
  `static IMAPCommand`
  IMAPCommand.`valueOf(String name)`
  Returns the enum constant of this type with the specified name.
  `static IMAPCommand[]`
  IMAPCommand.`values()`
  Returns an array containing the constants of this enum type, in the order they are declared.
  Methods in org.apache.commons.net.imap with parameters of type IMAPCommand
  Modifier and Type
  Method
  Description
  `boolean`
  IMAP.`doCommand(IMAPCommand command)`
  Sends a command to the server and return whether successful.
  `boolean`
  IMAP.`doCommand(IMAPCommand command, String args)`
  Sends a command and arguments to the server and return whether successful.
  `static String`
  IMAPCommand.`getCommand(IMAPCommand command)`
  Gets the IMAP protocol string command corresponding to a command code.
  `int`
  IMAP.`sendCommand(IMAPCommand command)`
  Sends a command with no arguments to the server and returns the reply code.
  `int`
  IMAP.`sendCommand(IMAPCommand command, String args)`
  Sends a command and arguments to the server and returns the reply code.