Retrieves the host address from the specified CFEndPoint.

@see com.ibm.ws.sib.jfapchannel.framework.Framework#getHostAddress(java.lang.Object)
555973
@Override
    public InetAddress getHostAddress(Object endPoint)
    {
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.entry(this, tc, "getHostAddress", endPoint);

        InetAddress address = null;
        if (endPoint instanceof CFEndPoint)
        {
            address = ((CFEndPoint) endPoint).getAddress();
        }

        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.exit(this, tc, "getHostAddress", address);
        return address;
    }
765482
public InetAddress getInetAddress(){
      if(localIP == null){
	 try{
	   localIP = InetAddress.getByName(localHost);
	 }catch(UnknownHostException e){
	   return null;
	 }
      }
      return localIP;
   }
573994
public static InetAddress getLocalIPAddress() {
        Enumeration<NetworkInterface> enumeration = null;
        try {
            enumeration = NetworkInterface.getNetworkInterfaces();
        } catch (SocketException e) {
            e.printStackTrace();
        }
        if (enumeration != null) {
            while (enumeration.hasMoreElements()) {
                NetworkInterface nif = enumeration.nextElement();
                Enumeration<InetAddress> inetAddresses = nif.getInetAddresses();
                if (inetAddresses != null) {
                    while (inetAddresses.hasMoreElements()) {
                        InetAddress inetAddress = inetAddresses.nextElement();
                        if (!inetAddress.isLoopbackAddress() && isIPv4Address(inetAddress.getHostAddress())) {
                            return inetAddress;
                        }
                    }
                }
            }
        }
        return null;
    }
552669
public SIDestinationAddress getDestinationAddress()
  {
    if (TraceComponent.isAnyTracingEnabled() && CoreSPIBrowserSession.tc.isEntryEnabled())
    {    
      SibTr.entry(CoreSPIBrowserSession.tc, "getDestinationAddress", this);    
      SibTr.exit(CoreSPIBrowserSession.tc, "getDestinationAddress", _destinationAddress);
    }
    return _destinationAddress;
  }
1364332
public String getProviderAddress() {
        if (providerAddress!=null) {
            Matcher matcher = HOST_PORT_PATTERN.matcher(providerAddress);
            if (matcher.matches() && isValidPort(matcher.group(2))) {
                return matcher.group(1);
            }
        }else if(providerId!=null){
            Matcher matcher = HOST_PORT_PATTERN.matcher(providerId);
            if (matcher.matches() && isValidPort(matcher.group(2))) {
                return matcher.group(1);
            }
        }
        return providerAddress;
    }
1190215
protected RFC3881NetworkAccessPointTypeCodes getNetworkAccessPointCodeFromAddress(String address) {
        if (EventUtils.isEmptyOrNull(address)) {
            return null;
        }

        if (address.matches("^[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}$")) {
            return RFC3881NetworkAccessPointTypeCodes.IP_ADDRESS;
        }

        return RFC3881NetworkAccessPointTypeCodes.MACHINE_NAME;
    }
1110686
public SIDestinationAddress getDestinationAddress()
   {
      if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getDestinationAddress");
      if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(this, tc, "getDestinationAddress", destinationAddress);
      return destinationAddress;
   }
275214
public String getHostAndPort()
  {
    if (enablePlaintextPort) {
      if (plaintextPort < 0) {
        return HostAndPort.fromString(host).toString();
      } else {
        return HostAndPort.fromParts(host, plaintextPort).toString();
      }
    }
    return null;
  }
622111
public String getHostByAddr(byte [] addr) throws UnknownHostException {
	Name name = ReverseMap.fromAddress(InetAddress.getByAddress(addr));
	Record [] records = new Lookup(name, Type.PTR).run();
	if (records == null)
		throw new UnknownHostException();
	return ((PTRRecord) records[0]).getTarget().toString();
}
629745
public SIDestinationAddress getDestinationAddress()
  {
    if (TraceComponent.isAnyTracingEnabled() && CoreSPIProducerSession.tc.isEntryEnabled())
      SibTr.entry(
        CoreSPIProducerSession.tc,
        "getDestinationAddress", this);

//    if(_ != null)
//    {
//      if (TraceComponent.isAnyTracingEnabled() && CoreSPIProducerSession.tc.isEntryEnabled())
//        SibTr.exit(CoreSPIProducerSession.tc, "getDestinationAddress", _routingDestinationAddr);
//      return _routingDestinationAddr;
//    }

    if (_address == null)
    {
      SIDestinationAddress destAddr
        = DestinationSessionUtils.createJsDestinationAddress(_destination);
      if (TraceComponent.isAnyTracingEnabled() && CoreSPIProducerSession.tc.isEntryEnabled())
        SibTr.exit(CoreSPIProducerSession.tc, "getDestinationAddress", destAddr);
      return destAddr;
    }
    else
    {
      if (TraceComponent.isAnyTracingEnabled() && CoreSPIProducerSession.tc.isEntryEnabled())
        SibTr.exit(CoreSPIProducerSession.tc, "getDestinationAddress", _address);
      return _address;
    }
  }
571016
public static InetSocketAddress getAddress(Configuration conf) {
    InetSocketAddress u = NameNode.getClientProtocolAddress(conf);
    int port = conf.getInt(AvatarNode.DFS_AVATARNODE_PORT_KEY, u.getPort() + 1);
    return new InetSocketAddress(u.getAddress(), port);
  }
1036645
@Override
    public InetAddress toInetAddress () throws UnknownHostException {
        if ( this.addr instanceof Address ) {
            return ( (Address) this.addr ).toInetAddress();
        }
        else if ( this.addr instanceof InetAddress ) {
            return (InetAddress) this.addr;
        }
        return null;
    }
644418
public SIDestinationAddress getDestinationAddress() {

        final String methodName = "getDestinationAddress";
        if (TRACE.isEntryEnabled()) {
            SibTr.entry(this, TRACE, methodName);
        }

        final SIDestinationAddress address = _delegateSession
                .getDestinationAddress();

        if (TRACE.isEntryEnabled()) {
            SibTr.exit(this, TRACE, methodName, _parentConnection);
        }
        return address;

    }
733105
public String getEthernetAddress() {

        if (m_ethernetAddress == null) {
            String address = getExtProperty("server.ethernet.address");
            m_ethernetAddress = CmsStringUtil.isNotEmpty(address) ? address : CmsStringUtil.getEthernetAddress();
        }
        return m_ethernetAddress;
    }
336988
public static InetAddress getInetAddress( String key, InetAddress def ) {
        String addr = prp.getProperty( key );
        if( addr != null ) {
            try {
                def = InetAddress.getByName( addr );
            } catch( UnknownHostException uhe ) {
                if( log.level > 0 ) {
                    log.println( addr );
                    uhe.printStackTrace( log );
                }
            }
        }
        return def;
    }
668731
public static InetAddress getInetAddress ( Properties props, String key, InetAddress def ) {
        String addr = props.getProperty(key);
        if ( addr != null ) {
            try {
                def = InetAddress.getByName(addr);
            }
            catch ( UnknownHostException uhe ) {
                log.error("Unknown host " + addr, uhe);
            }
        }
        return def;
    }
59825
public ProviderEndPoint getEndPoint()
   {
      if (mode != PropertiesType.HOST_PORT)
      {
         throw new SIErrorException(
            nls.getFormattedMessage("INVALID_METHOD_FOR_OBJECT_TYPE_SICO0006", null, "INVALID_METHOD_FOR_OBJECT_TYPE_SICO0006")  // D270373
         );
      }
      
      return endPoint;
   }