odata4j

An OData framework for Java


What is OData?

What is odata4j?

Getting started: Consuming OData

// create consumer instance
String serviceUrl = "http://services.odata.org/OData/OData.svc/";
ODataConsumer consumer = ODataConsumers.create(serviceUrl);

// list category names
for (OEntity category : consumer.getEntities("Categories").execute()) {
  String categoryName = category.getProperty("Name", String.class).getValue();
  System.out.println("Category name: " + categoryName);
}

Getting started: Producing OData

Framework design principles

More information