@Produces("text/turtle,application/ld+json,application/n-triples,text/html")
@Path("")
public class RootResource
extends java.lang.Object
| Modifier and Type | Field | Description |
|---|---|---|
protected java.util.Map<java.lang.String,java.lang.String> |
partitions |
|
protected static org.apache.commons.rdf.api.RDF |
rdf |
| Constructor | Description |
|---|---|
RootResource(org.trellisldp.api.IOService ioService,
java.util.Map<java.lang.String,java.lang.String> partitions,
java.util.Properties properties) |
Create a root resource
|
| Modifier and Type | Method | Description |
|---|---|---|
javax.ws.rs.core.Response |
getPartitions(javax.ws.rs.core.UriInfo uriInfo,
javax.ws.rs.core.HttpHeaders headers) |
Get a representation of the root resource
|
protected static final org.apache.commons.rdf.api.RDF rdf
protected final java.util.Map<java.lang.String,java.lang.String> partitions
public RootResource(org.trellisldp.api.IOService ioService,
java.util.Map<java.lang.String,java.lang.String> partitions,
java.util.Properties properties)
ioService - the I/O servicepartitions - a map of partition/baseURLsproperties - a collection of properties to customize the triple output@GET
@Timed
public javax.ws.rs.core.Response getPartitions(@Context
javax.ws.rs.core.UriInfo uriInfo,
@Context
javax.ws.rs.core.HttpHeaders headers)
uriInfo - information about the URIheaders - the request headers