1 | |
package org.kuali.maven.plugins.dnsme; |
2 | |
|
3 | |
import org.apache.commons.httpclient.Header; |
4 | |
|
5 | 6 | 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 | 6 | return statusText; |
15 | |
} |
16 | |
|
17 | |
public void setStatusText(String statusText) { |
18 | 6 | this.statusText = statusText; |
19 | 6 | } |
20 | |
|
21 | |
public String getResponseBody() { |
22 | 4 | return responseBody; |
23 | |
} |
24 | |
|
25 | |
public void setResponseBody(String responseBody) { |
26 | 6 | this.responseBody = responseBody; |
27 | 6 | } |
28 | |
|
29 | |
public HttpRequestResultType getType() { |
30 | 7 | return type; |
31 | |
} |
32 | |
|
33 | |
public void setType(HttpRequestResultType type) { |
34 | 6 | this.type = type; |
35 | 6 | } |
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 | 7 | return statusCode; |
47 | |
} |
48 | |
|
49 | |
public void setStatusCode(int statusCode) { |
50 | 6 | this.statusCode = statusCode; |
51 | 6 | } |
52 | |
|
53 | |
public Header[] getResponseHeaders() { |
54 | 3 | return responseHeaders; |
55 | |
} |
56 | |
|
57 | |
public void setResponseHeaders(Header[] responseHeaders) { |
58 | 6 | this.responseHeaders = responseHeaders; |
59 | 6 | } |
60 | |
} |