org.apache.olingo.client.api.communication.request

## Interface ODataPayloadManager<T extends ODataResponse>

- Type Parameters:
    `T` - OData response type corresponding to the request implementation.
  All Superinterfaces:
    ODataStreamer
  All Known Subinterfaces:
    BatchManager, MediaEntityCreateStreamManager<E>, MediaEntityUpdateStreamManager<E>, StreamUpdateStreamManager

      public interface ODataPayloadManager<T extends ODataResponse>
      extends ODataStreamer

  OData request payload management abstract class.

- - ### Field Summary

    - ### Fields inherited from interface org.apache.olingo.client.api.communication.request.ODataStreamer

      `CRLF`

  - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `finalizeBody()` Closes piped output stream.
    `Future<T>` | `getAsyncResponse()` Closes the payload input stream and ask for an asynchronous response.
    `InputStream` | `getBody()` Gets payload stream.
    `T` | `getResponse()` Closes the payload input stream and gets the OData response back.

    - ### Methods inherited from interface org.apache.olingo.client.api.communication.request.ODataStreamer

      `getBodyStreamWriter`

- - ### Method Detail

    - #### getBody

          InputStream getBody()

      Gets payload stream.
      Returns:
        payload stream.

    - #### finalizeBody

          void finalizeBody()

      Closes piped output stream.

    - #### getResponse

          T getResponse()

      Closes the payload input stream and gets the OData response back.
      Returns:
        OData response.

    - #### getAsyncResponse

          Future<T> getAsyncResponse()

      Closes the payload input stream and ask for an asynchronous response.
      Returns:
        `Future<ODataResponse>` about the executed request.

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