public class FeatureResponseBuilderImpl extends Object implements FeatureResponseBuilder
| Constructor and Description |
|---|
FeatureResponseBuilderImpl() |
| Modifier and Type | Method and Description |
|---|---|
Object |
buildAttributeResponse(PersistenceContext context,
Map<String,Object> queryParams,
String attribute,
Object result,
javax.ws.rs.core.UriInfo uriInfo)
Builds the attribute response.
|
Object |
buildReadAllQueryResponse(PersistenceContext context,
Map<String,Object> queryParams,
List<Object> items,
javax.ws.rs.core.UriInfo uriInfo)
Builds the read all query response.
|
Object |
buildReportQueryResponse(PersistenceContext context,
Map<String,Object> queryParams,
List<Object[]> results,
List<ReportItem> items,
javax.ws.rs.core.UriInfo uriInfo)
Builds the report query response.
|
Object |
buildSingleEntityResponse(PersistenceContext context,
Map<String,Object> queryParams,
Object result,
javax.ws.rs.core.UriInfo uriInfo)
Builds the single entity response.
|
Object |
buildSingleResultQueryResponse(PersistenceContext context,
Map<String,Object> queryParams,
Object result,
List<ReportItem> items,
javax.ws.rs.core.UriInfo uriInfo)
Builds the single result query response.
|
List<JAXBElement> |
createShellJAXBElementList(List<ReportItem> reportItems,
Object record)
Creates the shell jaxb element list.
|
public Object buildReadAllQueryResponse(PersistenceContext context, Map<String,Object> queryParams, List<Object> items, javax.ws.rs.core.UriInfo uriInfo)
buildReadAllQueryResponse in interface FeatureResponseBuildercontext - the contextqueryParams - the query paramsitems - the itemsuriInfo - the uri infopublic Object buildReportQueryResponse(PersistenceContext context, Map<String,Object> queryParams, List<Object[]> results, List<ReportItem> items, javax.ws.rs.core.UriInfo uriInfo)
buildReportQueryResponse in interface FeatureResponseBuildercontext - the contextqueryParams - the query paramsresults - the resultsitems - the itemsuriInfo - the uri infopublic Object buildAttributeResponse(PersistenceContext context, Map<String,Object> queryParams, String attribute, Object result, javax.ws.rs.core.UriInfo uriInfo)
buildAttributeResponse in interface FeatureResponseBuildercontext - the contextqueryParams - the query paramsattribute - the attributeresult - the resultsuriInfo - the uri infopublic Object buildSingleResultQueryResponse(PersistenceContext context, Map<String,Object> queryParams, Object result, List<ReportItem> items, javax.ws.rs.core.UriInfo uriInfo)
buildSingleResultQueryResponse in interface FeatureResponseBuildercontext - the contextqueryParams - the query paramsresult - the resultitems - the report items (result of ReportQuery)uriInfo - the uri infopublic Object buildSingleEntityResponse(PersistenceContext context, Map<String,Object> queryParams, Object result, javax.ws.rs.core.UriInfo uriInfo)
buildSingleEntityResponse in interface FeatureResponseBuildercontext - the contextqueryParams - the query paramsresult - the resulturiInfo - the uri infopublic List<JAXBElement> createShellJAXBElementList(List<ReportItem> reportItems, Object record)
reportItems - the report itemsrecord - the recordEclipseLink 2.6.3, "build v20160428-59c81c5" API Reference