@ApplicationScoped @Path(value="/cache") public class LinkedDataCachingWebService extends Object
Constructor and Description |
---|
LinkedDataCachingWebService() |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
disableEndpoint(String id) |
javax.ws.rs.core.Response |
enableEndpoint(String id,
boolean enable) |
javax.ws.rs.core.Response |
expireCache(String uri) |
javax.ws.rs.core.Response |
getInformation() |
javax.ws.rs.core.Response |
listEndpoints() |
javax.ws.rs.core.Response |
listProviders() |
javax.ws.rs.core.Response |
refreshCached(String uri) |
javax.ws.rs.core.Response |
registerEndpoint(String name,
String prefix,
String endpointUrl,
String type,
String mimetype,
long expiry) |
javax.ws.rs.core.Response |
removeEndpoint(String id) |
javax.ws.rs.core.Response |
retrieveCached(String uri) |
javax.ws.rs.core.Response |
retrieveEndpoint(String id) |
javax.ws.rs.core.Response |
retrieveLive(String uri) |
@GET @Path(value="/live") public javax.ws.rs.core.Response retrieveLive(@QueryParam(value="uri") String uri)
@GET @Path(value="/cached") public javax.ws.rs.core.Response retrieveCached(@QueryParam(value="uri") String uri)
@GET @Path(value="/refresh") public javax.ws.rs.core.Response refreshCached(@QueryParam(value="uri") String uri)
@POST @Path(value="/expire") public javax.ws.rs.core.Response expireCache(@QueryParam(value="uri") String uri)
@POST @Path(value="/endpoint") public javax.ws.rs.core.Response registerEndpoint(@QueryParam(value="name") String name, @QueryParam(value="prefix") String prefix, @QueryParam(value="endpoint") String endpointUrl, @QueryParam(value="kind") String type, @QueryParam(value="mimetype") String mimetype, @QueryParam(value="expiry") long expiry)
@GET @Path(value="/endpoint/list") @Produces(value="application/json") public javax.ws.rs.core.Response listEndpoints()
@GET @Path(value="/provider/list") @Produces(value="application/json") public javax.ws.rs.core.Response listProviders()
@GET @Path(value="/endpoint/{id}") @Produces(value="application/json") public javax.ws.rs.core.Response retrieveEndpoint(@PathParam(value="id") String id)
@DELETE @Path(value="/endpoint/{id}") public javax.ws.rs.core.Response removeEndpoint(@PathParam(value="id") String id)
@POST @Path(value="/endpoint/{id}/enable") public javax.ws.rs.core.Response enableEndpoint(@PathParam(value="id") String id, @QueryParam(value="enable")@DefaultValue(value="true") boolean enable)
@POST @Path(value="/endpoint/{id}/disable") public javax.ws.rs.core.Response disableEndpoint(@PathParam(value="id") String id)
@GET @Path(value="/info") @Produces(value="application/json") public javax.ws.rs.core.Response getInformation()
Copyright © 2012–2018 The Apache Software Foundation. All rights reserved.