return (message instanceof FetchResponse);
}
protected void doEncode(ImapMessage acceptableMessage, ImapResponseComposer composer, ImapSession session) throws IOException {
if (acceptableMessage instanceof FetchResponse) {
final FetchResponse fetchResponse = (FetchResponse) acceptableMessage;
final long messageNumber = fetchResponse.getMessageNumber();
composer.openFetchResponse(messageNumber);
encodeFlags(composer, fetchResponse);
encodeInternalDate(composer, fetchResponse);
encodeSize(composer, fetchResponse);
encodeEnvelope(composer, fetchResponse);
encodeBody(composer, fetchResponse.getBody(), session);
encodeBodyStructure(composer, fetchResponse.getBodyStructure(), session);
encodeUid(composer, fetchResponse);
encodeBodyElements(composer, fetchResponse.getElements());
composer.closeFetchResponse();
}
}