KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > mx4j > tools > remote > Connection


1 /*
2  * Copyright (C) The MX4J Contributors.
3  * All rights reserved.
4  *
5  * This software is distributed under the terms of the MX4J License version 1.0.
6  * See the terms of the MX4J License in the documentation provided with this software.
7  */

8
9 package mx4j.tools.remote;
10
11 import java.io.IOException JavaDoc;
12
13 /**
14  * Represents a connection between a client and a server.
15  * A connection has normally a client end and a server end. Both ends will be implemented in
16  * a protocol specific way by JSR 160 protocol provider implementations.
17  *
18  * @version $Revision: 1.4 $
19  */

20 public interface Connection
21 {
22    /**
23     * Closes this connection
24     */

25    public void close() throws IOException JavaDoc;
26
27    /**
28     * Returns the connection ID as specified by JSR 160 specification
29     */

30    public String JavaDoc getConnectionId() throws IOException JavaDoc;
31 }
32
Popular Tags