public class JenaLDPNonRdfSource extends LDPNonRDFSource
Modifier and Type | Field and Description |
---|---|
protected TDBGraphStore |
fGraphStore |
static String |
LDP_NR_DIR
Directory for non-RDF resources.
|
fModel, fRDFType, fURI
Constructor and Description |
---|
JenaLDPNonRdfSource(String resourceURI,
TDBGraphStore graphStore) |
Modifier and Type | Method and Description |
---|---|
protected javax.ws.rs.core.Response |
build(javax.ws.rs.core.Response.ResponseBuilder response)
Helper to add standard content (Allow header, Link header) to this response.
|
void |
delete()
Delete the specified member resource and remove it from the container.
|
protected void |
fail(javax.ws.rs.core.Response.Status status) |
javax.ws.rs.core.Response |
get(String contentType,
javax.ws.rs.core.MultivaluedMap<String,String> preferences)
Get the current state of resource with the specified content type.
|
Set<String> |
getAllowedMethods()
Returns the allowed HTTP methods for this resource as defined in RFC 2616.
|
String |
getTypeURI() |
static boolean |
isLDPNR(String uri) |
javax.ws.rs.core.Response |
options() |
void |
patch(String resourceURI,
InputStream stream,
String contentType,
String user) |
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.
|
static void |
save(InputStream content,
String uri)
Saves an LDP-NR to the local filesystem.
|
getModel, getURI, setModel, setURI
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getModel, getURI, setModel, setURI
protected final TDBGraphStore fGraphStore
public static final String LDP_NR_DIR
public JenaLDPNonRdfSource(String resourceURI, 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.
stream
- the input stream containing the resource representation.contentType
- the Content-Type of the input stream.requestHeaders
- the HTTP request headerspublic void patch(String resourceURI, InputStream stream, String contentType, String user)
public void delete()
ILDPResource
public javax.ws.rs.core.Response get(String contentType, javax.ws.rs.core.MultivaluedMap<String,String> preferences)
ILDPResource
The Content-Type of which to write the model is specified by the
contentType
argument.
contentType
- the Content-Type of which to write the model.preferences
- the preferences from the HTTP Prefer
headerpublic javax.ws.rs.core.Response options()
public Set<String> getAllowedMethods()
ILDPResource
public static void save(InputStream content, String uri)
content
- the contenturi
- the URI of the LDP-NRpublic static boolean isLDPNR(String uri)
protected void fail(javax.ws.rs.core.Response.Status status)
public String getTypeURI()
getTypeURI
in interface ILDPResource
getTypeURI
in class LDPResource
protected javax.ws.rs.core.Response build(javax.ws.rs.core.Response.ResponseBuilder response)
response
- the response builder to add toCopyright © 2018. All rights reserved.