Class Query.QueryBuilder

    • Method Detail

      • pageSize

        public Query.QueryBuilder pageSize​(int pageSize)
        Sets the the maximum number of items per page the response can contain
        Parameters:
        pageSize - the maximum number of items per page the response can contain.
        Returns:
        the builder instance.
      • ifModifiedSince

        public Query.QueryBuilder ifModifiedSince​(Date date)
        Indicates the query should be rejected with HTTP Status 412 (Precondition Failed) if the date specified here is greater than (after) the date of the last resource indexed on target server.

        See this article for details:
        https://jazz.net/wiki/bin/view/Main/JFSIndexStoreQueryAPI#Using_If_Modified_Since_Last_Mod

        Parameters:
        date - the date to send as X-If-Modified-Since-XSD header.
        Returns:
        the builder instance.
      • build

        public Query build()
        Creates an instance of Query with information configured in this builder instance.
        Returns:
        the created Query instance.