Modifier and Type | Field and Description |
---|---|
protected ServletUtilities |
servletUtilities |
Constructor and Description |
---|
STServiceAdapter() |
Modifier and Type | Method and Description |
---|---|
protected XMLResponseREPLY |
createBooleanResponse(boolean resp) |
protected XMLResponseREPLY |
createReplyFAIL(String message) |
protected XMLResponseREPLY |
createReplyResponse(ServiceVocabulary.RepliesStatus status) |
ARTResource |
getMetadataGraph() |
OWLModel |
getOWLModel() |
Project<? extends RDFModel> |
getProject() |
ARTResource[] |
getUserNamedGraphs() |
ARTResource |
getWorkingGraph() |
protected Response |
logAndSendException(Exception e) |
protected Response |
logAndSendException(Exception e,
String msg) |
protected Response |
logAndSendException(String msg) |
protected Response |
logAndSendException(String request,
Exception e)
this convenience method prepares an exception response initialized with the given arguments, logs the
occurred exception with level "error" and prints the stack trace
|
protected Response |
logAndSendException(String request,
Exception e,
String msg)
this convenience method prepares an exception response initialized with the given arguments and logs
the occurred exception with level "error"
|
protected Response |
logAndSendException(String request,
String msg) |
protected Response |
logAndSendException(String request,
String msg,
ServiceVocabulary.SerializationType sertype) |
protected ARTURIResource |
retrieveExistingURIResource(RDFModel model,
String qname)
This should not be used (since there are the Converters).
|
protected ServletUtilities servletUtilities
public OWLModel getOWLModel()
getOWLModel
in interface STService
public ARTResource[] getUserNamedGraphs()
public ARTResource getWorkingGraph()
public ARTResource getMetadataGraph()
protected ARTURIResource retrieveExistingURIResource(RDFModel model, String qname) throws NonExistingRDFResourceException, ModelAccessException
protected Response logAndSendException(String request, Exception e)
request
- e
- protected Response logAndSendException(String request, Exception e, String msg)
request
- e
- msg
- protected Response logAndSendException(String request, String msg, ServiceVocabulary.SerializationType sertype)
protected XMLResponseREPLY createReplyResponse(ServiceVocabulary.RepliesStatus status)
protected XMLResponseREPLY createReplyFAIL(String message)
protected XMLResponseREPLY createBooleanResponse(boolean resp)
Copyright © 2016 ART Group, University of Rome, Tor Vergata. All rights reserved.