Class AFSocketAddressConfig<A extends AFSocketAddress>

java.lang.Object
org.newsclub.net.unix.AFSocketAddressConfig<A>
Type Parameters:
A - The supported address type.

public abstract class AFSocketAddressConfig<A extends AFSocketAddress> extends Object
The implementation-specifics for a given AFSocketAddress subclass implementation.
Author:
Christian Kohlschütter
See Also:
  • Constructor Details

    • AFSocketAddressConfig

      protected AFSocketAddressConfig()
      Constructor.
  • Method Details

    • parseURI

      protected abstract A parseURI(URI u, int port) throws SocketException
      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

      protected abstract AFSocketAddress.AFSocketAddressConstructor<A> addressConstructor()
      Returns the implementation's address constructor.
      Returns:
      The implementation's address constructor.
    • selectorProviderClassname

      protected abstract String selectorProviderClassname()
      Returns the name of the implementation's selector provider class.
      Returns:
      The name of the implementation's selector provider class.
    • uriSchemes

      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:
      The set of supported URI schemes.