Interface ResponseBuilder<B extends ResponseBuilder<B,​T,​X>,​T,​X>

    • Method Detail

      • status

        B status​(Http.ResponseStatus status)
        Response status returned by the API call.
        Parameters:
        status - HTTP status
        Returns:
        updated builder
      • headers

        B headers​(Headers headers)
        Configure the HTTP headers returned by the API call.
        Parameters:
        headers - headers
        Returns:
        updated builder
      • requestId

        B requestId​(String requestId)
        Request ID used when dispatching this request.
        Parameters:
        requestId - request id
        Returns:
        updated builder
      • entity

        B entity​(X entity)
        This method is invoked by RestApi when an entity is received.
        Parameters:
        entity - entity
        Returns:
        updated builder