org.odata4j.jersey.consumer
Class ODataJerseyConsumer
java.lang.Object
org.odata4j.consumer.AbstractODataConsumer
org.odata4j.jersey.consumer.ODataJerseyConsumer
- All Implemented Interfaces:
- ODataConsumer
public class ODataJerseyConsumer
- extends AbstractODataConsumer
OData consumer based on Jersey.
Methods inherited from class org.odata4j.consumer.AbstractODataConsumer |
callFunction, createEntity, createLink, deleteEntity, deleteEntity, deleteEntity, deleteLink, getEntities, getEntities, getEntities, getEntitiesCount, getEntity, getEntity, getEntity, getEntity, getEntity, getEntity, getEntitySets, getLinks, getMetadata, getServiceRootUri, mergeEntity, mergeEntity, mergeEntity, mergeEntity, updateEntity, updateLink |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
create
public static ODataJerseyConsumer create(String serviceRootUri)
- Creates a new consumer for the given OData service uri.
Wrapper for ODataJerseyConsumer.newBuilder(serviceRootUri).build()
.
- Parameters:
serviceRootUri
- the service uri e.g. http://services.odata.org/Northwind/Northwind.svc/
- Returns:
- a new OData consumer
getClient
protected ODataClient getClient()
- Specified by:
getClient
in class AbstractODataConsumer
newBuilder
public static ODataJerseyConsumer.Builder newBuilder(String serviceRootUri)
- Constructs a new builder for an
ODataJerseyConsumer
object.
- Parameters:
serviceRootUri
- the OData service root uri
http://odata4j.org