KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > columba > mail > command > POP3CommandReference


1 //The contents of this file are subject to the Mozilla Public License Version 1.1
2
//(the "License"); you may not use this file except in compliance with the
3
//License. You may obtain a copy of the License at http://www.mozilla.org/MPL/
4
//
5
//Software distributed under the License is distributed on an "AS IS" basis,
6
//WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
7
//for the specific language governing rights and
8
//limitations under the License.
9
//
10
//The Original Code is "The Columba Project"
11
//
12
//The Initial Developers of the Original Code are Frederik Dietz and Timo Stich.
13
//Portions created by Frederik Dietz and Timo Stich are Copyright (C) 2003.
14
//
15
//All Rights Reserved.
16
package org.columba.mail.command;
17
18 import org.columba.core.command.DefaultCommandReference;
19 import org.columba.mail.pop3.POP3Server;
20
21
22 /**
23  * @author freddy
24  *
25  * To change this generated comment edit the template variable "typecomment":
26  * Window>Preferences>Java>Templates.
27  * To enable and disable the creation of type comments go to
28  * Window>Preferences>Java>Code Generation.
29  */

30 public class POP3CommandReference extends DefaultCommandReference {
31     protected POP3Server server;
32
33     public POP3CommandReference(POP3Server server) {
34         this.server = server;
35     }
36
37     /**
38  * Returns the server.
39  * @return POP3Server
40  */

41     public POP3Server getServer() {
42         return server;
43     }
44
45     /**
46  * @see org.columba.api.command.DefaultCommandReference#releaseLock(java.lang.Object)
47  */

48     public void releaseLock(Object JavaDoc locker) {
49         server.releaseLock(locker);
50     }
51
52     /**
53  * @see org.columba.api.command.DefaultCommandReference#tryToGetLock(java.lang.Object)
54  */

55     public boolean tryToGetLock(Object JavaDoc locker) {
56         return server.tryToGetLock(locker);
57     }
58 }
59
Popular Tags