public abstract class AbstractResource extends Object
Modifier and Type | Class and Description |
---|---|
static class |
AbstractResource.Error |
Constructor and Description |
---|
AbstractResource() |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
buildErrorResponse(int status,
Exception exception) |
javax.ws.rs.core.Response |
buildErrorResponse(int status,
String description) |
abstract org.slf4j.Logger |
getLogger() |
ResourceContextFactory |
getResourceContextFactory() |
org.onehippo.cms7.services.search.service.SearchService |
getSearchService(ResourceContext context) |
boolean |
isNodePartOfApiContent(ResourceContext context,
javax.jcr.Node node) |
void |
logException(String message,
Exception e) |
UUID |
parseUUID(String uuid) |
void |
setResourceContextFactory(ResourceContextFactory resourceContextFactory) |
public abstract org.slf4j.Logger getLogger()
public void setResourceContextFactory(ResourceContextFactory resourceContextFactory)
public ResourceContextFactory getResourceContextFactory()
public UUID parseUUID(String uuid) throws IllegalArgumentException
IllegalArgumentException
public boolean isNodePartOfApiContent(ResourceContext context, javax.jcr.Node node) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
public javax.ws.rs.core.Response buildErrorResponse(int status, Exception exception)
public javax.ws.rs.core.Response buildErrorResponse(int status, String description)
public org.onehippo.cms7.services.search.service.SearchService getSearchService(ResourceContext context) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
Copyright © 2008–2016 Hippo B.V. (http://www.onehippo.com). All rights reserved.