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)
| 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 { |
no test coverage detected