org.apache.olingo.odata2.api.client.batch

## Interface BatchSingleResponse

- All Superinterfaces:
    BatchParserResult

      public interface BatchSingleResponse
      extends BatchParserResult

  A BatchSingleResponse

  BatchSingleResponse represents a single response of a Batch Response body. It can be a response to a change request of ChangeSet or a response to a retrieve request

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `String` | `getBody()`
    `String` | `getContentId()`
    `String` | `getHeader(String name)`
    `Set<String>` | `getHeaderNames()`
    `Map<String,String>` | `getHeaders()`
    `String` | `getStatusCode()`
    `String` | `getStatusInfo()`

- - ### Method Detail

    - #### getStatusCode

          String getStatusCode()

      Returns:
        a result code of the attempt to understand and satisfy the request

    - #### getStatusInfo

          String getStatusInfo()

      Returns:
        a short textual description of the status code

    - #### getContentId

          String getContentId()

      Returns:
        a value of the Content-Id header

    - #### getBody

          String getBody()

      Returns:
        a body part of a response message

    - #### getHeaders

          Map<String,String> getHeaders()

      Returns:
        all available headers

    - #### getHeader

          String getHeader(String name)

      Parameters:
        `name` - HTTP response header name
      Returns:
        a header value or null if not set

    - #### getHeaderNames

          Set<String> getHeaderNames()

      Returns:
        a set of all available header names

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