Index
All Classes and Interfaces|All Packages|Serialized Form
B
- bindAnyPort() - Method in class org.refcodes.net.PortManager
-
Any free port in the range as defined by
PortRange.DYNAMIC_PORTS
is bound (reserved) and returned. - bindNextPort(int) - Method in class org.refcodes.net.PortManager
-
The first free port in the range of the given Port-Number and the
PortRange.DYNAMIC_PORTS
max port number (as ofPortRange.getMaxValue()
) bound (reserved) and returned. - bindNextPort(int, int) - Method in class org.refcodes.net.PortManager
-
The first free port in the range of the given begin Port-Number index and the given end Port-Number index is bound (reserved) and returned.
- bindNextPort(PortRange) - Method in class org.refcodes.net.PortManager
-
The first free port in the range of the given begin Port-Number index and the given end Port-Number index is bound (reserved) and returned.
- bindPort(int) - Method in class org.refcodes.net.PortManager
-
The port is bound and returned.
D
- DYNAMIC_PORTS - Enum constant in enum class org.refcodes.net.PortRange
F
- fromAnyCidrNotation(String) - Static method in enum class org.refcodes.net.IpAddress
-
Creates an IP-Address as of an integer array for the first of the enumeration elements being able to successfully parse the provided
String
in CIDR notation. - fromCidrNotation(String) - Method in enum class org.refcodes.net.IpAddress
-
Creates an IP-Address as of an integer array for the current enumeration from the provided
String
in CIDR notation. - fromCidrNotation(String) - Method in interface org.refcodes.net.IpAddressAccessor.IpAddressMutator
-
Constructs the IP-Address from the given
String
and sets it for the IP-Address property.
G
- getBroadcast() - Method in enum class org.refcodes.net.IpAddress
-
The byte representation of the "broadcast" address (if the protocol supports a broadcast).
- getCidrDelimiter() - Method in enum class org.refcodes.net.IpAddress
-
The delimiter used by the CIDR notation.
- getCidrLocalhost() - Method in enum class org.refcodes.net.IpAddress
-
Returns the CIDR notation of the localhost IP-Address.
- getCidrUnspecified() - Method in enum class org.refcodes.net.IpAddress
-
Returns the CIDR notation of the unspecified IP-Address.
- getInstance() - Static method in class org.refcodes.net.PortManagerSingleton
-
Returns the singleton's instance as fabricated by this
PortManagerSingleton
. - getIpAddress() - Method in interface org.refcodes.net.IpAddressAccessor
-
Retrieves the IP-Address from the IP-Address property.
- getLength() - Method in enum class org.refcodes.net.IpAddress
-
Returns the length in bytes of the IP-Address.
- getLocalhost() - Method in enum class org.refcodes.net.IpAddress
-
The byte representation of the "localhost".
- getLocalhostAlias() - Method in enum class org.refcodes.net.IpAddress
-
The commonly used alias for the "localhost".
- getMaxValue() - Method in enum class org.refcodes.net.PortRange
- getMinValue() - Method in enum class org.refcodes.net.PortRange
- getPort() - Method in exception org.refcodes.net.PortAlreadyBoundException
- getPort() - Method in exception org.refcodes.net.PortAlreadyBoundRuntimeException
- getUnspecified() - Method in enum class org.refcodes.net.IpAddress
-
The byte representation of the "unspecified".
I
- IpAddress - Enum Class in org.refcodes.net
-
Metrics of an IP-Address as of IPv4 or IPv6.
- IpAddressAccessor - Interface in org.refcodes.net
-
Provides an accessor for a IP-Address property.
- IpAddressAccessor.IpAddressBuilder<B extends IpAddressAccessor.IpAddressBuilder<B>> - Interface in org.refcodes.net
-
Provides a builder method for a IP-Address property returning the builder for applying multiple build operations.
- IpAddressAccessor.IpAddressMutator - Interface in org.refcodes.net
-
Provides a mutator for a IP-Address property.
- IpAddressAccessor.IpAddressProperty - Interface in org.refcodes.net
-
Provides a IP-Address property.
- IPV4 - Enum constant in enum class org.refcodes.net.IpAddress
-
IPv4:
- IPV6 - Enum constant in enum class org.refcodes.net.IpAddress
-
IPv6:
- isAnyCidrNotation(String) - Static method in enum class org.refcodes.net.IpAddress
-
Determines whether the given
String
represents a valid IP-Address. - isBroadcast(int[]) - Static method in enum class org.refcodes.net.IpAddress
-
Determines whether the given IP-Address is the broadcast address.
- isCidrNotation(String) - Method in enum class org.refcodes.net.IpAddress
-
Determines whether the given
String
represents a valid CIDR notation. - isLocalhost(int[]) - Static method in enum class org.refcodes.net.IpAddress
-
Determines whether the given IP-Address represents the IP-Address of the "localhost" as of
getLocalhost()
. - isLoopback(int[]) - Static method in enum class org.refcodes.net.IpAddress
-
Determines whether the given IP-Address is in the scope of the the loopback interfaces.
- isPortAvaialble(int) - Method in class org.refcodes.net.PortManager
-
Tests whether there is already some Server-Socket technically bound to the given port.
- isPortBound(int) - Method in class org.refcodes.net.PortManager
-
Determines whether the given Port-Number is already in use.
L
- letIpAddress(int[]) - Method in interface org.refcodes.net.IpAddressAccessor.IpAddressProperty
-
This method stores and passes through the given argument, which is very useful for builder APIs: Sets the given integer array (setter) as of
IpAddressAccessor.IpAddressMutator.setIpAddress(int[])
and returns the very same value (getter). - LINUX_DYNAMIC_PORTS - Enum constant in enum class org.refcodes.net.PortRange
N
- NetException - Exception in org.refcodes.net
-
The base exception for networking related issues.
- NetException(String) - Constructor for exception org.refcodes.net.NetException
-
Instantiates a new net exception.
- NetException(String, String) - Constructor for exception org.refcodes.net.NetException
-
Instantiates a new net exception.
- NetException(String, Throwable) - Constructor for exception org.refcodes.net.NetException
-
Instantiates a new net exception.
- NetException(String, Throwable, String) - Constructor for exception org.refcodes.net.NetException
-
Instantiates a new net exception.
- NetException(Throwable) - Constructor for exception org.refcodes.net.NetException
-
Instantiates a new net exception.
- NetException(Throwable, String) - Constructor for exception org.refcodes.net.NetException
-
Instantiates a new net exception.
- NetRuntimeException - Exception in org.refcodes.net
-
The base runtime exception for networking related issues.
- NetRuntimeException(String) - Constructor for exception org.refcodes.net.NetRuntimeException
-
Instantiates a new net runtime exception.
- NetRuntimeException(String, String) - Constructor for exception org.refcodes.net.NetRuntimeException
-
Instantiates a new net runtime exception.
- NetRuntimeException(String, Throwable) - Constructor for exception org.refcodes.net.NetRuntimeException
-
Instantiates a new net runtime exception.
- NetRuntimeException(String, Throwable, String) - Constructor for exception org.refcodes.net.NetRuntimeException
-
Instantiates a new net runtime exception.
- NetRuntimeException(Throwable) - Constructor for exception org.refcodes.net.NetRuntimeException
-
Instantiates a new net runtime exception.
- NetRuntimeException(Throwable, String) - Constructor for exception org.refcodes.net.NetRuntimeException
-
Instantiates a new net runtime exception.
O
- org.refcodes.net - module org.refcodes.net
- org.refcodes.net - package org.refcodes.net
P
- PortAlreadyBoundException - Exception in org.refcodes.net
-
Thrown in case the given port
PortAlreadyBoundException.getPort()
is already in use. - PortAlreadyBoundException(int, String) - Constructor for exception org.refcodes.net.PortAlreadyBoundException
-
Instantiates a new port already bound exception.
- PortAlreadyBoundException(int, String, String) - Constructor for exception org.refcodes.net.PortAlreadyBoundException
-
Instantiates a new port already bound exception.
- PortAlreadyBoundException(int, String, Throwable) - Constructor for exception org.refcodes.net.PortAlreadyBoundException
-
Instantiates a new port already bound exception.
- PortAlreadyBoundException(int, String, Throwable, String) - Constructor for exception org.refcodes.net.PortAlreadyBoundException
-
Instantiates a new port already bound exception.
- PortAlreadyBoundException(int, Throwable) - Constructor for exception org.refcodes.net.PortAlreadyBoundException
-
Instantiates a new port already bound exception.
- PortAlreadyBoundException(int, Throwable, String) - Constructor for exception org.refcodes.net.PortAlreadyBoundException
-
Instantiates a new port already bound exception.
- PortAlreadyBoundRuntimeException - Exception in org.refcodes.net
-
Thrown in case the given port
PortAlreadyBoundRuntimeException.getPort()
is already in use. - PortAlreadyBoundRuntimeException(int, String) - Constructor for exception org.refcodes.net.PortAlreadyBoundRuntimeException
-
Instantiates a new port already bound runtime exception.
- PortAlreadyBoundRuntimeException(int, String, String) - Constructor for exception org.refcodes.net.PortAlreadyBoundRuntimeException
-
Instantiates a new port already bound runtime exception.
- PortAlreadyBoundRuntimeException(int, String, Throwable) - Constructor for exception org.refcodes.net.PortAlreadyBoundRuntimeException
-
Instantiates a new port already bound runtime exception.
- PortAlreadyBoundRuntimeException(int, String, Throwable, String) - Constructor for exception org.refcodes.net.PortAlreadyBoundRuntimeException
-
Instantiates a new port already bound runtime exception.
- PortAlreadyBoundRuntimeException(int, Throwable) - Constructor for exception org.refcodes.net.PortAlreadyBoundRuntimeException
-
Instantiates a new port already bound runtime exception.
- PortAlreadyBoundRuntimeException(int, Throwable, String) - Constructor for exception org.refcodes.net.PortAlreadyBoundRuntimeException
-
Instantiates a new port already bound runtime exception.
- PortManager - Class in org.refcodes.net
-
When implemented as singleton, then resources battling for dynamically assigned ports my use this functionality to get and block a port until it is freed again.
- PortManager() - Constructor for class org.refcodes.net.PortManager
- PortManagerSingleton - Class in org.refcodes.net
-
The singleton of the
PortManager
for system wide port management. - PortManagerSingleton() - Constructor for class org.refcodes.net.PortManagerSingleton
-
Instantiates a new port manager singleton.
- PortNotFoundException - Exception in org.refcodes.net
-
Thrown in case no port can be determined.
- PortNotFoundException(String) - Constructor for exception org.refcodes.net.PortNotFoundException
-
Instantiates a new port not found exception.
- PortNotFoundException(String, String) - Constructor for exception org.refcodes.net.PortNotFoundException
-
Instantiates a new port not found exception.
- PortNotFoundException(String, Throwable) - Constructor for exception org.refcodes.net.PortNotFoundException
-
Instantiates a new port not found exception.
- PortNotFoundException(String, Throwable, String) - Constructor for exception org.refcodes.net.PortNotFoundException
-
Instantiates a new port not found exception.
- PortNotFoundException(Throwable) - Constructor for exception org.refcodes.net.PortNotFoundException
-
Instantiates a new port not found exception.
- PortNotFoundException(Throwable, String) - Constructor for exception org.refcodes.net.PortNotFoundException
-
Instantiates a new port not found exception.
- PortNotFoundRuntimeException - Exception in org.refcodes.net
-
Thrown in case no port can be determined.
- PortNotFoundRuntimeException(String) - Constructor for exception org.refcodes.net.PortNotFoundRuntimeException
-
Instantiates a new port not found runtime exception.
- PortNotFoundRuntimeException(String, String) - Constructor for exception org.refcodes.net.PortNotFoundRuntimeException
-
Instantiates a new port not found runtime exception.
- PortNotFoundRuntimeException(String, Throwable) - Constructor for exception org.refcodes.net.PortNotFoundRuntimeException
-
Instantiates a new port not found runtime exception.
- PortNotFoundRuntimeException(String, Throwable, String) - Constructor for exception org.refcodes.net.PortNotFoundRuntimeException
-
Instantiates a new port not found runtime exception.
- PortNotFoundRuntimeException(Throwable) - Constructor for exception org.refcodes.net.PortNotFoundRuntimeException
-
Instantiates a new port not found runtime exception.
- PortNotFoundRuntimeException(Throwable, String) - Constructor for exception org.refcodes.net.PortNotFoundRuntimeException
-
Instantiates a new port not found runtime exception.
- PortRange - Enum Class in org.refcodes.net
-
Port range definitions as of RFC 6335 ("https://tools.ietf.org/html/rfc6335")
R
- REGISTERED_PORTS - Enum constant in enum class org.refcodes.net.PortRange
S
- setIpAddress(int[]) - Method in interface org.refcodes.net.IpAddressAccessor.IpAddressMutator
-
Sets the IP-Address for the IP-Address property.
- SYSTEM_PORTS - Enum constant in enum class org.refcodes.net.PortRange
T
- toCidrNotation() - Method in interface org.refcodes.net.IpAddressAccessor
-
Constructs the IP-Address
String
in CIDR notation from the IP-Address property. - toCidrNotation(int[]) - Method in enum class org.refcodes.net.IpAddress
- toHostIpAddress() - Static method in enum class org.refcodes.net.IpAddress
-
Tries to determine a no-localhost IP-Address for this machine.
- toString(int[]) - Static method in enum class org.refcodes.net.IpAddress
-
Creates a
String
as of the CIDR notation from the provided IP-Address bytes. - toVisibleIpAddresses() - Static method in enum class org.refcodes.net.IpAddress
-
Tries to determine the known IP-Addresses from the accessible network segment.
U
- unbindPort(Integer) - Method in class org.refcodes.net.PortManager
-
Unbinds a port for the given Port-Number using the
Integer
as handle for unbinding.
V
- valueOf(String) - Static method in enum class org.refcodes.net.IpAddress
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class org.refcodes.net.PortRange
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class org.refcodes.net.IpAddress
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class org.refcodes.net.PortRange
-
Returns an array containing the constants of this enum class, in the order they are declared.
W
- withCidrNotation(String) - Method in interface org.refcodes.net.IpAddressAccessor.IpAddressBuilder
-
Constructs the IP-Address from the given
String
and sets it for the IP-Address property. - withIpAddress(int[]) - Method in interface org.refcodes.net.IpAddressAccessor.IpAddressBuilder
-
Sets the IP-Address for the IP-Address property.
All Classes and Interfaces|All Packages|Serialized Form