MCPcopy Create free account
hub / github.com/M66B/FairEmail / hasCapability

Method hasCapability

app/src/main/java/com/sun/mail/imap/IMAPStore.java:1624–1635  ·  view source on GitHub ↗

Return true if the specified capability string is in the list of capabilities the server announced. @param capability the capability string @return true if the server supports this capability @exception MessagingException for failures @since JavaMail 1.3.3

(String capability)

Source from the content-addressed store, hash-verified

1622 * @since JavaMail 1.3.3
1623 */
1624 public synchronized boolean hasCapability(String capability)
1625 throws MessagingException {
1626 IMAPProtocol p = null;
1627 try {
1628 p = getStoreProtocol("hasCapability");
1629 return p.hasCapability(capability);
1630 } catch (ProtocolException pex) {
1631 throw new MessagingException(pex.getMessage(), pex);
1632 } finally {
1633 releaseStoreProtocol(p);
1634 }
1635 }
1636
1637 public synchronized String getCapability(String capability)
1638 throws MessagingException {

Callers 6

_connectMethod · 0.95
GmailProtocolMethod · 0.45
loginMethod · 0.45
authenticateMethod · 0.45
openMethod · 0.45
closeMethod · 0.45

Calls 4

getStoreProtocolMethod · 0.95
hasCapabilityMethod · 0.95
releaseStoreProtocolMethod · 0.95
getMessageMethod · 0.65

Tested by

no test coverage detected