Package io.goobi.viewer.api.rest
Class AbstractApiUrlManager
java.lang.Object
io.goobi.viewer.api.rest.AbstractApiUrlManager
- Author:
- florian
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic classstatic classstatic enum -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract Stringabstract StringgetInfo()Calls thegetApiUrl()and returns aAbstractApiUrlManager.ApiInfoobject 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.ApiInfoobject if a valid response is returned. Otherwise an object with empty properties is returned Timeout after a maximum of 3 seconds.- Returns:
AbstractApiUrlManager.ApiInfo
-