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

com.wavemaker.runtime.rest.model.HttpResponseDetails Maven / Gradle / Ivy

There is a newer version: 11.9.2.ee
Show newest version
/**
 * Copyright (C) 2020 WaveMaker, Inc.
 * 

* Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at *

* http://www.apache.org/licenses/LICENSE-2.0 *

* Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.wavemaker.runtime.rest.model; import java.io.InputStream; import org.springframework.http.HttpHeaders; import com.fasterxml.jackson.annotation.JsonIgnore; /** * @author Uday Shankar */ public class HttpResponseDetails { private int statusCode; private HttpHeaders headers = new HttpHeaders(); @JsonIgnore private InputStream body; public int getStatusCode() { return statusCode; } public void setStatusCode(int statusCode) { this.statusCode = statusCode; } public HttpHeaders getHeaders() { return headers; } public void setHeaders(HttpHeaders headers) { this.headers = headers; } public InputStream getBody() { return body; } public void setBody(InputStream body) { this.body = body; } @Override public String toString() { final StringBuilder sb = new StringBuilder("HttpResponseDetails{"); sb.append("headers=").append(headers); sb.append(", statusCode=").append(statusCode); sb.append('}'); return sb.toString(); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy