Module eclipselink
Class SelfLinksResponseBuilder
java.lang.Object
org.eclipse.persistence.jpa.rs.features.FeatureResponseBuilderImpl
org.eclipse.persistence.jpa.rs.features.core.selflinks.SelfLinksResponseBuilder
- All Implemented Interfaces:
FeatureResponseBuilder
FeatureResponseBuilder implementation generating 'self' and 'canonical' links. Used in JPARS 2.0.
- Author:
- gonural, Dmitry Kornilov
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuildAttributeResponse(PersistenceContext context, Map<String, Object> queryParams, String attribute, Object item, jakarta.ws.rs.core.UriInfo uriInfo) Builds the attribute response.buildReadAllQueryResponse(PersistenceContext context, Map<String, Object> queryParams, List<Object> items, jakarta.ws.rs.core.UriInfo uriInfo) Builds the read all query response.buildReportQueryResponse(PersistenceContext context, Map<String, Object> queryParams, List<Object[]> results, List<org.eclipse.persistence.internal.queries.ReportItem> items, jakarta.ws.rs.core.UriInfo uriInfo) Builds the report query response.buildSingleEntityResponse(PersistenceContext context, Map<String, Object> queryParams, Object result, jakarta.ws.rs.core.UriInfo uriInfo) Builds the single entity response.buildSingleResultQueryResponse(PersistenceContext context, Map<String, Object> queryParams, Object result, List<org.eclipse.persistence.internal.queries.ReportItem> items, jakarta.ws.rs.core.UriInfo uriInfo) Builds the single result query response.Methods inherited from class org.eclipse.persistence.jpa.rs.features.FeatureResponseBuilderImpl
createShellJAXBElementList
-
Constructor Details
-
SelfLinksResponseBuilder
public SelfLinksResponseBuilder()
-
-
Method Details
-
buildReadAllQueryResponse
public Object buildReadAllQueryResponse(PersistenceContext context, Map<String, Object> queryParams, List<Object> items, jakarta.ws.rs.core.UriInfo uriInfo) Description copied from interface:FeatureResponseBuilderBuilds the read all query response.- Specified by:
buildReadAllQueryResponsein interfaceFeatureResponseBuilder- Overrides:
buildReadAllQueryResponsein classFeatureResponseBuilderImpl- Parameters:
context- the contextqueryParams- the query paramsitems- the itemsuriInfo- the uri info- Returns:
- the object
-
buildReportQueryResponse
public Object buildReportQueryResponse(PersistenceContext context, Map<String, Object> queryParams, List<Object[]> results, List<org.eclipse.persistence.internal.queries.ReportItem> items, jakarta.ws.rs.core.UriInfo uriInfo) Description copied from interface:FeatureResponseBuilderBuilds the report query response.- Specified by:
buildReportQueryResponsein interfaceFeatureResponseBuilder- Overrides:
buildReportQueryResponsein classFeatureResponseBuilderImpl- Parameters:
context- the contextqueryParams- the query paramsresults- the resultsitems- the itemsuriInfo- the uri info- Returns:
- the object
-
buildSingleResultQueryResponse
public Object buildSingleResultQueryResponse(PersistenceContext context, Map<String, Object> queryParams, Object result, List<org.eclipse.persistence.internal.queries.ReportItem> items, jakarta.ws.rs.core.UriInfo uriInfo) Description copied from interface:FeatureResponseBuilderBuilds the single result query response.- Specified by:
buildSingleResultQueryResponsein interfaceFeatureResponseBuilder- Overrides:
buildSingleResultQueryResponsein classFeatureResponseBuilderImpl- Parameters:
context- the contextqueryParams- the query paramsresult- the resultitems- the report items (result of ReportQuery)uriInfo- the uri info- Returns:
- the response
-
buildAttributeResponse
public Object buildAttributeResponse(PersistenceContext context, Map<String, Object> queryParams, String attribute, Object item, jakarta.ws.rs.core.UriInfo uriInfo) Description copied from interface:FeatureResponseBuilderBuilds the attribute response.- Specified by:
buildAttributeResponsein interfaceFeatureResponseBuilder- Overrides:
buildAttributeResponsein classFeatureResponseBuilderImpl- Parameters:
context- the contextqueryParams- the query paramsattribute- the attributeitem- the resultsuriInfo- the uri info- Returns:
- the object
-
buildSingleEntityResponse
public Object buildSingleEntityResponse(PersistenceContext context, Map<String, Object> queryParams, Object result, jakarta.ws.rs.core.UriInfo uriInfo) Description copied from interface:FeatureResponseBuilderBuilds the single entity response.- Specified by:
buildSingleEntityResponsein interfaceFeatureResponseBuilder- Overrides:
buildSingleEntityResponsein classFeatureResponseBuilderImpl- Parameters:
context- the contextqueryParams- the query paramsresult- the resulturiInfo- the uri info- Returns:
- the object
-