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

Method handleResult

app/src/main/java/com/sun/mail/iap/Protocol.java:419–430  ·  view source on GitHub ↗

Convenience routine to handle OK, NO, BAD and BYE responses. @param response the response @exception ProtocolException for protocol failures

(Response response)

Source from the content-addressed store, hash-verified

417 * @exception ProtocolException for protocol failures
418 */
419 public void handleResult(Response response) throws ProtocolException {
420 if (response.isOK())
421 return;
422 else if (response.isNO())
423 throw new CommandFailedException(response);
424 else if (response.isBAD())
425 throw new BadCommandException(response);
426 else if (response.isBYE()) {
427 disconnect();
428 throw new ConnectionException(this, response);
429 }
430 }
431
432 /**
433 * Convenience routine to handle simple IAP commands

Callers 15

simpleCommandMethod · 0.95
setFlagsMethod · 0.80
copyMessagesMethod · 0.80
doCommandMethod · 0.80
storeLabelsMethod · 0.80
setFlagsMethod · 0.80
copymoveMessagesMethod · 0.80
setFlagsMethod · 0.80
fetchItemMethod · 0.80
loadEnvelopeMethod · 0.80
capabilityMethod · 0.80
handleLoginResultMethod · 0.80

Calls 5

disconnectMethod · 0.95
isOKMethod · 0.80
isNOMethod · 0.80
isBADMethod · 0.80
isBYEMethod · 0.80

Tested by

no test coverage detected