org.apache.olingo.server.api

## Interface ODataHandler

- All Known Subinterfaces:
    ODataHttpHandler

      public interface ODataHandler

  Handles requests as OData requests.

  This includes URI parsing, content negotiation, dispatching the request to a specific custom processor implementation for handling data and creating the serialized content for the response object.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `ODataResponse` | `process(ODataRequest request)` Processes an OData request.
    `void` | `register(OlingoExtension extension)` Registers additional extensions for handling OData requests.
    `void` | `register(Processor processor)` Registers additional custom processor implementations for handling OData requests.

- - ### Method Detail

    - #### process

          ODataResponse process(ODataRequest request)

      Processes an OData request.

      This includes URI parsing, content negotiation, dispatching the request to a specific custom processor implementation for handling data and creating the serialized content for the response object.

      Parameters:
        `request` - the OData request
      Returns:
        OData response

    - #### register

          void register(Processor processor)

      Registers additional custom processor implementations for handling OData requests.

      If request processing requires a processor that is not registered then a "not implemented" exception will happen.

    - #### register

          void register(OlingoExtension extension)

      Registers additional extensions for handling OData requests.

      This method is used for registration of all possible extensions and provide the extensibility for further extensions and different ODataHandler implementations/extensions.

Copyright © 2013–2020 The Apache Software Foundation. All rights reserved.