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.


Method Summary
 ODataClientResponse callFunction(ODataClientRequest request)
           
 ODataClientResponse createEntity(ODataClientRequest request)
           
 void createLink(ODataClientRequest request)
           
 Entry createRequestEntry(EdmEntitySet entitySet, OEntityKey entityKey, List<OProperty<?>> props, List<OLink> links)
           
 void deleteEntity(ODataClientRequest request)
           
 void deleteLink(ODataClientRequest request)
           
 Iterable<AtomCollectionInfo> getCollections(ODataClientRequest request)
           
 ODataClientResponse getEntities(ODataClientRequest request)
           
 ODataClientResponse getEntity(ODataClientRequest request)
           
 Reader getFeedReader(ODataClientResponse response)
           
 FormatType getFormatType()
           
 Iterable<SingleLink> getLinks(ODataClientRequest request)
           
 EdmDataServices getMetadata(ODataClientRequest request)
           
 String requestBody(FormatType formatType, ODataClientRequest request)
           
 void updateEntity(ODataClientRequest request)
           
 void updateLink(ODataClientRequest request)
           
 

Method Detail

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