public class RestBase extends Object
| Modifier and Type | Field and Description |
|---|---|
protected Inventory |
inventory
Deprecated.
this will be made private. Use
inventory(UriInfo) instead. |
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,
javax.ws.rs.core.UriInfo uriInfo,
Reader input) |
protected List<Change<?>> |
getHistory(javax.ws.rs.core.UriInfo uriInfo,
org.hawkular.inventory.paths.CanonicalPath path) |
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 Inventory |
inventory(javax.ws.rs.core.UriInfo uriInfo) |
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 Optional<Instant> |
parseTime(String timestampOrDateTime) |
protected void |
setupMapper(org.hawkular.inventory.paths.CanonicalPath relativePathOrigin) |
@Inject @Deprecated protected Inventory inventory
inventory(UriInfo) instead.@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 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, javax.ws.rs.core.UriInfo uriInfo, Reader input) throws IOException
IOExceptionprotected com.fasterxml.jackson.databind.ObjectMapper getMapper()
protected void setupMapper(org.hawkular.inventory.paths.CanonicalPath relativePathOrigin)
protected Inventory inventory(javax.ws.rs.core.UriInfo uriInfo)
Copyright © 2015–2016 Red Hat, Inc.. All rights reserved.