public class

InstanceNameGenerator

extends Object
java.lang.Object
   ↳ com.atlassian.applinks.host.util.InstanceNameGenerator

Class Overview

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

Summary

Public Constructors
InstanceNameGenerator()
Public Methods
String generateInstanceName(String baseURL)
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public InstanceNameGenerator ()

Public Methods

public String generateInstanceName (String baseURL)

Parameters
baseURL the base url to generate an instance name from
Returns
  • an abbreviated instance 'name' generated from the base url
Throws
MalformedURLException when the specified URL is not a valid URL string.