Package com.sodius.oslc.app.jazz.model
Class Query.QueryBuilder
- java.lang.Object
-
- com.sodius.oslc.app.jazz.model.Query.QueryBuilder
-
- Enclosing class:
- Query
public static class Query.QueryBuilder extends Object
Builds an instance of Query.- See Also:
Query.forContent(URI, String)
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Query
build()
Creates an instance of Query with information configured in this builder instance.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.Query.QueryBuilder
pageSize(int pageSize)
Sets the the maximum number of items per page the response can contain
-
-
-
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 asX-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.
-
-