public class DNSNameMangler
extends java.lang.Object
Utility to convert sandbox store names into DNS save names.
Host labels appear in the same order as transparent overlays
are viewed (highest first). For example:
The "preview" layer on the "alice" layer on the "mysite" layer
within the domain www--sandbox.127-0-0-1.ip.alfrescodemo.net
is encoded as:
http://preview.alice.mysite.www--sandbox.127-0-0-1.ip.alfrescodemo.net
Note that the "virtualization" domain config just refers to
where the wildcard DNS entry begins. Here, both domains
"127-0-0-1.ip.alfrescodemo.net" and "*.127-0-0-1.ip.alfrescodemo.net"
resolve to 127.0.0.1, so effectively "127-0-0-1.ip.alfrescodemo.net"
is the "virtualization domain". The "www--sandbox" part just
delmits the end of the dns-name-mangled store.
This manging scheme was also designed to be fully compatible with
the future use of I18N-encoded DNS names; the relevant standard
is IDNA ("Internationalizing Domain Names In Applications").
See RFC 3490 and 3492.