Top Fields Constructors Methods
net.fortuna.ical4j.util

public Class InetAddressHostInfo

extends Object
implements HostInfo
Class Inheritance
All Implemented Interfaces
net.fortuna.ical4j.util.HostInfo
Imports
java.net.InetAddress, .NetworkInterface, .SocketException, java.util.Enumeration

Author
fortuna

Field Summary

Modifier and TypeField and Description
private final InetAddress

Constructor Summary

AccessConstructor and Description
public
public
InetAddressHostInfo(InetAddress
a host address
address
)

Method Summary

Modifier and TypeMethod and Description
private static InetAddress

Returns:

a non loopback address
findNonLoopbackAddress
()

Find a non loopback address for this machine on which to start the server.

public String
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

hostAddressback to summary
private final InetAddress hostAddress

Constructor Detail

InetAddressHostInfoback to summary
public InetAddressHostInfo() throws SocketException
Exceptions
SocketException:
where an error occurs identifying the host address
InetAddressHostInfoback to summary
public InetAddressHostInfo(InetAddress address)
Parameters
address:InetAddress

a host address

Method Detail

findNonLoopbackAddressback to summary
private static InetAddress findNonLoopbackAddress() throws SocketException

Find a non loopback address for this machine on which to start the server.

Returns:InetAddress

a non loopback address

Exceptions
SocketException:
if a socket error occurs
getHostNameback to summary
public String getHostName()

Implements net.fortuna.ical4j.util.HostInfo.getHostName.

Returns:String

Doc from net.fortuna.ical4j.util.HostInfo.getHostName.

a name for the host machine

Annotations
@Override