Package org.wildfly.httpclient.naming
Class HttpNamingProvider
- java.lang.Object
-
- org.wildfly.httpclient.naming.HttpNamingProvider
-
- All Implemented Interfaces:
AutoCloseable,NamingProvider
public class HttpNamingProvider extends Object implements NamingProvider
- Author:
- Stuart Douglas
-
-
Field Summary
Fields Modifier and Type Field Description static PrincipalFAKE_PRINCIPAL
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PeerIdentitygetPeerIdentityForNaming(URI location)Get the peer identity to use for context operations for the specified location.ProviderEnvironmentgetProviderEnvironment()Get the provider environment.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.wildfly.naming.client.NamingProvider
close, getPeerIdentityForNaming, getPeerIdentityForNamingUsingRetry, performAction, performExceptionAction, performExceptionAction, throwNoMoreDestinationsException
-
-
-
-
Field Detail
-
FAKE_PRINCIPAL
public static final Principal FAKE_PRINCIPAL
-
-
Method Detail
-
getProviderEnvironment
public ProviderEnvironment getProviderEnvironment()
Description copied from interface:NamingProviderGet the provider environment.- Specified by:
getProviderEnvironmentin interfaceNamingProvider- Returns:
- the provider environment (must not be
null)
-
getPeerIdentityForNaming
public PeerIdentity getPeerIdentityForNaming(URI location) throws NamingException
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
-
-