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

com.ecwid.consul.transport.HttpResponse Maven / Gradle / Ivy

package com.ecwid.consul.transport;

/**
 * @author Vasily Vasilkov ([email protected])
 */
public final class HttpResponse {

	private final int statusCode;
	private final String statusMessage;

	private final String content;

	private final Long consulIndex;
	private final Boolean consulKnownLeader;
	private final Long consulLastContact;

	public HttpResponse(int statusCode, String statusMessage, String content, Long consulIndex, Boolean consulKnownLeader, Long consulLastContact) {
		this.statusCode = statusCode;
		this.statusMessage = statusMessage;
		this.content = content;
		this.consulIndex = consulIndex;
		this.consulKnownLeader = consulKnownLeader;
		this.consulLastContact = consulLastContact;
	}

	public int getStatusCode() {
		return statusCode;
	}

	public String getStatusMessage() {
		return statusMessage;
	}

	public String getContent() {
		return content;
	}

	public Long getConsulIndex() {
		return consulIndex;
	}

	public Boolean isConsulKnownLeader() {
		return consulKnownLeader;
	}

	public Long getConsulLastContact() {
		return consulLastContact;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy