public class RestBase extends Object
| Modifier and Type | Field and Description |
|---|---|
protected Inventory |
inventory |
protected Security |
security |
| Modifier | Constructor and Description |
|---|---|
protected |
RestBase()
Deprecated.
used by the deprecated REST API
|
protected |
RestBase(int pathLength) |
| Modifier and Type | Method and Description |
|---|---|
protected Object |
create(org.hawkular.inventory.paths.CanonicalPath parentPath,
org.hawkular.inventory.paths.SegmentType elementType,
Reader input) |
protected com.fasterxml.jackson.databind.ObjectMapper |
getMapper() |
protected String |
getPath(javax.ws.rs.core.UriInfo uriInfo) |
protected String |
getPath(javax.ws.rs.core.UriInfo uriInfo,
int excludeFromEnd) |
protected String |
getTenantId() |
protected org.hawkular.inventory.paths.CanonicalPath |
getTenantPath() |
protected Traverser |
getTraverser(javax.ws.rs.core.UriInfo ctx) |
protected Traverser |
getTraverserForTenant(javax.ws.rs.core.UriInfo ctx) |
protected <T> javax.ws.rs.core.Response.ResponseBuilder |
pagedResponse(javax.ws.rs.core.Response.ResponseBuilder response,
javax.ws.rs.core.UriInfo uriInfo,
com.fasterxml.jackson.databind.ObjectMapper mapper,
Page<T> page) |
protected <T> javax.ws.rs.core.Response.ResponseBuilder |
pagedResponse(javax.ws.rs.core.Response.ResponseBuilder response,
javax.ws.rs.core.UriInfo uriInfo,
Page<T> page) |
protected org.hawkular.inventory.paths.CanonicalPath |
parsePath(List<javax.ws.rs.core.PathSegment> uriPath) |
protected void |
setupMapper(org.hawkular.inventory.paths.CanonicalPath relativePathOrigin) |
@Inject protected Inventory inventory
@Inject protected Security security
@Deprecated protected RestBase()
protected RestBase(int pathLength)
protected <T> javax.ws.rs.core.Response.ResponseBuilder pagedResponse(javax.ws.rs.core.Response.ResponseBuilder response,
javax.ws.rs.core.UriInfo uriInfo,
Page<T> page)
protected <T> javax.ws.rs.core.Response.ResponseBuilder pagedResponse(javax.ws.rs.core.Response.ResponseBuilder response,
javax.ws.rs.core.UriInfo uriInfo,
com.fasterxml.jackson.databind.ObjectMapper mapper,
Page<T> page)
protected String getTenantId()
protected org.hawkular.inventory.paths.CanonicalPath getTenantPath()
protected org.hawkular.inventory.paths.CanonicalPath parsePath(List<javax.ws.rs.core.PathSegment> uriPath)
protected Traverser getTraverser(javax.ws.rs.core.UriInfo ctx)
protected Traverser getTraverserForTenant(javax.ws.rs.core.UriInfo ctx)
protected String getPath(javax.ws.rs.core.UriInfo uriInfo)
protected String getPath(javax.ws.rs.core.UriInfo uriInfo, int excludeFromEnd)
protected Object create(org.hawkular.inventory.paths.CanonicalPath parentPath, org.hawkular.inventory.paths.SegmentType elementType, Reader input) throws IOException
IOExceptionprotected com.fasterxml.jackson.databind.ObjectMapper getMapper()
protected void setupMapper(org.hawkular.inventory.paths.CanonicalPath relativePathOrigin)
Copyright © 2015–2016 Red Hat, Inc.. All rights reserved.