public class RestUtils extends Object
| Modifier and Type | Class and Description | 
|---|---|
| static class  | RestUtils.TemplateExtractionOption | 
| Constructor and Description | 
|---|
| RestUtils() | 
| Modifier and Type | Method and Description | 
|---|---|
| static String | expandPath(String path,
          RestParamsPropertyHolder params,
          RestRequestInterface request) | 
| static List<RestResource> | extractAncestorsParentFirst(RestResource childResource) | 
| static String | extractParams(String pathOrEndpoint,
             RestParamsPropertyHolder params,
             boolean keepHost) | 
| static String | extractParams(String pathOrEndpoint,
             RestParamsPropertyHolder params,
             boolean keepHost,
             RestUtils.TemplateExtractionOption templateExtractionOptions) | 
| static void | extractParamsFromQueryString(RestParamsPropertyHolder params,
                            String queryString) | 
| static String[] | extractTemplateParams(String path) | 
| static String | getExpandedPath(String path,
               RestParamsPropertyHolder params,
               ModelItem context) | 
| static String | getQueryParamsString(RestRequestInterface request) | 
| static String | makeSuffixParameterString(RestRequestInterface request)Build the parameter string to be appended to the path of an REST request | 
| static List<String> | splitMultipleParameters(String paramStr,
                       String delimiter) | 
| static List<String> | splitMultipleParametersEmptyIncluded(String paramStr,
                                    String delimiter)specificaly used for adding empty parameters also in the list when
 "send empty parameters" are checked in HTTP TestRequest Properties | 
public static String extractParams(String pathOrEndpoint, RestParamsPropertyHolder params, boolean keepHost)
public static String extractParams(String pathOrEndpoint, RestParamsPropertyHolder params, boolean keepHost, RestUtils.TemplateExtractionOption templateExtractionOptions)
public static void extractParamsFromQueryString(RestParamsPropertyHolder params, String queryString)
public static String expandPath(String path, RestParamsPropertyHolder params, RestRequestInterface request)
public static String makeSuffixParameterString(RestRequestInterface request)
request - an object representing the REST requestpublic static String getQueryParamsString(RestRequestInterface request)
public static List<String> splitMultipleParameters(String paramStr, String delimiter)
public static List<String> splitMultipleParametersEmptyIncluded(String paramStr, String delimiter)
paramStr - delimiter - public static List<RestResource> extractAncestorsParentFirst(RestResource childResource)
public static String getExpandedPath(String path, RestParamsPropertyHolder params, ModelItem context)
Copyright © 2019. All Rights Reserved.