Class RestUrlBuilder
java.lang.Object
org.flowable.cmmn.rest.service.api.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 RestUrlBuilderExtracts the base URL from current requeststatic RestUrlBuilderfromRequest(jakarta.servlet.http.HttpServletRequest request) Extracts the base URL from the requeststatic RestUrlBuilderusingBaseUrl(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
-