Class HttpNamingProviderFactory

java.lang.Object
org.wildfly.httpclient.naming.HttpNamingProviderFactory
All Implemented Interfaces:
NamingProviderFactory

public class HttpNamingProviderFactory extends Object implements NamingProviderFactory
Author:
Stuart Douglas
  • Constructor Details

    • HttpNamingProviderFactory

      public HttpNamingProviderFactory()
      Construct a new instance.
  • Method Details

    • supportsUriScheme

      public boolean supportsUriScheme(String providerScheme, FastHashtable<String,Object> env)
      Description copied from interface: NamingProviderFactory
      Determine if this provider supports the given PROVIDER_URL scheme.
      Specified by:
      supportsUriScheme in interface NamingProviderFactory
      Parameters:
      providerScheme - the provider URL scheme, or null if no provider URL was given
      env - a copy of the environment which may be used to determine if this provider supports the given scheme
      Returns:
      true if this provider supports the given schemes, false otherwise
    • createProvider

      public NamingProvider createProvider(FastHashtable<String,Object> env, ProviderEnvironment providerEnvironment) throws NamingException
      Description copied from interface: NamingProviderFactory
      Create the naming provider instance for a provider URI.
      Specified by:
      createProvider in interface NamingProviderFactory
      Parameters:
      env - a copy of the environment which may be consumed directly by the provider (not null)
      providerEnvironment - the provider environment (not null)
      Returns:
      the root context (must not be null)
      Throws:
      NamingException - if the root context creation failed for some reason