Interface EntitySetProcessor
- All Superinterfaces:
ODataProcessor
- All Known Implementing Classes:
ODataSingleProcessor
Execute a OData entity set request.
-
Method Summary
Modifier and TypeMethodDescriptioncountEntitySet(GetEntitySetCountUriInfo uriInfo, String contentType) Counts the number of requested entities.createEntity(PostUriInfo uriInfo, InputStream content, String requestContentType, String contentType) Creates an entity.readEntitySet(GetEntitySetUriInfo uriInfo, String contentType) Reads entities.Methods inherited from interface org.apache.olingo.odata2.api.processor.ODataProcessor
getContext, setContext
-
Method Details
-
readEntitySet
Reads entities.- Parameters:
uriInfo- information about the request URIcontentType- the content type of the response- Returns:
- an
ODataResponseobject - Throws:
ODataException
-
countEntitySet
ODataResponse countEntitySet(GetEntitySetCountUriInfo uriInfo, String contentType) throws ODataException Counts the number of requested entities.- Parameters:
uriInfo- information about the request URIcontentType- the content type of the response- Returns:
- an
ODataResponseobject - Throws:
ODataException
-
createEntity
ODataResponse createEntity(PostUriInfo uriInfo, InputStream content, String requestContentType, String contentType) throws ODataException Creates an entity.- Parameters:
uriInfo- information about the request URIcontent- the content of the request, containing the data of the new entityrequestContentType- the content type of the request bodycontentType- the content type of the response- Returns:
- an
ODataResponseobject - Throws:
ODataException
-