KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jacorb > test > orb > etf > wiop > WIOPListener


1 package org.jacorb.test.orb.etf.wiop;
2
3 /*
4  * JacORB - a free Java ORB
5  *
6  * Copyright (C) 1997-2003 Gerald Brose.
7  *
8  * This library is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU Library General Public
10  * License as published by the Free Software Foundation; either
11  * version 2 of the License, or (at your option) any later version.
12  *
13  * This library is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16  * Library General Public License for more details.
17  *
18  * You should have received a copy of the GNU Library General Public
19  * License along with this library; if not, write to the Free
20  * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
21  */

22
23 import org.omg.ETF.*;
24
25 /**
26  * @author <a HREF="mailto:spiegel@gnu.org">Andre Spiegel</a>
27  * @version $Id: WIOPListener.java,v 1.1 2003/07/11 00:20:33 andre.spiegel Exp $
28  */

29 public class WIOPListener extends _ListenerLocalBase
30 {
31     private int tag = 0;
32     private Listener delegate = null;
33     
34     public WIOPListener (Listener delegate, int tag)
35     {
36         this.delegate = delegate;
37         this.tag = tag;
38     }
39     
40     public void set_handle(Handle up)
41     {
42         delegate.set_handle (up);
43     }
44
45     public Connection accept()
46     {
47         return new WIOPConnection (delegate.accept(), tag);
48     }
49
50     public void listen()
51     {
52         delegate.listen();
53     }
54
55     public void destroy()
56     {
57         delegate.destroy();
58     }
59
60     public void completed_data (Connection conn)
61     {
62         throw new org.omg.CORBA.NO_IMPLEMENT JavaDoc();
63     }
64
65     public Profile endpoint()
66     {
67         return new WIOPProfile (delegate.endpoint(), tag);
68     }
69
70 }
71
Popular Tags