public final class UrlUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
join(String path1,
String path2)
Join two paths together taking into account leading/trailing slashes.
|
static String |
toBaseUrl(FolderJob folder)
Helper to create a base url in case a folder is given
|
static String |
toFullJobPath(String jobName)
Parses the provided job name for folders to get the full path for the job.
|
static String |
toJobBaseUrl(FolderJob folder,
String jobName)
Helper to create the base url for a job, with or without a given folder
|
static URI |
toJsonApiUri(URI uri,
String context,
String path)
Create a JSON URI from the supplied parameters.
|
static URI |
toNoApiUri(URI uri,
String context,
String path)
Create a URI from the supplied parameters.
|
static String |
toViewBaseUrl(FolderJob folder,
String name)
Helper to create the base url for a view, with or without a given folder
|
public static String toBaseUrl(FolderJob folder)
folder - the folder or nullpublic static String toJobBaseUrl(FolderJob folder, String jobName)
folder - the folder or nulljobName - the name of the job.public static String toViewBaseUrl(FolderJob folder, String name)
folder - the folder or nullname - the of the view.public static String toFullJobPath(String jobName)
jobName - the fullName of the job.public static String join(String path1, String path2)
path1 - the first pathpath2 - the second pathpublic static URI toJsonApiUri(URI uri, String context, String path)
uri - the server URIcontext - the server context if anypath - the specific API pathCopyright © 2018. All rights reserved.