Package org.wildfly.httpclient.naming
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 Summary
Constructors Constructor Description HttpNamingProviderFactory()Construct a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NamingProvidercreateProvider(FastHashtable<String,Object> env, ProviderEnvironment providerEnvironment)Create the naming provider instance for a provider URI.booleansupportsUriScheme(String providerScheme, FastHashtable<String,Object> env)Determine if this provider supports the givenPROVIDER_URLscheme.
-
-
-
Method Detail
-
supportsUriScheme
public boolean supportsUriScheme(String providerScheme, FastHashtable<String,Object> env)
Description copied from interface:NamingProviderFactoryDetermine if this provider supports the givenPROVIDER_URLscheme.- Specified by:
supportsUriSchemein interfaceNamingProviderFactory- Parameters:
providerScheme- the provider URL scheme, ornullif no provider URL was givenenv- a copy of the environment which may be used to determine if this provider supports the given scheme- Returns:
trueif this provider supports the given schemes,falseotherwise
-
createProvider
public NamingProvider createProvider(FastHashtable<String,Object> env, ProviderEnvironment providerEnvironment) throws NamingException
Description copied from interface:NamingProviderFactoryCreate the naming provider instance for a provider URI.- Specified by:
createProviderin interfaceNamingProviderFactory- Parameters:
env- a copy of the environment which may be consumed directly by the provider (notnull)providerEnvironment- the provider environment (notnull)- Returns:
- the root context (must not be
null) - Throws:
NamingException- if the root context creation failed for some reason
-
-