Package org.wildfly.httpclient.naming
Class HttpNamingProviderFactory
java.lang.Object
org.wildfly.httpclient.naming.HttpNamingProviderFactory
- All Implemented Interfaces:
NamingProviderFactory
- Author:
- Stuart Douglas
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateProvider(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.
-
Constructor Details
-
HttpNamingProviderFactory
public HttpNamingProviderFactory()Construct a new instance.
-
-
Method Details
-
supportsUriScheme
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 NamingExceptionDescription 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
-