org.alfresco.util
Class DNSNameMangler

java.lang.Object
  extended by org.alfresco.util.DNSNameMangler

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.


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

DNSNameMangler

public DNSNameMangler()
Method Detail

MakeDNSName

public static java.lang.String MakeDNSName(java.lang.String[] components)
Make a DNS readable name related to the components passed in.

Parameters:
components - The Strings from which to synthesize the DNS name.
Returns:
A Valid DNS name.


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.