private void taggedOk(Responder responder, String tag, ImapCommand command, MetaData metaData, HumanReadableText text) { final boolean writeable = metaData.isWriteable() && !openReadOnly; final ResponseCode code; if (writeable) { code = ResponseCode.readWrite(); } else { code = ResponseCode.readOnly(); } final StatusResponse taggedOk = statusResponseFactory.taggedOk(tag, command, text, code); responder.respond(taggedOk); }
private void taggedOk(final Responder responder, final String tag, final ImapCommand command, final MetaData metaData, HumanReadableText text) { final boolean writeable = metaData.isWriteable() && !openReadOnly; final ResponseCode code; if (writeable) { code = ResponseCode.readWrite(); } else { code = ResponseCode.readOnly(); } final StatusResponse taggedOk = statusResponseFactory.taggedOk(tag, command, text, code); responder.respond(taggedOk); }