public abstract class TRSTaskHandler extends Object implements Runnable
Modifier and Type | Field and Description |
---|---|
protected String |
baseAuth_pwd |
protected String |
baseAuth_userName
http sparql endpoints of the triplestore used to store the data
|
protected org.eclipse.lyo.oslc4j.client.OslcClient |
oslcClient
instance of the http client used by this TRS Task handler to communicate
with the TRS providers
|
protected String |
sparql_baseAuth_pwd |
protected String |
sparql_baseAuth_userName
http sparql endpoints of the triplestore used to store the data and to
query it by a task handler
|
protected String |
sparqlQueryService |
protected String |
sparqlUpdateService
http sparql endpoints of the triplestore used to store the data
|
protected String |
threadName
this is used for logging purposes.
|
Constructor and Description |
---|
TRSTaskHandler(org.eclipse.lyo.oslc4j.client.OslcClient oslcClient,
String sparqlUpdateService,
String sparqlQueryService,
String sparql_baseAuth_userName,
String sparql_baseAuth_pwd,
String baseAuth_userName,
String baseAuth_pwd) |
Modifier and Type | Method and Description |
---|---|
protected Object |
fetchTRSRemoteResource(String url,
Class<?> objClass)
retrieve the distant resource using basic authentication if necessary
from the given url param and try and return the requested content type
|
protected abstract void |
processTRSTask()
Method to be overridden by the implementing class providing the task
behaviour
|
void |
run() |
protected org.eclipse.lyo.oslc4j.client.OslcClient oslcClient
protected String sparqlUpdateService
protected String sparqlQueryService
protected String sparql_baseAuth_userName
protected String sparql_baseAuth_pwd
protected String baseAuth_userName
protected String baseAuth_pwd
protected String threadName
protected Object fetchTRSRemoteResource(String url, Class<?> objClass) throws IOException, URISyntaxException
url
- the requestes resource urlobjClass
- the required content typeIOException
URISyntaxException
protected abstract void processTRSTask()
Copyright © 2019. All Rights Reserved.