@Override protected ImapResponseMessage createResponse(MailboxMetaData.Children children, MailboxMetaData.Selectability selectability, String name, char hierarchyDelimiter, MailboxType type) { return new XListResponse(children, selectability, name, hierarchyDelimiter, type); } }
public PartialFetchBodyElement(final BodyElement delegate, final long firstOctet, final long numberOfOctets) { super(); this.delegate = delegate; this.firstOctet = firstOctet; this.numberOfOctets = numberOfOctets; name = delegate.getName() + "<" + firstOctet + ">"; }
@Override public StatusResponse untaggedOk(HumanReadableText displayTextKey) { return untaggedOk(displayTextKey, null); } }
@Override protected StatusResponseFactory createInstance() { return new UnpooledStatusResponseFactory(); }
@Override public StatusResponse preauth(HumanReadableText displayTextKey, ResponseCode code) { return createResponse(StatusResponse.Type.PREAUTH, null, null, displayTextKey, code); }
public FetchResponse build() { final FetchResponse result = new FetchResponse(msn, flags, uid, modSeq, internalDate, size, envelope, body, bodystructure, elements); return result; }
@Override public StatusResponse taggedOk(String tag, ImapCommand command, HumanReadableText displayTextKey) { return taggedOk(tag, command, displayTextKey, null); }
@Override public StatusResponse taggedBad(String tag, ImapCommand command, HumanReadableText displayTextKey) { return taggedBad(tag, command, displayTextKey, null); }
@Override public StatusResponse taggedNo(String tag, ImapCommand command, HumanReadableText displayTextKey) { return taggedNo(tag, command, displayTextKey, null); }
@Override public StatusResponse untaggedBad(HumanReadableText displayTextKey) { return untaggedBad(displayTextKey, null); }
@Override protected StatusResponse createResponse(Type type, String tag, ImapCommand command, HumanReadableText displayTextKey, ResponseCode code) { return new ImmutableStatusResponse(type, tag, command, displayTextKey, code); }
@Override public StatusResponse bye(HumanReadableText displayTextKey) { return bye(displayTextKey, null); }
@Override public StatusResponse preauth(HumanReadableText displayTextKey) { return preauth(displayTextKey, null); }
public PartialFetchBodyElement(BodyElement delegate, long firstOctet, long numberOfOctets) { super(); this.delegate = delegate; this.firstOctet = firstOctet; this.numberOfOctets = numberOfOctets; name = delegate.getName() + "<" + firstOctet + ">"; }
@Override public StatusResponse taggedNo(String tag, ImapCommand command, HumanReadableText displayTextKey, ResponseCode code) { return createResponse(StatusResponse.Type.NO, tag, command, displayTextKey, code); }
@Override protected ImapResponseMessage createResponse(boolean noInferior, boolean noSelect, boolean marked, boolean unmarked, boolean hasChildren, boolean hasNoChildren, String mailboxName, char delimiter, MailboxType type) { return new XListResponse(noInferior, noSelect, marked, unmarked, hasChildren, hasNoChildren, mailboxName, delimiter, type); } }
@Override public StatusResponse untaggedOk(HumanReadableText displayTextKey, ResponseCode code) { return taggedOk(null, null, displayTextKey, code); }
@Override public StatusResponse taggedOk(String tag, ImapCommand command, HumanReadableText displayTextKey, ResponseCode code) { return createResponse(StatusResponse.Type.OK, tag, command, displayTextKey, code); }
@Override public StatusResponse taggedBad(String tag, ImapCommand command, HumanReadableText displayTextKey, ResponseCode code) { return createResponse(StatusResponse.Type.BAD, tag, command, displayTextKey, code); }
public StatusResponse preauth(HumanReadableText displayTextKey, ResponseCode code) { return createResponse(StatusResponse.Type.PREAUTH, null, null, displayTextKey, code); }