|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.alfresco.util.DNSNameMangler
public class DNSNameMangler
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.
Constructor Summary | |
---|---|
DNSNameMangler()
|
Method Summary | |
---|---|
static java.lang.String |
MakeDNSName(java.lang.String[] components)
Make a DNS readable name related to the components passed in. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DNSNameMangler()
Method Detail |
---|
public static java.lang.String MakeDNSName(java.lang.String[] components)
components
- The Strings from which to synthesize the DNS name.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |