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 * OK Response 19 * 20 * @author Daniel Sendula 21 */ 22 public class OKResponse extends MnemonicResponse { 23 24 /** 25 * Tagged OK response 26 * @param session session 27 * @param msg message 28 */ 29 public OKResponse(IMAPSession session, String msg) { 30 super(session, Response.TAGGED_RESPONSE, "OK", msg); 31 } 32 33 /** 34 * OK response 35 * @param session session 36 * @param type response type 37 * @param msg message 38 */ 39 public OKResponse(IMAPSession session, int type, String msg) { 40 super(session, type, "OK", msg); 41 } 42 43 }