Interface EntityReader
- All Known Implementing Classes:
AbstractEntityReader,CountReader,EntityListReader,ExpandedEntityReader,SingleEntityReader
public interface EntityReader
EntityReader reads from the commerce suite the requested information
-
Method Summary
Modifier and TypeMethodDescriptionbooleanisApplicable(org.apache.olingo.odata2.api.uri.UriInfo uriInfo) Indicates whether this EntityReader can read the requested informationorg.apache.olingo.odata2.api.processor.ODataResponseread(ItemLookupRequest itemLookupRequest) Reads from the commerce suite the requested information
-
Method Details
-
isApplicable
boolean isApplicable(org.apache.olingo.odata2.api.uri.UriInfo uriInfo) Indicates whether this EntityReader can read the requested information- Parameters:
uriInfo- Used to determine whether this EntityReader is applicable- Returns:
trueif this EntityReader can do the read, otherwisefalse
-
read
org.apache.olingo.odata2.api.processor.ODataResponse read(ItemLookupRequest itemLookupRequest) throws org.apache.olingo.odata2.api.exception.ODataException Reads from the commerce suite the requested information- Parameters:
itemLookupRequest- Parameter object that contains the request- Returns:
- The result provided as an
ODataResponse - Throws:
org.apache.olingo.odata2.api.exception.ODataException- When an error occurs retrieving the entity
-