Subversion Repositories SmartDukaan

Rev

Blame | Last modification | View Log | RSS feed

package com.spice.profitmandi.common.model;

/**
 * Body plus status code of an HTTP call, for callers that need to branch on the status rather than
 * have a non-2xx thrown at them. Was named after the Mandii integration it was written for; that
 * integration is gone but the holder is generic and still used by Kommuno recording fetches.
 */
public class RawHttpResponse {

        private String responseString;
        private int statusCode;

        public String getResponseString() {
                return responseString;
        }

        public void setResponseString(String responseString) {
                this.responseString = responseString;
        }

        public int getStatusCode() {
                return statusCode;
        }

        public void setStatusCode(int statusCode) {
                this.statusCode = statusCode;
        }

        @Override
        public String toString() {
                return "RawHttpResponse [responseString=" + responseString + ", statusCode=" + statusCode + "]";
        }

}