|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface VHostManagerIfc
This is VHostManagerIfc interface which allows to access data for virtual domains server by this installation. There can be normally only one instance of this interface implementation loaded on the server at any given time. The instance is responsible for managing all virtual hosts and assigning correct component to each of the virtual hosts or non-local domains. Created: 22 Nov 2008
| Method Summary | |
|---|---|
void |
addComponentDomain(String domain)
Adds a component domain to the collection of local component domains. |
List<tigase.xmpp.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. |
tigase.xmpp.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. |
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. |
| Method Detail |
|---|
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 name
void 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.tigase.xmpp.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.List<tigase.xmpp.JID> getAllVHosts()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||