org.odata4j.consumer
Interface ODataClient
- All Known Implementing Classes:
- AbstractODataClient, ODataCxfClient
public interface ODataClient
ODataClient
is one abstraction layer below ODataConsumer
.
This api is mostly implemented in terms of request + response objects that closely
resemble the underlying http request + response.
callFunction
ODataClientResponse callFunction(ODataClientRequest request)
throws ODataProducerException
- Throws:
ODataProducerException
createEntity
ODataClientResponse createEntity(ODataClientRequest request)
throws ODataProducerException
- Throws:
ODataProducerException
createLink
void createLink(ODataClientRequest request)
throws ODataProducerException
- Throws:
ODataProducerException
createRequestEntry
Entry createRequestEntry(EdmEntitySet entitySet,
OEntityKey entityKey,
List<OProperty<?>> props,
List<OLink> links)
deleteEntity
void deleteEntity(ODataClientRequest request)
throws ODataProducerException
- Throws:
ODataProducerException
deleteLink
void deleteLink(ODataClientRequest request)
throws ODataProducerException
- Throws:
ODataProducerException
getCollections
Iterable<AtomCollectionInfo> getCollections(ODataClientRequest request)
throws ODataProducerException
- Throws:
ODataProducerException
getEntities
ODataClientResponse getEntities(ODataClientRequest request)
throws ODataProducerException
- Throws:
ODataProducerException
getEntity
ODataClientResponse getEntity(ODataClientRequest request)
throws ODataProducerException
- Throws:
ODataProducerException
getFeedReader
Reader getFeedReader(ODataClientResponse response)
getFormatType
FormatType getFormatType()
getLinks
Iterable<SingleLink> getLinks(ODataClientRequest request)
throws ODataProducerException
- Throws:
ODataProducerException
getMetadata
EdmDataServices getMetadata(ODataClientRequest request)
throws ODataProducerException
- Throws:
ODataProducerException
requestBody
String requestBody(FormatType formatType,
ODataClientRequest request)
throws ODataProducerException
- Throws:
ODataProducerException
updateEntity
void updateEntity(ODataClientRequest request)
throws ODataProducerException
- Throws:
ODataProducerException
updateLink
void updateLink(ODataClientRequest request)
throws ODataProducerException
- Throws:
ODataProducerException
http://odata4j.org