org.odata4j.consumer
Class AbstractODataClient
java.lang.Object
   org.odata4j.consumer.AbstractODataClient
org.odata4j.consumer.AbstractODataClient
- All Implemented Interfaces: 
- ODataClient
- Direct Known Subclasses: 
- ODataCxfClient
- public abstract class AbstractODataClient 
- extends Object- implements ODataClient
Useful base class for ODataClient implementations with common functionality.
 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
 
AbstractODataClient
protected AbstractODataClient(FormatType formatType)
callFunction
public ODataClientResponse callFunction(ODataClientRequest request)
                                 throws ODataProducerException
- 
- Specified by:
- callFunctionin interface- ODataClient
 
- 
- Throws:
- ODataProducerException
 
createEntity
public ODataClientResponse createEntity(ODataClientRequest request)
                                 throws ODataProducerException
- 
- Specified by:
- createEntityin interface- ODataClient
 
- 
- Throws:
- ODataProducerException
 
createLink
public void createLink(ODataClientRequest request)
                throws ODataProducerException
- 
- Specified by:
- createLinkin interface- ODataClient
 
- 
- Throws:
- ODataProducerException
 
createRequestEntry
public Entry createRequestEntry(EdmEntitySet entitySet,
                                OEntityKey entityKey,
                                List<OProperty<?>> props,
                                List<OLink> links)
- 
- Specified by:
- createRequestEntryin interface- ODataClient
 
- 
 
deleteEntity
public void deleteEntity(ODataClientRequest request)
                  throws ODataProducerException
- 
- Specified by:
- deleteEntityin interface- ODataClient
 
- 
- Throws:
- ODataProducerException
 
deleteLink
public void deleteLink(ODataClientRequest request)
                throws ODataProducerException
- 
- Specified by:
- deleteLinkin interface- ODataClient
 
- 
- Throws:
- ODataProducerException
 
doRequest
protected abstract ODataClientResponse doRequest(FormatType reqType,
                                                 ODataClientRequest request,
                                                 Response.StatusType... expectedResponseStatus)
                                          throws ODataProducerException
- 
 
- 
- Throws:
- ODataProducerException
 
getCollections
public Iterable<AtomCollectionInfo> getCollections(ODataClientRequest request)
                                            throws ODataProducerException
- 
- Specified by:
- getCollectionsin interface- ODataClient
 
- 
- Throws:
- ODataProducerException
 
getEntities
public ODataClientResponse getEntities(ODataClientRequest request)
                                throws ODataProducerException
- 
- Specified by:
- getEntitiesin interface- ODataClient
 
- 
- Throws:
- ODataProducerException
 
getEntity
public ODataClientResponse getEntity(ODataClientRequest request)
                              throws ODataProducerException
- 
- Specified by:
- getEntityin interface- ODataClient
 
- 
- Throws:
- ODataProducerException
 
getFormatType
public FormatType getFormatType()
- 
- Specified by:
- getFormatTypein interface- ODataClient
 
- 
 
getLinks
public Iterable<SingleLink> getLinks(ODataClientRequest request)
                              throws ODataProducerException
- 
- Specified by:
- getLinksin interface- ODataClient
 
- 
- Throws:
- ODataProducerException
 
getMetadata
public EdmDataServices getMetadata(ODataClientRequest request)
                            throws ODataProducerException
- 
- Specified by:
- getMetadatain interface- ODataClient
 
- 
- Throws:
- ODataProducerException
 
toXml
protected abstract XMLEventReader2 toXml(ODataClientResponse response)
- 
 
- 
 
updateEntity
public void updateEntity(ODataClientRequest request)
                  throws ODataProducerException
- 
- Specified by:
- updateEntityin interface- ODataClient
 
- 
- Throws:
- ODataProducerException
 
updateLink
public void updateLink(ODataClientRequest request)
                throws ODataProducerException
- 
- Specified by:
- updateLinkin interface- ODataClient
 
- 
- Throws:
- ODataProducerException
 
http://odata4j.org