FileDocCategorySizeDatePackage
EndPointInfoImpl.javaAPI DocJava SE 5 API1948Fri Aug 26 14:54:24 BST 2005com.sun.corba.se.impl.legacy.connection

EndPointInfoImpl

public class EndPointInfoImpl extends Object implements com.sun.corba.se.spi.transport.SocketInfo, com.sun.corba.se.spi.legacy.connection.LegacyServerSocketEndPointInfo

Fields Summary
protected String
type
protected String
hostname
protected int
port
protected int
locatorPort
protected String
name
Constructors Summary
public EndPointInfoImpl(String type, int port, String hostname)

	this.type = type;
	this.port = port;
	this.hostname = hostname;
	this.locatorPort = -1;
	this.name = LegacyServerSocketEndPointInfo.NO_NAME;
    
Methods Summary
public booleanequals(java.lang.Object obj)

        if (!(obj instanceof EndPointInfoImpl)) {
            return false;
	}
        EndPointInfoImpl other = (EndPointInfoImpl)obj;
	if (type == null) {
	    if (other.type != null) {
		return false;
	    }
	} else if (!type.equals(other.type)) {
	    return false;
	}
        if (port != other.port) {
            return false;
	}
        if (!hostname.equals(other.hostname)) {
            return false;
        }
        return true;
    
public java.lang.StringgetHost()

	return hostname;
    
public java.lang.StringgetHostName()

	return hostname;
    
public intgetLocatorPort()

	return locatorPort;
    
public java.lang.StringgetName()

	return name;
    
public intgetPort()

	return port;
    
public java.lang.StringgetType()

	return type;
    
public inthashCode()

        return type.hashCode() ^ hostname.hashCode() ^ port;
    
public voidsetLocatorPort(int port)

	locatorPort = port;
    
public java.lang.StringtoString()

	return
	    type + " " +
	    name + " " +
	    hostname + " " +
	    port;