com.atlassian.applinks.host.util
Class InstanceNameGenerator

java.lang.Object
  extended by com.atlassian.applinks.host.util.InstanceNameGenerator

public class InstanceNameGenerator
extends java.lang.Object

Implements the Atlassian Name Generation Algorithm(TM) (taking the first character of each part of the hostname -- like JAC for jira.atlassian.com).

Since:
3.0

Constructor Summary
InstanceNameGenerator()
           
 
Method Summary
 java.lang.String generateInstanceName(java.lang.String baseURL)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InstanceNameGenerator

public InstanceNameGenerator()
Method Detail

generateInstanceName

public java.lang.String generateInstanceName(java.lang.String baseURL)
                                      throws java.net.MalformedURLException
Parameters:
baseURL - the base url to generate an instance name from
Returns:
an abbreviated instance 'name' generated from the base url
Throws:
java.net.MalformedURLException - when the specified URL is not a valid URL string.


Copyright © 2011 Atlassian. All Rights Reserved.