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
ConstructorsConstructorDescriptionExecuteQuery(OslcClient client, Query query) Creates a new query execution instance. -
Method Summary
Modifier and TypeMethodDescriptioncall()Executes the request and parse the response content in the specified format.
-
Constructor Details
-
ExecuteQuery
Creates a new query execution instance.- Parameters:
client- the OSLC client to connect to the application.query- the SPARQL query to execute.
-
-
Method Details
-
call
Description copied from interface:ResourceRequestExecutes the request and parse the response content in the specified format. Throws aClientWebExceptionin case the HTTP response status is not20x.- Specified by:
callin interfaceCallable<ResourceResponse<QueryResultSet>>- Specified by:
callin interfaceResourceRequest<ResourceResponse<QueryResultSet>>
-