Skip navigation links

Package org.apache.olingo.odata2.api

OData Library API

See: Description

Package org.apache.olingo.odata2.api Description

OData Library API

OData Library is a protocol implementation of the OData V2.0 standard. For details of this standard see

This API is intended to implement an OData service. An OData service consists of a metadata provider implementation and an OData processor implementation.

An OData service can be exposed by a web application. For the runntime one JAX-RS implementation is needed and the core implementation library of this API. Apache CXF for example is one such JAX-RS implementation.

Entry point to the service is a JAX-RS servlet. At this servlet init parameters for a ODataServiceFactory is configured. The parameter is a default by JAX-RS and has to be present always.

 <?xml version="1.0" encoding="UTF-8"?>
 <web-app xmlns:xsi=""
   xmlns="" xmlns:web=""
   id="WebApp_ID" version="2.5">
   <display-name>Example OData Service</display-name>

This factory produces the service, a metadata provider and the data processor. The provider, typically a derivative of the class EdmProvider provides the metadata of the service. The processor implements a variety of service interfaces, and provides the data of the service. The processor is typically a derivative of the class ODataSingleProcessor which can be used together with the class ODataSingleService.

Skip navigation links

Copyright © 2013-2017 The Apache Software Foundation. All Rights Reserved.