1 5 6 package org.joseki.server.processors; 7 8 import org.joseki.server.*; 9 import org.joseki.vocabulary.JosekiVocab; 10 11 import com.hp.hpl.jena.rdf.model.*; 12 13 19 20 public class OptionsProcessor extends ZeroArgProcessor { 22 static protected Model emptyModel = ModelFactory.createDefaultModel() ; 23 String acceptsOpName = "options" ; 24 boolean readOnlyLock = true ; 25 26 public OptionsProcessor() 27 { 28 super("options", ProcessorCom.ReadOperation, ProcessorCom.NoChangeToModel) ; 29 } 30 31 public String getInterfaceURI() { return JosekiVocab.opOptions ; } 32 33 34 public Model execZeroArg(ModelSource src, Request request) throws RDFException, ExecutionException 35 { 36 42 String baseURL = request.getParam("baseURL") ; 43 Model resultModel = request.getDispatcher().getOptionsModel(request.getModelSource(), baseURL) ; 44 return resultModel ; 45 } 46 47 } 48 49 50 76 | Popular Tags |