public interface VHostManagerIfc
| Modifier and Type | Method and Description |
|---|---|
void |
addComponentDomain(String domain)
Adds a component domain to the collection of local component domains.
|
List<JID> |
getAllVHosts()
Method description
|
ServerComponent[] |
getComponentsForLocalDomain(String domain)
The method returns an array with server components which can process
packets for a given local domain.
|
ServerComponent[] |
getComponentsForNonLocalDomain(String domain)
The method returns an array of server components which can process packets
sent to non-local domain.
|
BareJID |
getDefVHostItem()
Method
getDefVHostItem returns a default VHost for the installation. |
VHostItem |
getVHostItem(String domain)
Returns an object with all domain properties for given domain.
|
VHostItem |
getVHostItemDomainOrComponent(String domain)
Returns an object with all domain properties for a given domain or base domain
if passed domain is name of subdomain used by component.
|
boolean |
isAnonymousEnabled(String domain)
This method checks whether anonymous login is enabled for a given domain.
|
boolean |
isLocalDomain(String domain)
This method checks whether given domain is server by this server instance.
|
boolean |
isLocalDomainOrComponent(String domain)
Method description
|
void |
removeComponentDomain(String domain)
Removes a domain previously registered by a component.
|
boolean isLocalDomain(String domain)
domain - is a String with domain name to check.boolean isLocalDomainOrComponent(String domain)
domain - boolean isAnonymousEnabled(String domain)
domain - is a String with domain name to check.ServerComponent[] getComponentsForLocalDomain(String domain)
null is returned. The given domain may also consist of:
component name ServerComponent.getName() plus any local
domain but only if the component returns true from method
call: VHostListener.handlesNameSubdomains()domain - is a String with a domain name to check. It may
by just a local domain or string created with component name and localdomain.null if no component found for a given domain.ServerComponent[] getComponentsForNonLocalDomain(String domain)
domain - is a String with a domain to check. At the moment
this parameter is ignored. In the future it will be possible to assign a
specific component for any non-local domain.VHostItem getVHostItem(String domain)
domain - is a domain nameVHostItem getVHostItemDomainOrComponent(String domain)
domain - is a domain namevoid addComponentDomain(String domain)
domain - is a component domain name added to the collection.void removeComponentDomain(String domain)
domain - is a component domain name being removed from the collection.BareJID getDefVHostItem()
getDefVHostItem returns a default VHost for the installation.
In most cases this is the first VHost defined in the server configuration.BareJID value of the default VHost for the installation.Copyright © 2022 "Tigase, Inc.". All rights reserved.