public abstract class RDFUnitWebService
extends javax.servlet.http.HttpServlet
| Constructor and Description |
|---|
RDFUnitWebService() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doGet(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse) |
protected void |
doPost(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse) |
protected abstract RDFUnitConfiguration |
getConfiguration(javax.servlet.http.HttpServletRequest httpServletRequest)
Creates an RDFUnitConfiguration based on the GET/POST parameters
|
protected abstract TestSuite |
getTestSuite(RDFUnitConfiguration configuration,
Source dataset)
Creates a TestSuite based on the RDFUnitConfiguration and the Source to be tested
|
void |
init() |
protected abstract void |
printHelpMessage(javax.servlet.http.HttpServletResponse httpServletResponse)
Prints a help message with the correct arguments one can use to call the service
|
protected void |
printMessage(javax.servlet.http.HttpServletResponse httpServletResponse,
String message)
Help function that writes a string to the output surrounded with
|
protected abstract 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
|
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, servicepublic void init()
throws javax.servlet.ServletException
init in class javax.servlet.GenericServletjavax.servlet.ServletExceptionprotected void doGet(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse)
throws javax.servlet.ServletException,
IOException
doGet in class javax.servlet.http.HttpServletjavax.servlet.ServletExceptionIOExceptionprotected void doPost(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse)
throws javax.servlet.ServletException,
IOException
doPost in class javax.servlet.http.HttpServletjavax.servlet.ServletExceptionIOExceptionprotected abstract RDFUnitConfiguration getConfiguration(javax.servlet.http.HttpServletRequest httpServletRequest) throws ParameterException
httpServletRequest - the HttpServletRequestParameterExceptionprotected abstract TestSuite getTestSuite(RDFUnitConfiguration configuration, Source dataset)
configuration - an RDFUnitConfiguration object generated with getConfigurationdataset - The dataset to be tested, this is generated automatically from the RDFUnitConfiguration objectprotected abstract com.hp.hpl.jena.rdf.model.Model validate(RDFUnitConfiguration configuration, Source dataset, TestSuite testSuite) throws TestCaseExecutionException
configuration - 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 abstract void printHelpMessage(javax.servlet.http.HttpServletResponse httpServletResponse)
throws IOException
httpServletResponse - IOExceptionprotected void printMessage(javax.servlet.http.HttpServletResponse httpServletResponse,
String message)
throws IOException
httpServletResponse - message - the message we want to writeIOExceptionCopyright © 2014. All rights reserved.