All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.linkedin.parseq.HttpResponse Maven / Gradle / Ivy

package com.linkedin.parseq;

/**
 * The class GraphvizResponse contains the HTTP response information.
 */
public class HttpResponse {

  /**
   * The field _status is the HTTP response status code.
   */
  private final Integer _status;

  /**
   * The field _body is the HTTP response body.
   */
  private final String _body;

  /**
   * The constructor HttpResponse initializes both the status code and the body.
   *
   * @param status The HTTP response status code
   * @param body The HTTP response body
   */
  public HttpResponse(final Integer status, final String body) {
    this._status = status;
    this._body = body;
  }

  /**
   * The method getStatus returns the HTTP response status code.
   *
   * @return The HTTP response status code
   */
  public Integer getStatus() {
    return this._status;
  }

  /**
   * The method getBody returns the HTTP response body.
   *
   * @return the HTTP response body
   */
  public String getBody() {
    return this._body;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy