Module org.newsclub.net.unix
Package org.newsclub.net.unix
Class AFSocketAddressConfig<A extends AFSocketAddress>
java.lang.Object
org.newsclub.net.unix.AFSocketAddressConfig<A>
- Type Parameters:
A
- The supported address type.
The implementation-specifics for a given
AFSocketAddress
subclass implementation.- Author:
- Christian Kohlschütter
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract AFSocketAddress.AFSocketAddressConstructor
<A> Returns the implementation's address constructor.protected abstract A
Tries to parse the given address-specific URI.protected abstract String
Returns the name of the implementation's selector provider class.Returns the set of supported URI schemes that can be parsed viaparseURI(URI,int)
.
-
Constructor Details
-
AFSocketAddressConfig
protected AFSocketAddressConfig()Constructor.
-
-
Method Details
-
parseURI
Tries to parse the given address-specific URI.- Parameters:
u
- The URI.port
- The port to use, or-1
for "unspecified".- Returns:
- The address.
- Throws:
SocketException
- on error.
-
addressConstructor
Returns the implementation's address constructor.- Returns:
- The implementation's address constructor.
-
selectorProviderClassname
Returns the name of the implementation's selector provider class.- Returns:
- The name of the implementation's selector provider class.
-
uriSchemes
Returns the set of supported URI schemes that can be parsed viaparseURI(URI,int)
. These schemes must be unique to thisAFSocketAddress
type.- Returns:
- The set of supported URI schemes.
-