org.odata4j.cxf.consumer
Class ODataCxfClient

java.lang.Object
  extended by org.odata4j.consumer.AbstractODataClient
      extended by org.odata4j.cxf.consumer.ODataCxfClient
All Implemented Interfaces:
ODataClient

public class ODataCxfClient
extends AbstractODataClient

OData client based on Apache's HTTP client implementation.


Constructor Summary
ODataCxfClient(FormatType type, OClientBehavior... behaviors)
           
 
Method Summary
protected  ODataClientResponse doRequest(FormatType reqType, ODataClientRequest request, Response.StatusType... expectedResponseStatus)
           
 Reader getFeedReader(ODataClientResponse response)
           
 String requestBody(FormatType formatType, ODataClientRequest request)
           
protected  XMLEventReader2 toXml(ODataClientResponse response)
           
 
Methods inherited from class org.odata4j.consumer.AbstractODataClient
callFunction, createEntity, createLink, createRequestEntry, deleteEntity, deleteLink, getCollections, getEntities, getEntity, getFormatType, getLinks, getMetadata, updateEntity, updateLink
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ODataCxfClient

public ODataCxfClient(FormatType type,
                      OClientBehavior... behaviors)
Method Detail

doRequest

protected ODataClientResponse doRequest(FormatType reqType,
                                        ODataClientRequest request,
                                        Response.StatusType... expectedResponseStatus)
                                 throws ODataProducerException
Specified by:
doRequest in class AbstractODataClient
Throws:
ODataProducerException

getFeedReader

public Reader getFeedReader(ODataClientResponse response)

requestBody

public String requestBody(FormatType formatType,
                          ODataClientRequest request)
                   throws ODataProducerException
Throws:
ODataProducerException

toXml

protected XMLEventReader2 toXml(ODataClientResponse response)
Specified by:
toXml in class AbstractODataClient


http://odata4j.org