1 | |
package org.kuali.maven.plugins.dnsme; |
2 | |
|
3 | |
import org.apache.commons.httpclient.Header; |
4 | |
|
5 | 4 | public class HttpRequestResult { |
6 | |
int statusCode; |
7 | |
String statusText; |
8 | |
HttpRequestResultType type; |
9 | |
Exception exception; |
10 | |
Header[] responseHeaders; |
11 | |
String responseBody; |
12 | |
|
13 | |
public String getStatusText() { |
14 | 4 | return statusText; |
15 | |
} |
16 | |
|
17 | |
public void setStatusText(String statusText) { |
18 | 4 | this.statusText = statusText; |
19 | 4 | } |
20 | |
|
21 | |
public String getResponseBody() { |
22 | 2 | return responseBody; |
23 | |
} |
24 | |
|
25 | |
public void setResponseBody(String responseBody) { |
26 | 4 | this.responseBody = responseBody; |
27 | 4 | } |
28 | |
|
29 | |
public HttpRequestResultType getType() { |
30 | 5 | return type; |
31 | |
} |
32 | |
|
33 | |
public void setType(HttpRequestResultType type) { |
34 | 4 | this.type = type; |
35 | 4 | } |
36 | |
|
37 | |
public Exception getException() { |
38 | 0 | return exception; |
39 | |
} |
40 | |
|
41 | |
public void setException(Exception exception) { |
42 | 0 | this.exception = exception; |
43 | 0 | } |
44 | |
|
45 | |
public int getStatusCode() { |
46 | 5 | return statusCode; |
47 | |
} |
48 | |
|
49 | |
public void setStatusCode(int statusCode) { |
50 | 4 | this.statusCode = statusCode; |
51 | 4 | } |
52 | |
|
53 | |
public Header[] getResponseHeaders() { |
54 | 1 | return responseHeaders; |
55 | |
} |
56 | |
|
57 | |
public void setResponseHeaders(Header[] responseHeaders) { |
58 | 4 | this.responseHeaders = responseHeaders; |
59 | 4 | } |
60 | |
} |