Package io.goobi.viewer.api.rest
Class AbstractApiUrlManager
java.lang.Object
io.goobi.viewer.api.rest.AbstractApiUrlManager
- Author:
- florian
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
static class
static class
static enum
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract String
abstract String
getInfo()
Calls thegetApiUrl()
and returns aAbstractApiUrlManager.ApiInfo
object if a valid response is returned.parseParameter
(String template, String url, String param) static String
-
Constructor Details
-
AbstractApiUrlManager
public AbstractApiUrlManager()
-
-
Method Details
-
getApiUrl
- Returns:
- The base url to the api without trailing slashes
-
getApplicationUrl
- Returns:
- The base url of the viewer application
-
subPath
-
parseParameter
-
getApiPath
- Returns:
- the path part of the
getApiUrl()
-
path
- Parameters:
paths
-- Returns:
AbstractApiUrlManager.ApiPath
-
getInfo
Calls thegetApiUrl()
and returns aAbstractApiUrlManager.ApiInfo
object if a valid response is returned. Otherwise an object with empty properties is returned Timeout after a maximum of 3 seconds.- Returns:
AbstractApiUrlManager.ApiInfo
-