Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
37655 amit 1
package com.spice.profitmandi.common.model;
2
 
3
/**
4
 * Body plus status code of an HTTP call, for callers that need to branch on the status rather than
5
 * have a non-2xx thrown at them. Was named after the Mandii integration it was written for; that
6
 * integration is gone but the holder is generic and still used by Kommuno recording fetches.
7
 */
8
public class RawHttpResponse {
9
 
10
	private String responseString;
11
	private int statusCode;
12
 
13
	public String getResponseString() {
14
		return responseString;
15
	}
16
 
17
	public void setResponseString(String responseString) {
18
		this.responseString = responseString;
19
	}
20
 
21
	public int getStatusCode() {
22
		return statusCode;
23
	}
24
 
25
	public void setStatusCode(int statusCode) {
26
		this.statusCode = statusCode;
27
	}
28
 
29
	@Override
30
	public String toString() {
31
		return "RawHttpResponse [responseString=" + responseString + ", statusCode=" + statusCode + "]";
32
	}
33
 
34
}