Class AppRestUrlBuilder

java.lang.Object
com.flowable.app.rest.AppRestUrlBuilder

public class AppRestUrlBuilder
extends java.lang.Object
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, Yvo Swillens
  • Field Summary

    Fields 
    Modifier and Type Field Description
    protected java.lang.String baseUrl  
  • Constructor Summary

    Constructors 
    Modifier Constructor Description
    protected AppRestUrlBuilder()  
    protected AppRestUrlBuilder​(java.lang.String baseUrl)  
  • Method Summary

    Modifier and Type Method Description
    java.lang.String buildUrl​(java.lang.String[] fragments, java.lang.Object... arguments)  
    static AppRestUrlBuilder fromCurrentRequest()
    Extracts the base URL from current request
    static AppRestUrlBuilder fromRequest​(javax.servlet.http.HttpServletRequest request)
    Extracts the base URL from the request
    java.lang.String getBaseUrl()  
    static AppRestUrlBuilder usingBaseUrl​(java.lang.String baseUrl)
    Uses baseUrl as the base URL

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait