Package org.flowable.common.rest.util
Class RestUrlBuilder
java.lang.Object
org.flowable.common.rest.util.RestUrlBuilder
Helper class for building URLs based on a base URL.
An instance can be created by using
fromRequest(HttpServletRequest)
and fromCurrentRequest()
which extracts the base URL from the request or by specifying the base URL through
usingBaseUrl(String)
buildUrl(String[], Object...)
can be called several times to build URLs based on the base URL- Author:
- Bassam Al-Sarori
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic RestUrlBuilder
Extracts the base URL from current requeststatic RestUrlBuilder
fromRequest
(jakarta.servlet.http.HttpServletRequest request) Extracts the base URL from the requeststatic RestUrlBuilder
usingBaseUrl
(String baseUrl) Uses baseUrl as the base URL
-
Field Details
-
baseUrl
-
-
Constructor Details
-
RestUrlBuilder
protected RestUrlBuilder() -
RestUrlBuilder
-
-
Method Details
-
getBaseUrl
-
buildUrl
-
usingBaseUrl
Uses baseUrl as the base URL -
fromRequest
Extracts the base URL from the request -
fromCurrentRequest
Extracts the base URL from current request
-