
com.microsoft.commondatamodel.objectmodel.utilities.network.CdmHttpResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of objectmodel Show documentation
Show all versions of objectmodel Show documentation
CDM SDK to work with semantic metadata of the Data
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
package com.microsoft.commondatamodel.objectmodel.utilities.network;
import java.util.LinkedHashMap;
import java.util.Map;
public class CdmHttpResponse {
/**
* The standard HTTP status code.
*/
private int statusCode;
/**
* The reason.
*/
private String reason;
/**
* The response headers.
*/
private Map responseHeaders;
/**
* The content.
*/
private String content;
/**
* The boolean that denotes whether the request was successful.
*/
private boolean isSuccessful;
public CdmHttpResponse() {
this.responseHeaders = new LinkedHashMap<>();
}
public CdmHttpResponse(final int statusCode) {
this();
this.statusCode = statusCode;
}
public int getStatusCode() {
return statusCode;
}
public Map getResponseHeaders() {
return responseHeaders;
}
public String getReason() {
return reason;
}
public void setReason(final String reason) {
this.reason = reason;
}
public String getContent() {
return content;
}
public void setContent(final String content) {
this.content = content;
}
public boolean isSuccessful() {
return isSuccessful;
}
public void setSuccessful(final boolean successful) {
isSuccessful = successful;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy