public class ClientConfiguration extends Object
| Modifier and Type | Method and Description |
|---|---|
URI |
getConfigurationUri()
Get the URI from which the configuration is being read.
|
static ClientConfiguration |
getInstance()
Get a client configuration instance from the current environment.
|
static ClientConfiguration |
getInstance(URI configurationUri)
Get a client configuration instance for a certain URI.
|
static ClientConfiguration |
getInstance(URI configurationUri,
org.wildfly.common.function.ExceptionSupplier<InputStream,IOException> streamSupplier)
Get a client configuration instance for a certain URI, with streams provided by the given supplier.
|
ConfigurationXMLStreamReader |
readConfiguration(Set<String> recognizedNamespaces)
Get a stream reader over a configuration.
|
public URI getConfigurationUri()
public ConfigurationXMLStreamReader readConfiguration(Set<String> recognizedNamespaces) throws ConfigXMLParseException
configuration element which has a namespace corresponding to one of the given namespaces.recognizedNamespaces - the recognized namespacesConfigXMLParseException - if a read error occurspublic static ClientConfiguration getInstance(URI configurationUri)
configurationUri - the configuration URIpublic static ClientConfiguration getInstance(URI configurationUri, org.wildfly.common.function.ExceptionSupplier<InputStream,IOException> streamSupplier)
configurationUri - the configuration URIpublic static ClientConfiguration getInstance()
wildfly.config.url is checked. If present, the configuration file is taken from that URL (which is resolved
against the current working directory if it is a relative URL or a bare path). If the property is not given,
the current thread's context class loader is consulted for a file called wildfly-config.xml, either in the
root of the class loader or within the META-INF folder. If no such resource is found, the same search
is done against the class loader of this library. Finally, if no configurations are found or are loadable, null
is returned.null if no configuration is foundCopyright © 2017 JBoss by Red Hat. All rights reserved.