public class ContentRestUrlBuilder extends Object
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| Modifier | Constructor and Description |
|---|---|
protected |
ContentRestUrlBuilder() |
protected |
ContentRestUrlBuilder(String baseUrl) |
| Modifier and Type | Method and Description |
|---|---|
String |
buildUrl(String[] fragments,
Object... arguments) |
static ContentRestUrlBuilder |
fromCurrentRequest()
Extracts the base URL from current request
|
static ContentRestUrlBuilder |
fromRequest(javax.servlet.http.HttpServletRequest request)
Extracts the base URL from the request
|
String |
getBaseUrl() |
static ContentRestUrlBuilder |
usingBaseUrl(String baseUrl)
Uses baseUrl as the base URL
|
protected String baseUrl
protected ContentRestUrlBuilder()
protected ContentRestUrlBuilder(String baseUrl)
public String getBaseUrl()
public static ContentRestUrlBuilder usingBaseUrl(String baseUrl)
public static ContentRestUrlBuilder fromRequest(javax.servlet.http.HttpServletRequest request)
public static ContentRestUrlBuilder fromCurrentRequest()
Copyright © 2019 Flowable. All rights reserved.