public class ValidateWS extends RDFUnitWebService
| Constructor and Description |
|---|
ValidateWS() |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
protected RDFUnitConfiguration |
getConfiguration(javax.servlet.http.HttpServletRequest httpServletRequest)
Creates an RDFUnitConfiguration based on the GET/POST parameters
|
protected TestSuite |
getTestSuite(RDFUnitConfiguration configuration,
Source dataset)
Creates a TestSuite based on the RDFUnitConfiguration and the Source to be tested
|
void |
init() |
protected void |
printHelpMessage(javax.servlet.http.HttpServletResponse httpServletResponse)
Prints a help message with the correct arguments one can use to call the service
|
protected com.hp.hpl.jena.rdf.model.Model |
validate(RDFUnitConfiguration configuration,
Source dataset,
TestSuite testSuite)
Executes the validation of a Sourse dataset against a TestSuite based on a RDFUnitConfiguration
|
doGet, doPost, printMessagedoDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, servicepublic void init()
throws javax.servlet.ServletException
init in class RDFUnitWebServicejavax.servlet.ServletExceptionprotected TestSuite getTestSuite(RDFUnitConfiguration configuration, Source dataset)
RDFUnitWebServicegetTestSuite in class RDFUnitWebServiceconfiguration - an RDFUnitConfiguration object generated with getConfigurationdataset - The dataset to be tested, this is generated automatically from the RDFUnitConfiguration objectprotected com.hp.hpl.jena.rdf.model.Model validate(RDFUnitConfiguration configuration, Source dataset, TestSuite testSuite) throws TestCaseExecutionException
RDFUnitWebServicevalidate in class RDFUnitWebServiceconfiguration - an RDFUnitConfiguration object generated with getConfigurationdataset - The dataset to be tested, this is generated automatically from the RDFUnitConfiguration objecttestSuite - a TestSuite generated with getTestSuite()TestCaseExecutionExceptionprotected RDFUnitConfiguration getConfiguration(javax.servlet.http.HttpServletRequest httpServletRequest) throws ParameterException
RDFUnitWebServicegetConfiguration in class RDFUnitWebServicehttpServletRequest - the HttpServletRequestParameterExceptionprotected void printHelpMessage(javax.servlet.http.HttpServletResponse httpServletResponse)
throws IOException
RDFUnitWebServiceprintHelpMessage in class RDFUnitWebServiceIOExceptionpublic void destroy()
destroy in interface javax.servlet.Servletdestroy in class javax.servlet.GenericServletCopyright © 2014. All rights reserved.