Package ch.tocco.nice2.rest.entity.impl
Class RequestUtils
java.lang.Object
ch.tocco.nice2.rest.entity.impl.RequestUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable Paging
getPaging
(@Nullable Long totalCount, SearchRequest searchRequest, jakarta.ws.rs.core.UriBuilder uriBuilder) parseQueryParameters
(String searchParams) Parse a string of search params.
-
Method Details
-
parseQueryParameters
public static jakarta.ws.rs.core.MultivaluedMap<String,String> parseQueryParameters(String searchParams) Parse a string of search params. The search params strings must be built like a query string of a URL (i.e."foo=bar¶m2=foobar"
). A parameter key can occur multiple times, since this method returns a multivalued map.- Parameters:
searchParams
- The search params built like the query string of a URL.- Returns:
- the map containing the params.
-
getPaging
@Nullable public static @Nullable Paging getPaging(@Nullable @Nullable Long totalCount, SearchRequest searchRequest, jakarta.ws.rs.core.UriBuilder uriBuilder)
-