Class Mapper.MappedHost
- Enclosing class:
Mapper
Represents a mapped host.
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe list of contexts for this host.Fields inherited from class Mapper.MapElement
name, object -
Constructor Summary
ConstructorsConstructorDescriptionMappedHost(String name, Host host) Constructor used for the primary HostMappedHost(String alias, Mapper.MappedHost realHost) Constructor used for an Alias -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAlias(Mapper.MappedHost alias) Add an alias.voidaddAliases(Collection<? extends Mapper.MappedHost> c) Add aliases.Get the aliases.Get the real host.Get the real host name.booleanisAlias()Check if this is an alias.voidremoveAlias(Mapper.MappedHost alias) Remove an alias.
-
Field Details
-
contextList
The list of contexts for this host.
-
-
Constructor Details
-
MappedHost
-
MappedHost
Constructor used for an Alias- Parameters:
alias- The alias of the virtual hostrealHost- The host the alias points to
-
-
Method Details
-
isAlias
public boolean isAlias()Check if this is an alias.- Returns:
- true if this is an alias
-
getRealHost
-
getRealHostName
-
getAliases
-
addAlias
-
addAliases
Add aliases.- Parameters:
c- the aliases to add
-
removeAlias
Remove an alias.- Parameters:
alias- the alias to remove
-