@ApplicationScoped @Path(value="/ldp{local:.*}") public class LdpWebService extends Object
Modifier and Type | Field and Description |
---|---|
static String |
HTTP_HEADER_ACCEPT_PATCH |
static String |
HTTP_HEADER_ACCEPT_POST |
static String |
HTTP_HEADER_PREFER |
static String |
HTTP_HEADER_PREFERENCE_APPLIED |
static String |
HTTP_HEADER_SLUG |
static String |
HTTP_METHOD_PATCH |
static String |
LDP_SERVER_CONSTRAINTS |
static String |
LINK_PARAM_ANCHOR |
static String |
LINK_REL_CONSTRAINEDBY |
static String |
LINK_REL_CONTENT |
static String |
LINK_REL_DESCRIBEDBY |
static String |
LINK_REL_META |
static String |
LINK_REL_TYPE |
static String |
PATH |
Constructor and Description |
---|
LdpWebService() |
Modifier and Type | Method and Description |
---|---|
protected javax.ws.rs.core.Response.ResponseBuilder |
createResponse(org.openrdf.repository.RepositoryConnection connection,
int status,
String resource)
Add all the default headers specified in LDP to the Response
|
protected javax.ws.rs.core.Response.ResponseBuilder |
createResponse(org.openrdf.repository.RepositoryConnection connection,
javax.ws.rs.core.Response.ResponseBuilder rb,
String resource)
Add all the default headers specified in LDP to the Response
|
protected javax.ws.rs.core.Response.ResponseBuilder |
createResponse(org.openrdf.repository.RepositoryConnection connection,
javax.ws.rs.core.Response.Status status,
String resource)
Add all the default headers specified in LDP to the Response
|
protected javax.ws.rs.core.Response.ResponseBuilder |
createResponse(javax.ws.rs.core.Response.ResponseBuilder rb)
Add the non-resource related headers specified in LDP to the provided ResponseBuilder
|
javax.ws.rs.core.Response |
DELETE(javax.ws.rs.core.UriInfo uriInfo)
Handle delete (Sec.
|
javax.ws.rs.core.Response |
GET(javax.ws.rs.core.UriInfo uriInfo,
String type,
PreferHeader preferHeader) |
javax.ws.rs.core.Response |
HEAD(javax.ws.rs.core.UriInfo uriInfo,
String type,
PreferHeader preferHeader) |
protected void |
initialize(org.apache.marmotta.platform.core.events.SesameStartupEvent event) |
javax.ws.rs.core.Response |
OPTIONS(javax.ws.rs.core.UriInfo uriInfo)
Handle OPTIONS (Sec.
|
javax.ws.rs.core.Response |
PATCH(javax.ws.rs.core.UriInfo uriInfo,
javax.ws.rs.core.EntityTag eTag,
javax.ws.rs.core.MediaType type,
InputStream postBody) |
javax.ws.rs.core.Response |
POST(javax.ws.rs.core.UriInfo uriInfo,
String slug,
List<javax.ws.rs.core.Link> linkHeaders,
InputStream postBody,
javax.ws.rs.core.MediaType type)
LDP Post Request.
|
javax.ws.rs.core.Response |
PUT(javax.ws.rs.core.UriInfo uriInfo,
javax.ws.rs.core.Request request,
List<javax.ws.rs.core.Link> linkHeaders,
javax.ws.rs.core.EntityTag eTag,
javax.ws.rs.core.MediaType type,
InputStream postBody)
Handle PUT (Sec.
|
public static final String PATH
public static final String LDP_SERVER_CONSTRAINTS
public static final String LINK_REL_DESCRIBEDBY
public static final String LINK_REL_CONSTRAINEDBY
public static final String LINK_REL_CONTENT
public static final String LINK_REL_META
public static final String LINK_REL_TYPE
public static final String LINK_PARAM_ANCHOR
public static final String HTTP_HEADER_SLUG
public static final String HTTP_HEADER_ACCEPT_POST
public static final String HTTP_HEADER_ACCEPT_PATCH
public static final String HTTP_HEADER_PREFER
public static final String HTTP_HEADER_PREFERENCE_APPLIED
public static final String HTTP_METHOD_PATCH
protected void initialize(@Observes org.apache.marmotta.platform.core.events.SesameStartupEvent event)
@GET public javax.ws.rs.core.Response GET(@Context javax.ws.rs.core.UriInfo uriInfo, @HeaderParam(value="Accept")@DefaultValue(value="*/*") String type, @HeaderParam(value="Prefer") PreferHeader preferHeader) throws org.openrdf.repository.RepositoryException
org.openrdf.repository.RepositoryException
@HEAD public javax.ws.rs.core.Response HEAD(@Context javax.ws.rs.core.UriInfo uriInfo, @HeaderParam(value="Accept")@DefaultValue(value="*/*") String type, @HeaderParam(value="Prefer") PreferHeader preferHeader) throws org.openrdf.repository.RepositoryException
org.openrdf.repository.RepositoryException
@POST public javax.ws.rs.core.Response POST(@Context javax.ws.rs.core.UriInfo uriInfo, @HeaderParam(value="Slug") String slug, @HeaderParam(value="Link") List<javax.ws.rs.core.Link> linkHeaders, InputStream postBody, @HeaderParam(value="Content-Type") javax.ws.rs.core.MediaType type) throws org.openrdf.repository.RepositoryException
org.openrdf.repository.RepositoryException
@PUT public javax.ws.rs.core.Response PUT(@Context javax.ws.rs.core.UriInfo uriInfo, @Context javax.ws.rs.core.Request request, @HeaderParam(value="Link") List<javax.ws.rs.core.Link> linkHeaders, @HeaderParam(value="If-Match") javax.ws.rs.core.EntityTag eTag, @HeaderParam(value="Content-Type") javax.ws.rs.core.MediaType type, InputStream postBody) throws org.openrdf.repository.RepositoryException, IOException, InvalidModificationException, org.openrdf.rio.RDFParseException, IncompatibleResourceTypeException, URISyntaxException
org.openrdf.repository.RepositoryException
IOException
InvalidModificationException
org.openrdf.rio.RDFParseException
IncompatibleResourceTypeException
URISyntaxException
@DELETE public javax.ws.rs.core.Response DELETE(@Context javax.ws.rs.core.UriInfo uriInfo) throws org.openrdf.repository.RepositoryException
org.openrdf.repository.RepositoryException
@PATCH public javax.ws.rs.core.Response PATCH(@Context javax.ws.rs.core.UriInfo uriInfo, @HeaderParam(value="If-Match") javax.ws.rs.core.EntityTag eTag, @HeaderParam(value="Content-Type") javax.ws.rs.core.MediaType type, InputStream postBody) throws org.openrdf.repository.RepositoryException
org.openrdf.repository.RepositoryException
@OPTIONS public javax.ws.rs.core.Response OPTIONS(@Context javax.ws.rs.core.UriInfo uriInfo) throws org.openrdf.repository.RepositoryException
org.openrdf.repository.RepositoryException
protected javax.ws.rs.core.Response.ResponseBuilder createResponse(org.openrdf.repository.RepositoryConnection connection, javax.ws.rs.core.Response.Status status, String resource) throws org.openrdf.repository.RepositoryException
connection
- the RepositoryConnection (with active transaction) to read extra data fromstatus
- the StatusCoderesource
- the iri/uri/url of the resourceorg.openrdf.repository.RepositoryException
protected javax.ws.rs.core.Response.ResponseBuilder createResponse(org.openrdf.repository.RepositoryConnection connection, int status, String resource) throws org.openrdf.repository.RepositoryException
connection
- the RepositoryConnection (with active transaction) to read extra data fromstatus
- the status coderesource
- the uri/url of the resourceorg.openrdf.repository.RepositoryException
protected javax.ws.rs.core.Response.ResponseBuilder createResponse(org.openrdf.repository.RepositoryConnection connection, javax.ws.rs.core.Response.ResponseBuilder rb, String resource) throws org.openrdf.repository.RepositoryException
connection
- the RepositoryConnection (with active transaction) to read extra data fromrb
- the ResponseBuilderresource
- the uri/url of the resourceorg.openrdf.repository.RepositoryException
protected javax.ws.rs.core.Response.ResponseBuilder createResponse(javax.ws.rs.core.Response.ResponseBuilder rb)
rb
- the ResponseBuilder to decorateCopyright © 2012–2018 The Apache Software Foundation. All rights reserved.