Package org.wildfly.httpclient.naming
Class HttpNamingProvider
java.lang.Object
org.wildfly.httpclient.naming.HttpNamingProvider
- All Implemented Interfaces:
AutoCloseable,NamingProvider
- Author:
- Stuart Douglas
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiongetPeerIdentityForNaming(URI location) Get the peer identity to use for context operations for the specified location.Get the provider environment.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.wildfly.naming.client.NamingProvider
close, getPeerIdentityForNaming, getPeerIdentityForNamingUsingRetry, performAction, performExceptionAction, performExceptionAction, throwNoMoreDestinationsException
-
Field Details
-
FAKE_PRINCIPAL
-
-
Method Details
-
getProviderEnvironment
Description copied from interface:NamingProviderGet the provider environment.- Specified by:
getProviderEnvironmentin interfaceNamingProvider- Returns:
- the provider environment (must not be
null)
-
getPeerIdentityForNaming
Description copied from interface:NamingProviderGet the peer identity to use for context operations for the specified location. The identity may be fixed or it may vary, depending on the context configuration. The location should be from the list returned byProviderEnvironment.getProviderUris().- Specified by:
getPeerIdentityForNamingin interfaceNamingProvider- Parameters:
location- a location fromProviderEnvironment.getProviderUris()(must not benull)- Returns:
- the peer identity to use (must not be
null) - Throws:
NamingException- if connecting, authenticating, or re-authenticating the peer failed
-