public class ApplinkUrlMatcher extends Object
Modifier and Type | Field and Description |
---|---|
private boolean |
addHttpOrHttps |
private String |
canonicalBaseUrl |
private boolean |
isEnabled |
Constructor and Description |
---|
ApplinkUrlMatcher(String baseUrl)
Constructor
|
Modifier and Type | Method and Description |
---|---|
com.atlassian.applinks.api.ApplicationLink |
find(Iterable<com.atlassian.applinks.api.ApplicationLink> list)
Find the matching applink among the list
|
String |
getCanonicalUrl() |
boolean |
isEnabled() |
boolean |
matches(com.atlassian.applinks.api.ApplicationLink applicationLink) |
boolean |
matches(String applinkUrl)
Tests whether the parameter URL is the beginning of the application Url.
|
boolean |
matches(URI applinkUrl) |
private final boolean isEnabled
private final boolean addHttpOrHttps
private final String canonicalBaseUrl
public ApplinkUrlMatcher(String baseUrl)
baseUrl
- the URL of the application. The applink will be a substring of the URL of the app.public boolean matches(String applinkUrl)
public boolean matches(URI applinkUrl)
public boolean matches(com.atlassian.applinks.api.ApplicationLink applicationLink)
public com.atlassian.applinks.api.ApplicationLink find(Iterable<com.atlassian.applinks.api.ApplicationLink> list)
public boolean isEnabled()
public String getCanonicalUrl()
Copyright © 2020 Play SQL. All rights reserved.