Package com.sodius.oslc.app.jazz.model
Class Query.QueryBuilder
java.lang.Object
com.sodius.oslc.app.jazz.model.Query.QueryBuilder
- Enclosing class:
Query
Builds an instance of Query.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Creates an instance of Query with information configured in this builder instance.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.pageSize(int pageSize) Sets the the maximum number of items per page the response can contain
-
Method Details
-
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
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 asX-If-Modified-Since-XSDheader.- Returns:
- the builder instance.
-
build
Creates an instance of Query with information configured in this builder instance.- Returns:
- the created Query instance.
-