KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > corba > se > spi > legacy > connection > LegacyServerSocketEndPointInfo


1 /*
2  * @(#)LegacyServerSocketEndPointInfo.java 1.31 04/06/21
3  *
4  * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
5  * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
6  */

7
8 package com.sun.corba.se.spi.legacy.connection;
9
10 /**
11  * LegacyServerSocketEndPointInfo is an abstraction of a port.
12  */

13 public interface LegacyServerSocketEndPointInfo
14 {
15     /**
16      * e.g.: "CLEAR_TEXT", "SSL", ...
17      */

18     public String JavaDoc getType();
19
20
21     /**
22      * Get the host name of this end point. Subcontracts must use this
23      * instead of InetAddress.getHostName() because this would take
24      * into account the value of the ORBServerHost property.
25      */

26     public String JavaDoc getHostName();
27
28     public int getPort();
29
30     /**
31      * The ORBD's proxy port of this end point.
32      * Note: Pre-ORT "port-exchange" model.
33      */

34     public int getLocatorPort();
35     public void setLocatorPort(int port);
36
37     // NAME is used while we still have a "port-exchange" ORBD
38
// to get what used to be called "default" or "bootstrap" endpoints.
39

40     public static final String JavaDoc DEFAULT_ENDPOINT = "DEFAULT_ENDPOINT";
41     public static final String JavaDoc BOOT_NAMING = "BOOT_NAMING";
42     public static final String JavaDoc NO_NAME = "NO_NAME";
43
44     public String JavaDoc getName();
45 }
46
47 // End of file.
48
Popular Tags