org.apache.stanbol.entityhub.jersey.resource
Class SiteManagerRootResource
java.lang.Object
org.apache.stanbol.commons.web.base.resource.BaseStanbolResource
org.apache.stanbol.entityhub.jersey.resource.SiteManagerRootResource
public class SiteManagerRootResource
- extends org.apache.stanbol.commons.web.base.resource.BaseStanbolResource
Resource to provide a REST API for the SiteManager.
TODO: add description
| Nested classes/interfaces inherited from class org.apache.stanbol.commons.web.base.resource.BaseStanbolResource |
org.apache.stanbol.commons.web.base.resource.BaseStanbolResource.MenuItem |
| Fields inherited from class org.apache.stanbol.commons.web.base.resource.BaseStanbolResource |
LINK_RESOURCES, NAVIGATION_LINKS, ROOT_URL, SCRIPT_RESOURCES, servletContext, STATIC_RESOURCES_ROOT_URL, SYSTEM_CONSOLE, uriInfo |
|
Method Summary |
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 |
findEntityfromGet(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 |
getQueryDocumentation(javax.ws.rs.core.HttpHeaders headers)
|
javax.ws.rs.core.Response |
getReferencedSites(javax.ws.rs.core.UriInfo uriInfo,
javax.ws.rs.core.HttpHeaders headers)
Getter for the id's of all referenced sites |
javax.ws.rs.core.Response |
getSitesPage(javax.ws.rs.core.HttpHeaders headers)
|
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)
|
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. |
| Methods inherited from class org.apache.stanbol.commons.web.base.resource.BaseStanbolResource |
getConsoleBaseUri, getMainMenuItems, getNavigationLinks, getPublicBaseUri, getRegisteredLinkResources, getRegisteredScriptResources, getRequestUri, getRootUrl, getStaticRootUrl |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RDF_MEDIA_TYPES
public static final Set<String> RDF_MEDIA_TYPES
SiteManagerRootResource
public SiteManagerRootResource(@Context
javax.servlet.ServletContext context)
handleCorsPreflight
public javax.ws.rs.core.Response handleCorsPreflight(@Context
javax.ws.rs.core.HttpHeaders headers)
handleCorsPreflightFind
public javax.ws.rs.core.Response handleCorsPreflightFind(@Context
javax.ws.rs.core.HttpHeaders headers)
handleCorsPreflightQuery
public javax.ws.rs.core.Response handleCorsPreflightQuery(@Context
javax.ws.rs.core.HttpHeaders headers)
getSitesPage
public javax.ws.rs.core.Response getSitesPage(@Context
javax.ws.rs.core.HttpHeaders headers)
getReferencedSites
public javax.ws.rs.core.Response getReferencedSites(@Context
javax.ws.rs.core.UriInfo uriInfo,
@Context
javax.ws.rs.core.HttpHeaders headers)
- Getter for the id's of all referenced sites
- Returns:
- the id's of all referenced sites.
handleCorsPreflightEntity
public javax.ws.rs.core.Response handleCorsPreflightEntity(@Context
javax.ws.rs.core.HttpHeaders headers)
getEntityById
public javax.ws.rs.core.Response getEntityById(String id,
@Context
javax.ws.rs.core.HttpHeaders headers)
- Cool URI handler for Signs.
- Parameters:
id - The id of the entity (required)headers - the request headers used to get the requested MediaType
- Returns:
- a redirection to either a browser view, the RDF meta data or the raw binary content
findEntityfromGet
public javax.ws.rs.core.Response findEntityfromGet(String name,
String field,
String language,
int limit,
int offset,
String ldpath,
@Context
javax.ws.rs.core.HttpHeaders headers)
findEntity
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)
getQueryDocumentation
public javax.ws.rs.core.Response getQueryDocumentation(@Context
javax.ws.rs.core.HttpHeaders headers)
queryEntities
public javax.ws.rs.core.Response queryEntities(org.apache.stanbol.entityhub.servicesapi.query.FieldQuery query,
@Context
javax.ws.rs.core.HttpHeaders headers)
- Allows to parse any kind of
FieldQuery in its JSON Representation.
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.
- Parameters:
query - The field query in JSON formatheaders - the header information of the request
- Returns:
- the results of the query
handleCorsPreflightLDPath
public javax.ws.rs.core.Response handleCorsPreflightLDPath(@Context
javax.ws.rs.core.HttpHeaders headers)
handleLDPathGet
public javax.ws.rs.core.Response handleLDPathGet(Set<String> contexts,
String ldpath,
@Context
javax.ws.rs.core.HttpHeaders headers)
handleLDPathPost
public javax.ws.rs.core.Response handleLDPathPost(Set<String> contexts,
String ldpath,
@Context
javax.ws.rs.core.HttpHeaders headers)
Copyright © 2010-2013 The Apache Software Foundation. All Rights Reserved.