Class ApiResponse.Builder<B extends ApiResponse.Builder<B,​T>,​T extends ApiResponse>

    • Constructor Detail

      • Builder

        protected Builder()
        New builder.
    • Method Detail

      • headers

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

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

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

        public Headers headers()
        Received HTTP headers.
        Returns:
        headers
      • requestId

        public String requestId()
        Request ID used to invoke the request. This may be generated by RestApi
        Returns:
        request id
      • me

        protected B me()
        Can be returned by subclasses that can be subclassed again.
        Returns:
        this instance as a subclass type