Top Description Constructors Methods
org.newsclub.net.unix

public abstract Class AFSocketAddressConfig<A extends AFSocketAddress>

extends Object
Class Inheritance
Type Parameters
<A>
The supported address type.
Imports
java.io.IOException, java.net.SocketAddress, .SocketException, .URI, java.util.Set, org.newsclub.net.unix.AFSocketAddress.AFSocketAddressConstructor

The implementation-specifics for a given AFSocketAddress subclass implementation.
Author
Christian Kohlschütter
See Also
AFAddressFamilyConfig

Constructor Summary

AccessConstructor and Description
protected
AFSocketAddressConfig()

Constructor.

Method Summary

Modifier and TypeMethod and Description
protected abstract AFSocketAddress.AFSocketAddressConstructor<A>

Returns:

The implementation's address constructor.
addressConstructor
()

Returns the implementation's address constructor.

protected SocketAddress

Returns:

The new socket address, or null.
nullBindAddress
()

Returns an appropriate SocketAddress to be used when calling bind with a null argument.

protected abstract A

Returns:

The address.
parseURI
(URI
The URI.
u
,
int
The port to use, or -1 for "unspecified".
port
)

Tries to parse the given address-specific URI.

protected abstract String

Returns:

The name of the implementation's selector provider class.
selectorProviderClassname
()

Returns the name of the implementation's selector provider class.

protected abstract Set<String>

Returns:

The set of supported URI schemes.
uriSchemes
()

Returns the set of supported URI schemes that can be parsed via parseURI(URI, int).

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

AFSocketAddressConfigback to summary
protected AFSocketAddressConfig()

Constructor.

Method Detail

addressConstructorback to summary
protected abstract AFSocketAddress.AFSocketAddressConstructor<A> addressConstructor()

Returns the implementation's address constructor.

Returns:AFSocketAddress.AFSocketAddressConstructor<A>

The implementation's address constructor.

nullBindAddressback to summary
protected SocketAddress nullBindAddress() throws IOException

Returns an appropriate SocketAddress to be used when calling bind with a null argument.

Returns:SocketAddress

The new socket address, or null.

Exceptions
IOException:
on error.
parseURIback to summary
protected abstract A parseURI(URI u, int port) throws SocketException

Tries to parse the given address-specific URI.

Parameters
u:URI

The URI.

port:int

The port to use, or -1 for "unspecified".

Returns:A

The address.

Exceptions
SocketException:
on error.
selectorProviderClassnameback to summary
protected abstract String selectorProviderClassname()

Returns the name of the implementation's selector provider class.

Returns:String

The name of the implementation's selector provider class.

uriSchemesback to summary
protected abstract Set<String> uriSchemes()

Returns the set of supported URI schemes that can be parsed via parseURI(URI, int). These schemes must be unique to this AFSocketAddress type.

Returns:Set<String>

The set of supported URI schemes.