1 /* 2 * Copyright (c) 2004-2007 Creative Sphere Limited. 3 * All rights reserved. This program and the accompanying materials 4 * are made available under the terms of the Eclipse Public License v1.0 5 * which accompanies this distribution, and is available at 6 * http://www.eclipse.org/legal/epl-v10.html 7 * 8 * Contributors: 9 * 10 * Creative Sphere - initial API and implementation 11 * 12 */ 13 package org.abstracthorizon.mercury.imap.response; 14 15 import org.abstracthorizon.mercury.imap.IMAPSession; 16 17 /** 18 * Mnemonic response 19 * 20 * @author Daniel Sendula 21 */ 22 public class MnemonicResponse extends Response { 23 24 /** Mnemonic */ 25 protected String mnemonic; 26 27 /** 28 * Mnemonic response 29 * @param session session 30 * @param type response type 31 * @param mnemonic mnemonic 32 */ 33 public MnemonicResponse(IMAPSession session, int type, String mnemonic) { 34 super(session, type); 35 append(mnemonic); 36 } 37 38 /** 39 * Mnemonic response with message 40 * @param session session 41 * @param type response type 42 * @param mnemonic mnemonic 43 * @param msg message 44 */ 45 public MnemonicResponse(IMAPSession session, int type, String mnemonic, String msg) { 46 super(session, type); 47 append(mnemonic); 48 append(' '); 49 append(msg); 50 } 51 52 }