public class ResourceBase extends com.atomgraph.core.model.impl.QueriedResourceBase implements Resource, QueriedResource
| Modifier | Constructor and Description |
|---|---|
|
ResourceBase(javax.ws.rs.core.UriInfo uriInfo,
javax.ws.rs.core.Request request,
com.atomgraph.core.MediaTypes mediaTypes,
com.atomgraph.core.model.Service service,
Application application,
org.apache.jena.ontology.Ontology ontology,
TemplateCall templateCall,
javax.ws.rs.core.HttpHeaders httpHeaders,
com.sun.jersey.api.core.ResourceContext resourceContext)
Public JAX-RS instance.
|
protected |
ResourceBase(javax.ws.rs.core.UriInfo uriInfo,
javax.ws.rs.core.Request request,
com.atomgraph.core.MediaTypes mediaTypes,
URI uri,
com.atomgraph.core.model.Service service,
Application application,
org.apache.jena.ontology.Ontology ontology,
TemplateCall templateCall,
javax.ws.rs.core.HttpHeaders httpHeaders,
com.sun.jersey.api.core.ResourceContext resourceContext) |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
delete()
Handles DELETE method, deletes the RDF representation of this resource from the default SPARQL endpoint, and
returns response.
|
javax.ws.rs.core.Response |
delete(boolean get)
Handles DELETE method, deletes the RDF representation of this resource from the default SPARQL endpoint, and
returns response.
|
Application |
getApplication() |
javax.ws.rs.core.CacheControl |
getCacheControl()
Returns the cache control of this resource, if specified.
|
javax.ws.rs.core.HttpHeaders |
getHttpHeaders()
Returns HTTP headers of the current request.
|
List<Locale> |
getLanguages()
Content languages supported by the matching LDT template.
|
org.apache.jena.ontology.Ontology |
getOntology() |
org.apache.jena.ontology.OntResource |
getOntResource()
Returns this resource as ontology resource.
|
org.apache.jena.query.Query |
getQuery()
Returns query used to retrieve RDF description of this resource.
|
org.apache.jena.query.QuerySolutionMap |
getQuerySolutionMap()
Returns variable bindings for description query.
|
com.sun.jersey.api.core.ResourceContext |
getResourceContext() |
javax.ws.rs.core.Response.ResponseBuilder |
getResponseBuilder(org.apache.jena.query.Dataset dataset)
Creates response builder from response dataset.
|
Object |
getSubResource()
Returns sub-resource instance.
|
TemplateCall |
getTemplateCall()
Returns LDT template that the URI of this resource matches.
|
org.apache.jena.update.UpdateRequest |
getUpdate()
Returns update used to remove RDF description of this resource.
|
javax.ws.rs.core.Response |
post(org.apache.jena.query.Dataset dataset)
Handles POST method.
|
javax.ws.rs.core.Response |
put(org.apache.jena.query.Dataset dataset)
Handles PUT method.
|
describe, get, getQuery, getServicegetEncodings, getMediaTypes, getRequest, getResponse, getResponse, getResponse, getResponseBuilder, getURI, getUriInfo, getVariants, getWritableMediaTypespublic ResourceBase(@Context
javax.ws.rs.core.UriInfo uriInfo,
@Context
javax.ws.rs.core.Request request,
@Context
com.atomgraph.core.MediaTypes mediaTypes,
@Context
com.atomgraph.core.model.Service service,
@Context
Application application,
@Context
org.apache.jena.ontology.Ontology ontology,
@Context
TemplateCall templateCall,
@Context
javax.ws.rs.core.HttpHeaders httpHeaders,
@Context
com.sun.jersey.api.core.ResourceContext resourceContext)
ldt:Document, this resource becomes a page resource and
HATEOS metadata is added (relations to the container and previous/next page resources).application - LDT applicationmediaTypes - mediaTypesuriInfo - URI information of the current requestrequest - current requestservice - SPARQL serviceontology - LDT ontologytemplateCall - templateCallhttpHeaders - HTTP headers of the current requestresourceContext - resource contextprotected ResourceBase(javax.ws.rs.core.UriInfo uriInfo,
javax.ws.rs.core.Request request,
com.atomgraph.core.MediaTypes mediaTypes,
URI uri,
com.atomgraph.core.model.Service service,
Application application,
org.apache.jena.ontology.Ontology ontology,
TemplateCall templateCall,
javax.ws.rs.core.HttpHeaders httpHeaders,
com.sun.jersey.api.core.ResourceContext resourceContext)
public Object getSubResource()
getSubResource in class com.atomgraph.core.model.impl.QueriedResourceBasepublic javax.ws.rs.core.Response post(org.apache.jena.query.Dataset dataset)
post in interface com.atomgraph.core.model.Resourcepost in class com.atomgraph.core.model.impl.QueriedResourceBasedataset - the RDF payloadpublic javax.ws.rs.core.Response put(org.apache.jena.query.Dataset dataset)
put in interface com.atomgraph.core.model.Resourceput in class com.atomgraph.core.model.impl.QueriedResourceBasedataset - RDF payloadpublic javax.ws.rs.core.Response delete()
delete in interface com.atomgraph.core.model.Resourcedelete in class com.atomgraph.core.model.impl.QueriedResourceBasepublic javax.ws.rs.core.Response delete(boolean get)
GET method, which might throw a 404 Not Found response.get - If true, call GET method.public org.apache.jena.query.QuerySolutionMap getQuerySolutionMap()
public javax.ws.rs.core.Response.ResponseBuilder getResponseBuilder(org.apache.jena.query.Dataset dataset)
Linkheader.
getResponseBuilder in class com.atomgraph.core.model.impl.ResourceBasedataset - response RDF datasetpublic List<Locale> getLanguages()
getLanguages in class com.atomgraph.core.model.impl.ResourceBasepublic org.apache.jena.ontology.OntResource getOntResource()
public TemplateCall getTemplateCall()
404 Not Found was returned.public javax.ws.rs.core.CacheControl getCacheControl()
ldt:cacheControl on templates in the sitemap ontology.public org.apache.jena.query.Query getQuery()
getQuery in interface com.atomgraph.core.model.QueriedResourcegetQuery in class com.atomgraph.core.model.impl.QueriedResourceBasegetQuerySolutionMap()public org.apache.jena.update.UpdateRequest getUpdate()
getQuerySolutionMap()public javax.ws.rs.core.HttpHeaders getHttpHeaders()
public com.sun.jersey.api.core.ResourceContext getResourceContext()
public Application getApplication()
public org.apache.jena.ontology.Ontology getOntology()
Copyright © 2015–2019. All rights reserved.