public class JenaLDPDirectContainer extends JenaLDPContainer implements ILDPDirectContainer
DEFAULT_RESOURCE_PREFIX, fResourceURIPrefix
CONSTRAINTS_URI, fConfigGraphURI, fGraphStore
fModel, fRDFType, fURI
Modifier | Constructor and Description |
---|---|
protected |
JenaLDPDirectContainer(String containerURI,
TDBGraphStore graphStore) |
Modifier and Type | Method and Description |
---|---|
protected org.apache.jena.rdf.model.Model |
amendResponseGraph(org.apache.jena.rdf.model.Model container,
javax.ws.rs.core.MultivaluedMap<String,String> preferences)
For sub-classes to implement, given the graph for resource R, amend some triples before
response set to client
|
Set<String> |
getAllowedMethods()
Returns the allowed HTTP methods for this resource as defined in RFC 2616.
|
protected boolean |
includeMembers(javax.ws.rs.core.MultivaluedMap<String,String> preferences) |
protected boolean |
isReturnRepresentationPreferenceApplied(javax.ws.rs.core.MultivaluedMap<String,String> preferences) |
void |
putUpdate(InputStream stream,
String contentType,
String user,
javax.ws.rs.core.HttpHeaders requestHeaders)
Updates state of the resource with the contents of the specified stream.
|
addToContainer, amendResponse, appendURISegment, create, createResource, delete, getIsMemberOfRelation, getMemberRelation, getMembershipResourceURI, getReadOnlyProperties, includeContainment, patch, patchResource, post, postNonRDFSource, putCreate, query, setConfigParameters
build, buildErrorResponse, buildErrorResponse, checkIfMatch, fail, failIfReadOnlyPropertyChanged, failParsingRDF, failReadOnlyProperty, get, getConfigModel, getContainerURIForResource, getETag, getGraphStore, isJSONLDPresent, options, readModel, updateResource
getModel, getTypeURI, getURI, setModel, setURI
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
post, postNonRDFSource, putCreate, query
delete, get, getModel, getTypeURI, getURI, options, patch, setModel, setURI
protected JenaLDPDirectContainer(String containerURI, TDBGraphStore graphStore)
public void putUpdate(InputStream stream, String contentType, String user, javax.ws.rs.core.HttpHeaders requestHeaders)
ILDPResource
The Content-Type of the input stream is specified by the
contentType
argument.
putUpdate
in interface ILDPResource
putUpdate
in class JenaLDPRDFSource
stream
- the input stream containing the resource representation.contentType
- the Content-Type of the input stream.requestHeaders
- the HTTP request headersprotected boolean includeMembers(javax.ws.rs.core.MultivaluedMap<String,String> preferences)
protected boolean isReturnRepresentationPreferenceApplied(javax.ws.rs.core.MultivaluedMap<String,String> preferences)
isReturnRepresentationPreferenceApplied
in class JenaLDPContainer
protected org.apache.jena.rdf.model.Model amendResponseGraph(org.apache.jena.rdf.model.Model container, javax.ws.rs.core.MultivaluedMap<String,String> preferences)
JenaLDPRDFSource
amendResponseGraph
in class JenaLDPContainer
public Set<String> getAllowedMethods()
ILDPResource
getAllowedMethods
in interface ILDPResource
getAllowedMethods
in class JenaLDPContainer
Copyright © 2018. All rights reserved.