public class ReferencedSiteRootResource
extends org.apache.stanbol.commons.web.base.resource.BaseStanbolResource
SiteManager
TODO: add description| Modifier and Type | Field and Description |
|---|---|
static String |
LICENSE_PATH
The relative path used to publish the license.
|
static Set<String> |
RDF_MEDIA_TYPES |
| Constructor and Description |
|---|
ReferencedSiteRootResource(String siteId,
javax.servlet.ServletContext servletContext) |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
createEntity(String id,
boolean allowUpdate,
Map<String,org.apache.stanbol.entityhub.servicesapi.model.Representation> parsed,
javax.ws.rs.core.HttpHeaders headers) |
javax.ws.rs.core.Response |
deleteEntity(String id,
javax.ws.rs.core.HttpHeaders headers) |
javax.ws.rs.core.Response |
findEntity(String name,
String parsedField,
String language,
Integer limit,
Integer offset,
String ldpath,
javax.ws.rs.core.HttpHeaders headers) |
javax.ws.rs.core.Response |
findEntitybyGet(String name,
String field,
String language,
int limit,
int offset,
String ldpath,
javax.ws.rs.core.HttpHeaders headers) |
javax.ws.rs.core.Response |
getEntityById(String id,
javax.ws.rs.core.HttpHeaders headers)
Cool URI handler for Signs.
|
javax.ws.rs.core.Response |
getHtmlInfo(javax.ws.rs.core.HttpHeaders headers) |
javax.ws.rs.core.Response |
getInfo(javax.ws.rs.core.HttpHeaders headers,
javax.ws.rs.core.UriInfo uriInfo)
Provides metadata about this referenced site as representation
|
javax.ws.rs.core.Response |
getLicenseInfo(javax.ws.rs.core.HttpHeaders headers,
javax.ws.rs.core.UriInfo uriInfo,
String name) |
javax.ws.rs.core.Response |
getQueryDocumentation(javax.ws.rs.core.HttpHeaders headers) |
org.apache.stanbol.entityhub.servicesapi.site.Site |
getSite() |
javax.ws.rs.core.Response |
handleCorsPreflight(javax.ws.rs.core.HttpHeaders headers) |
javax.ws.rs.core.Response |
handleCorsPreflightEntity(javax.ws.rs.core.HttpHeaders headers) |
javax.ws.rs.core.Response |
handleCorsPreflightFind(javax.ws.rs.core.HttpHeaders headers) |
javax.ws.rs.core.Response |
handleCorsPreflightLDPath(javax.ws.rs.core.HttpHeaders headers) |
javax.ws.rs.core.Response |
handleCorsPreflightQuery(javax.ws.rs.core.HttpHeaders headers) |
javax.ws.rs.core.Response |
handleLDPathGet(Set<String> contexts,
String ldpath,
javax.ws.rs.core.HttpHeaders headers) |
javax.ws.rs.core.Response |
handleLDPathPost(Set<String> contexts,
String ldpath,
javax.ws.rs.core.HttpHeaders headers) |
boolean |
isManagedSite() |
javax.ws.rs.core.Response |
queryEntities(org.apache.stanbol.entityhub.servicesapi.query.FieldQuery query,
javax.ws.rs.core.HttpHeaders headers)
Allows to parse any kind of
FieldQuery in its JSON Representation. |
javax.ws.rs.core.Response |
updateEntity(String id,
boolean allowCreate,
Map<String,org.apache.stanbol.entityhub.servicesapi.model.Representation> parsed,
javax.ws.rs.core.HttpHeaders headers) |
public static final String LICENSE_PATH
public ReferencedSiteRootResource(String siteId, @Context javax.servlet.ServletContext servletContext)
public javax.ws.rs.core.Response handleCorsPreflight(@Context
javax.ws.rs.core.HttpHeaders headers)
public javax.ws.rs.core.Response getHtmlInfo(@Context
javax.ws.rs.core.HttpHeaders headers)
public javax.ws.rs.core.Response getInfo(@Context
javax.ws.rs.core.HttpHeaders headers,
@Context
javax.ws.rs.core.UriInfo uriInfo)
headers - the request headers used to get the requested MediaTypeuriInfo - used to get the URI of the current requestpublic javax.ws.rs.core.Response getLicenseInfo(@Context
javax.ws.rs.core.HttpHeaders headers,
@Context
javax.ws.rs.core.UriInfo uriInfo,
String name)
public javax.ws.rs.core.Response handleCorsPreflightEntity(@Context
javax.ws.rs.core.HttpHeaders headers)
public javax.ws.rs.core.Response getEntityById(String id, @Context javax.ws.rs.core.HttpHeaders headers)
id - The id of the entity (required)headers - the request headers used to get the requested MediaTypepublic javax.ws.rs.core.Response createEntity(String id, boolean allowUpdate, Map<String,org.apache.stanbol.entityhub.servicesapi.model.Representation> parsed, @Context javax.ws.rs.core.HttpHeaders headers)
public javax.ws.rs.core.Response updateEntity(String id, boolean allowCreate, Map<String,org.apache.stanbol.entityhub.servicesapi.model.Representation> parsed, @Context javax.ws.rs.core.HttpHeaders headers)
public javax.ws.rs.core.Response deleteEntity(String id, @Context javax.ws.rs.core.HttpHeaders headers)
public javax.ws.rs.core.Response handleCorsPreflightFind(@Context
javax.ws.rs.core.HttpHeaders headers)
public javax.ws.rs.core.Response findEntitybyGet(String name, String field, String language, int limit, int offset, String ldpath, @Context javax.ws.rs.core.HttpHeaders headers)
public javax.ws.rs.core.Response findEntity(String name, String parsedField, String language, Integer limit, Integer offset, String ldpath, @Context javax.ws.rs.core.HttpHeaders headers)
public javax.ws.rs.core.Response handleCorsPreflightQuery(@Context
javax.ws.rs.core.HttpHeaders headers)
public javax.ws.rs.core.Response queryEntities(org.apache.stanbol.entityhub.servicesapi.query.FieldQuery query,
@Context
javax.ws.rs.core.HttpHeaders headers)
FieldQuery in its JSON Representation.
Note that the maximum number of results (limit) and the offset of the
TODO: as soon as the entityhub supports multiple query types this need to be refactored. The idea is that this dynamically detects query types and than redirects them to the referenced site implementation.
query - The field query as parsed by FieldQueryReaderheaders - the header information of the requestpublic javax.ws.rs.core.Response getQueryDocumentation(@Context
javax.ws.rs.core.HttpHeaders headers)
public javax.ws.rs.core.Response handleCorsPreflightLDPath(@Context
javax.ws.rs.core.HttpHeaders headers)
public javax.ws.rs.core.Response handleLDPathGet(Set<String> contexts, String ldpath, @Context javax.ws.rs.core.HttpHeaders headers)
public javax.ws.rs.core.Response handleLDPathPost(Set<String> contexts, String ldpath, @Context javax.ws.rs.core.HttpHeaders headers)
public boolean isManagedSite()
public org.apache.stanbol.entityhub.servicesapi.site.Site getSite()
Copyright © 2010-2014 The Apache Software Foundation. All Rights Reserved.