Interface EntitySetProcessor
-
- All Superinterfaces:
ODataProcessor
- All Known Implementing Classes:
ODataSingleProcessor
public interface EntitySetProcessor extends ODataProcessor
Execute a OData entity set request.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ODataResponsecountEntitySet(GetEntitySetCountUriInfo uriInfo, String contentType)Counts the number of requested entities.ODataResponsecreateEntity(PostUriInfo uriInfo, InputStream content, String requestContentType, String contentType)Creates an entity.ODataResponsereadEntitySet(GetEntitySetUriInfo uriInfo, String contentType)Reads entities.-
Methods inherited from interface org.apache.olingo.odata2.api.processor.ODataProcessor
getContext, setContext
-
-
-
-
Method Detail
-
readEntitySet
ODataResponse readEntitySet(GetEntitySetUriInfo uriInfo, String contentType) throws ODataException
Reads entities.- Parameters:
uriInfo- information about the request URIcontentType- the content type of the response- Returns:
- an
ODataResponseobject - Throws:
ODataException- Caso ocorra exceção OData
-
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- Caso ocorra exceção OData
-
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- Caso ocorra exceção OData
-
-