IMAPFolder$ProtocolCommand.doCommand
Code IndexAdd Codota to your IDE (free)

Best code snippets using com.sun.mail.imap.IMAPFolder$ProtocolCommand.doCommand(Showing top 5 results out of 315)

origin: javax.mail/mail

protected Object doProtocolCommand(ProtocolCommand cmd)
      throws ProtocolException {
synchronized (this) {
  /*
   * Check whether we have a protocol object, not whether we're
   * opened, to allow use of the exsting protocol object in the
   * open method before the state is changed to "opened".
   */
  if (protocol != null) {
  synchronized (messageCacheLock) {
    return cmd.doCommand(getProtocol());
  }
  }
}
// only get here if using store's connection
IMAPProtocol p = null;
try {
    p = getStoreProtocol();
  return cmd.doCommand(p);
} finally {
  releaseStoreProtocol(p);
}
}
origin: com.sun.mail/javax.mail

protected synchronized Object doProtocolCommand(ProtocolCommand cmd)
      throws ProtocolException {
/*
 * Check whether we have a protocol object, not whether we're
 * opened, to allow use of the exsting protocol object in the
 * open method before the state is changed to "opened".
 */
if (protocol != null) {
  synchronized (messageCacheLock) {
  return cmd.doCommand(getProtocol());
  }
}
// only get here if using store's connection
IMAPProtocol p = null;
try {
    p = getStoreProtocol();
  return cmd.doCommand(p);
} finally {
  releaseStoreProtocol(p);
}
}
origin: org.glassfish.metro/webservices-extra

protected Object doProtocolCommand(ProtocolCommand cmd)
      throws ProtocolException {
synchronized (this) {
  /*
   * Check whether we have a protocol object, not whether we're
   * opened, to allow use of the exsting protocol object in the
   * open method before the state is changed to "opened".
   */
  if (protocol != null) {
  synchronized (messageCacheLock) {
    return cmd.doCommand(getProtocol());
  }
  }
}
// only get here if using store's connection
IMAPProtocol p = null;
try {
    p = getStoreProtocol();
  return cmd.doCommand(p);
} finally {
  releaseStoreProtocol(p);
}
}
origin: com.sun.mail/imap

protected synchronized Object doProtocolCommand(ProtocolCommand cmd)
      throws ProtocolException {
/*
 * Check whether we have a protocol object, not whether we're
 * opened, to allow use of the exsting protocol object in the
 * open method before the state is changed to "opened".
 */
if (protocol != null) {
  synchronized (messageCacheLock) {
  return cmd.doCommand(getProtocol());
  }
}
// only get here if using store's connection
IMAPProtocol p = null;
try {
    p = getStoreProtocol();
  return cmd.doCommand(p);
} finally {
  releaseStoreProtocol(p);
}
}
origin: intuit/wasabi

protected Object doProtocolCommand(ProtocolCommand cmd)
      throws ProtocolException {
synchronized (this) {
  /*
   * Check whether we have a protocol object, not whether we're
   * opened, to allow use of the exsting protocol object in the
   * open method before the state is changed to "opened".
   */
  if (protocol != null) {
  synchronized (messageCacheLock) {
    return cmd.doCommand(getProtocol());
  }
  }
}
// only get here if using store's connection
IMAPProtocol p = null;
try {
    p = getStoreProtocol();
  return cmd.doCommand(p);
} finally {
  releaseStoreProtocol(p);
}
}
com.sun.mail.imapIMAPFolder$ProtocolCommanddoCommand

Javadoc

Execute the user-defined command using the supplied IMAPProtocol object.

Popular methods of IMAPFolder$ProtocolCommand

    Popular classes and methods

    • setContentView (Activity)
    • setScale (BigDecimal)
      Returns a new BigDecimal instance with the specified scale. If the new scale is greater than the old
    • getContentResolver (Context)
    • Color (java.awt)
      The Color class is used to encapsulate colors in the default sRGB color space or colors in arbitrary
    • GridBagLayout (java.awt)
    • URI (java.net)
      Represents a Uniform Resource Identifier (URI) reference. Aside from some minor deviations noted bel
    • DateFormat (java.text)
      DateFormat is an abstract class for date/time formatting subclasses which formats and parses dates
    • Iterator (java.util)
      An iterator over a collection. Iterator takes the place of Enumeration in the Java Collections Frame
    • ResourceBundle (java.util)
      ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
    • StringTokenizer (java.util)
      Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo

    For IntelliJ IDEA,
    Android Studio or Eclipse

    • Codota IntelliJ IDEA pluginCodota Android Studio pluginCode IndexSign in
    • EnterpriseFAQAboutContact Us
    • Terms of usePrivacy policyCodeboxFind Usages
    Add Codota to your IDE (free)