Class EndPointInfoImpl
- java.lang.Object
-
- com.sun.corba.ee.impl.legacy.connection.EndPointInfoImpl
-
- All Implemented Interfaces:
LegacyServerSocketEndPointInfo
,SocketInfo
public class EndPointInfoImpl extends java.lang.Object implements SocketInfo, LegacyServerSocketEndPointInfo
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
hostname
protected int
locatorPort
protected java.lang.String
name
protected int
port
protected java.lang.String
type
-
Fields inherited from interface com.sun.corba.ee.spi.legacy.connection.LegacyServerSocketEndPointInfo
BOOT_NAMING, DEFAULT_ENDPOINT, NO_NAME
-
Fields inherited from interface com.sun.corba.ee.spi.transport.SocketInfo
IIOP_CLEAR_TEXT, SSL_PREFIX
-
-
Constructor Summary
Constructors Constructor Description EndPointInfoImpl(java.lang.String type, int port, java.lang.String hostname)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
java.lang.String
getHost()
java.lang.String
getHostName()
Get the host name of this end point.int
getLocatorPort()
The ORBD's proxy port of this end point.java.lang.String
getName()
int
getPort()
java.lang.String
getType()
e.g.: "CLEAR_TEXT", "SSL", ...int
hashCode()
void
setLocatorPort(int port)
java.lang.String
toString()
-
-
-
Method Detail
-
getType
public java.lang.String getType()
Description copied from interface:LegacyServerSocketEndPointInfo
e.g.: "CLEAR_TEXT", "SSL", ...- Specified by:
getType
in interfaceLegacyServerSocketEndPointInfo
- Specified by:
getType
in interfaceSocketInfo
- Returns:
- type
-
getHost
public java.lang.String getHost()
- Specified by:
getHost
in interfaceSocketInfo
-
getHostName
public java.lang.String getHostName()
Description copied from interface:LegacyServerSocketEndPointInfo
Get the host name of this end point. Subcontracts must use this instead of InetAddress.getHostName() because this would take into account the value of the ORBServerHost property.- Specified by:
getHostName
in interfaceLegacyServerSocketEndPointInfo
- Returns:
- the host name
-
getPort
public int getPort()
- Specified by:
getPort
in interfaceLegacyServerSocketEndPointInfo
- Specified by:
getPort
in interfaceSocketInfo
-
getLocatorPort
public int getLocatorPort()
Description copied from interface:LegacyServerSocketEndPointInfo
The ORBD's proxy port of this end point. Note: Pre-ORT "port-exchange" model.- Specified by:
getLocatorPort
in interfaceLegacyServerSocketEndPointInfo
- Returns:
- proxy port
-
setLocatorPort
public void setLocatorPort(int port)
- Specified by:
setLocatorPort
in interfaceLegacyServerSocketEndPointInfo
-
getName
public java.lang.String getName()
- Specified by:
getName
in interfaceLegacyServerSocketEndPointInfo
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-