Package org.eclipse.lyo.client.query
Class OslcQuery
java.lang.Object
org.eclipse.lyo.client.query.OslcQuery
Represents an OSLC query (HTTP GET) request to be made of a remote system. Immutable.
-
Constructor Summary
ConstructorsConstructorDescriptionOslcQuery
(OslcClient oslcClient, String capabilityUrl) Create an OSLC query that uses the remote system's default page size.OslcQuery
(OslcClient oslcClient, String capabilityUrl, int pageSize) Create an OSLC query that uses the given page sizeOslcQuery
(OslcClient oslcClient, String capabilityUrl, int pageSize, OslcQueryParameters oslcQueryParams) Create an OSLC query that uses OSLC query parameters and the given page sizeOslcQuery
(OslcClient oslcClient, String capabilityUrl, int pageSize, OslcQueryParameters oslcQueryParams, String version) Create an OSLC query that uses OSLC query parameters and the given page sizeOslcQuery
(OslcClient oslcClient, String capabilityUrl, int pageSize, OslcQueryParameters oslcQueryParams, String version, Map<String, String> additionalHeaders) Create an OSLC query that uses OSLC query parameters and the given page sizeOslcQuery
(OslcClient oslcClient, String capabilityUrl, int pageSize, OslcQueryParameters oslcQueryParams, Map<String, String> additionalHeaders) Create an OSLC query that uses OSLC query parameters and the given page sizeOslcQuery
(OslcClient oslcClient, String capabilityUrl, OslcQueryParameters oslcQueryParams) Create an OSLC query with query parameters that uses the default page sizeOslcQuery
(OslcClient oslcClient, String capabilityUrl, OslcQueryParameters oslcQueryParams, Map<String, String> additionalHeaders) Create an OSLC query with query parameters that uses the default page size -
Method Summary
-
Constructor Details
-
OslcQuery
Create an OSLC query that uses the remote system's default page size.- Parameters:
oslcClient
- the authenticated OSLC clientcapabilityUrl
- the URL that is the base
-
OslcQuery
Create an OSLC query with query parameters that uses the default page size- Parameters:
oslcClient
- the authenticated OSLC clientcapabilityUrl
- capabilityUrl the URL that is the baseoslcQueryParams
- an OslcQueryParameters object- See Also:
-
OslcQuery
public OslcQuery(OslcClient oslcClient, String capabilityUrl, OslcQueryParameters oslcQueryParams, Map<String, String> additionalHeaders) Create an OSLC query with query parameters that uses the default page size- Parameters:
oslcClient
- the authenticated OSLC clientcapabilityUrl
- capabilityUrl the URL that is the baseoslcQueryParams
- an OslcQueryParameters objectadditionalHeaders
- additional request headers sent with the query- See Also:
-
OslcQuery
Create an OSLC query that uses the given page size- Parameters:
oslcClient
- the authenticated OSLC clientcapabilityUrl
- the URL that is the basepageSize
- the number of results to include on each page (OslcQueryResult)
-
OslcQuery
public OslcQuery(OslcClient oslcClient, String capabilityUrl, int pageSize, OslcQueryParameters oslcQueryParams) Create an OSLC query that uses OSLC query parameters and the given page size- Parameters:
oslcClient
- the authenticated OSLC clientcapabilityUrl
- the URL that is the basepageSize
- the number of results to include on each page (OslcQueryResult)oslcQueryParams
- an OslcQueryParameters object (seeOslcQueryParameters
)
-
OslcQuery
public OslcQuery(OslcClient oslcClient, String capabilityUrl, int pageSize, OslcQueryParameters oslcQueryParams, Map<String, String> additionalHeaders) Create an OSLC query that uses OSLC query parameters and the given page size- Parameters:
oslcClient
- the authenticated OSLC clientcapabilityUrl
- the URL that is the basepageSize
- the number of results to include on each page (OslcQueryResult)oslcQueryParams
- an OslcQueryParameters object (seeOslcQueryParameters
)additionalHeaders
- additional request headers sent with the query
-
OslcQuery
public OslcQuery(OslcClient oslcClient, String capabilityUrl, int pageSize, OslcQueryParameters oslcQueryParams, String version) Create an OSLC query that uses OSLC query parameters and the given page size- Parameters:
oslcClient
- the authenticated OSLC clientcapabilityUrl
- the URL that is the basepageSize
- the number of results to include on each page (OslcQueryResult)oslcQueryParams
- an OslcQueryParameters object (seeOslcQueryParameters
)version
- OSLC Version (seeOSLCConstants
)
-
OslcQuery
public OslcQuery(OslcClient oslcClient, String capabilityUrl, int pageSize, OslcQueryParameters oslcQueryParams, String version, Map<String, String> additionalHeaders) Create an OSLC query that uses OSLC query parameters and the given page size- Parameters:
oslcClient
- the authenticated OSLC clientcapabilityUrl
- the URL that is the basepageSize
- the number of results to include on each page (OslcQueryResult)oslcQueryParams
- an OslcQueryParameters object (seeOslcQueryParameters
)version
- OSLC Version (seeOSLCConstants
)additionalHeaders
- additional request headers sent with the query
-
-
Method Details
-
getPageSize
public int getPageSize()- Returns:
- the number of entries to return for each page, if zero, the remote system's (or full query's) default is used
-
getCapabilityUrl
- Returns:
- the base query capability URL
-
getQueryUrl
- Returns:
- the complete query URL
-
submit
-