Interface GenericResponse

All Superinterfaces:
BaseResponse, HttpBaseResponse
All Known Subinterfaces:
HttpResponse, MessageResponse, Response, TcpResponse

@Deprecated(forRemoval=true) public interface GenericResponse extends HttpBaseResponse
Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • status

      GenericResponse status(int statusCode)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: HttpBaseResponse
      Set the status code of the http response.
      Specified by:
      status in interface HttpBaseResponse
      Parameters:
      statusCode - the status code to set.
      Returns:
      a self-reference.
    • reason

      GenericResponse reason(String message)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: HttpBaseResponse
      Set the reason message.
      Specified by:
      reason in interface HttpBaseResponse
      Parameters:
      message - the message to set as a reason.
      Returns:
      a self-reference.