Class RequestUtils

java.lang.Object
ch.tocco.nice2.rest.entity.impl.RequestUtils

public final class RequestUtils extends Object
  • 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&param2=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)