|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.joseki.server.Dispatcher
The main operation engine class. The dispatcher route requests to operation processors and keeps the mapping from URI to model.
Constructor Summary | |
Dispatcher()
Create a Dispatcher |
|
Dispatcher(Dispatcher queryDispatcher)
Create a Dispatcher that will call another if it can not handle the request |
Method Summary | |
void |
addModelSource(ModelSource aModel,
java.lang.String uri)
|
void |
addProcessor(java.lang.String aModelURI,
java.lang.String shortName,
Processor proc)
Add an operation processor. |
void |
addQueryProcessor(java.lang.String aModelURI,
java.lang.String langName,
QueryProcessor queryProc)
Add a query operation processor. |
Request |
createOperation(java.lang.String uri,
java.lang.String url,
java.lang.String opName)
Find target model, choose processor and make an operation. |
Request |
createQueryRequest(java.lang.String uri,
java.lang.String url,
java.lang.String langName)
|
Request |
createRequest(java.lang.String uri,
java.lang.String url,
java.lang.String opName,
boolean modelMustExist)
|
com.hp.hpl.jena.rdf.model.Model |
exec(Request request)
Actually do something! |
ModelSource |
findModel(java.lang.String uri)
|
Loader |
getLoader()
|
ModelSet |
getModelSet()
|
com.hp.hpl.jena.rdf.model.Model |
getOptionsModel(ModelSource aModel,
java.lang.String baseName)
|
com.hp.hpl.jena.rdf.model.Model |
getOptionsModel(java.lang.String baseName)
|
void |
removeModelSource(java.lang.String uri)
|
void |
removeProcessor(java.lang.String aModelURI,
Processor processor)
Remove a processor. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Dispatcher()
public Dispatcher(Dispatcher queryDispatcher)
queryDispatcher
- Parent dispatcherMethod Detail |
public ModelSet getModelSet()
public Loader getLoader()
public Request createOperation(java.lang.String uri, java.lang.String url, java.lang.String opName) throws ExecutionException
ExecutionException
public Request createRequest(java.lang.String uri, java.lang.String url, java.lang.String opName, boolean modelMustExist) throws ExecutionException
ExecutionException
public Request createQueryRequest(java.lang.String uri, java.lang.String url, java.lang.String langName) throws ExecutionException
ExecutionException
public com.hp.hpl.jena.rdf.model.Model exec(Request request) throws ExecutionException
request
- Request to perform
ExecutionException
public ModelSource findModel(java.lang.String uri)
public com.hp.hpl.jena.rdf.model.Model getOptionsModel(java.lang.String baseName) throws ExecutionException
ExecutionException
public com.hp.hpl.jena.rdf.model.Model getOptionsModel(ModelSource aModel, java.lang.String baseName) throws ExecutionException
ExecutionException
public void addModelSource(ModelSource aModel, java.lang.String uri)
public void removeModelSource(java.lang.String uri)
public void addProcessor(java.lang.String aModelURI, java.lang.String shortName, Processor proc)
aModelURI
- URI for the source the processor is specific to.shortName
- Short name for the operationproc
- The processorpublic void addQueryProcessor(java.lang.String aModelURI, java.lang.String langName, QueryProcessor queryProc)
aModelURI
- Model the processor is specific to.langName
- Language namequeryProc
- The query processorpublic void removeProcessor(java.lang.String aModelURI, Processor processor)
aModelURI
- The attached model URI that the processor is specific to.processor
- The processor
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |