Class ApplicationIdUtil
java.lang.Object
com.atlassian.applinks.spi.application.ApplicationIdUtil
- Since:
- 3.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ApplicationIdGenerates a consistent, uniqueApplicationIdfor the specified baseUri.
-
Constructor Details
-
ApplicationIdUtil
public ApplicationIdUtil()
-
-
Method Details
-
generate
Generates a consistent, uniqueApplicationIdfor the specified baseUri. Subsequent calls to this method with the equivalent baseUri will return the same result. 'Equivalent' baseUris are URIs that are lexicographically equal after:- trailing slashes are removed; and
- any Non-ASCII characters are encoded (see
URI.toASCIIString()); and - normalization (see
URI.normalize()).
- Parameters:
baseUri- the base URI of a remote application- Returns:
- a consistent, unique
ApplicationIdfor the suppliedURI - Since:
- 3.0
-