Interface TenantResolver
- All Known Implementing Classes:
DefaultTenantResolver
public interface TenantResolver
Responsible for resolving the correct
Tenant
or Application
for a given URL. The
URL parameter should include everything necessary to identify an application such as the
application's domain name or domain prefix.- Author:
- Nathan Moore (nathanmoore), Erin Pennington (epenning), Nick Crum (ncrum)
-
Method Summary
Modifier and TypeMethodDescriptionresolveAdminTenant
(String url) Resolves the tenant for the admin that matches the provided URL, or empty.resolveApplication
(String url) Deprecated.Resolves the application that matches the provided ID.resolveApplicationByToken
(String token) Resolves the application that matches the provided token.Resolves the application that matches the provided URL, or empty.
-
Method Details
-
resolveApplication
Deprecated.Resolves the application that matches the provided URL, or empty.- Parameters:
url
- the url to match to an Application- Returns:
- an optional application
-
resolveApplicationByURL
Resolves the application that matches the provided URL, or empty.- Parameters:
url
- the url to match to an Application- Returns:
- an optional application
-
resolveApplicationById
Resolves the application that matches the provided ID.- Parameters:
id
- the ID of the application- Returns:
- an optional application
-
resolveApplicationByToken
Resolves the application that matches the provided token.- Parameters:
token
- the token of the application- Returns:
- an optional application
-
resolveAdminTenant
Resolves the tenant for the admin that matches the provided URL, or empty.- Parameters:
url
- the url to match to a Tenant- Returns:
- an optional tenant
-
resolveApplicationByURL(String)