Class ExecuteQuery
- java.lang.Object
-
- com.sodius.oslc.app.jazz.requests.ExecuteQuery
-
- All Implemented Interfaces:
ResourceRequest<ResourceResponse<QueryResultSet>>
,Callable<ResourceResponse<QueryResultSet>>
public class ExecuteQuery extends Object implements ResourceRequest<ResourceResponse<QueryResultSet>>
Executes a SPARQL query on a Jazz application.- Since:
- 1.1.0
-
-
Constructor Summary
Constructors Constructor Description ExecuteQuery(OslcClient client, Query query)
Creates a new query execution instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResourceResponse<QueryResultSet>
call()
Executes the request and parse the response content in the specified format.
-
-
-
Constructor Detail
-
ExecuteQuery
public ExecuteQuery(OslcClient client, Query query)
Creates a new query execution instance.- Parameters:
client
- the OSLC client to connect to the application.query
- the SPARQL query to execute.
-
-
Method Detail
-
call
public ResourceResponse<QueryResultSet> call()
Description copied from interface:ResourceRequest
Executes the request and parse the response content in the specified format. Throws aClientWebException
in case the HTTP response status is not20x
.- Specified by:
call
in interfaceCallable<ResourceResponse<QueryResultSet>>
- Specified by:
call
in interfaceResourceRequest<ResourceResponse<QueryResultSet>>
-
-