View Javadoc
1   /**
2    * Copyright 2004-2013 The Kuali Foundation
3    *
4    * Licensed under the Educational Community License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    * http://www.opensource.org/licenses/ecl2.php
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  package org.kuali.common.dns.http;
17  
18  import org.apache.commons.httpclient.Header;
19  
20  public class HttpRequestResult {
21  
22  	int statusCode;
23  	String statusText;
24  	HttpRequestResultType type;
25  	Exception exception;
26  	Header[] responseHeaders;
27  	String responseBody;
28  
29  	public String getStatusText() {
30  		return statusText;
31  	}
32  
33  	public void setStatusText(String statusText) {
34  		this.statusText = statusText;
35  	}
36  
37  	public String getResponseBody() {
38  		return responseBody;
39  	}
40  
41  	public void setResponseBody(String responseBody) {
42  		this.responseBody = responseBody;
43  	}
44  
45  	public HttpRequestResultType getType() {
46  		return type;
47  	}
48  
49  	public void setType(HttpRequestResultType type) {
50  		this.type = type;
51  	}
52  
53  	public Exception getException() {
54  		return exception;
55  	}
56  
57  	public void setException(Exception exception) {
58  		this.exception = exception;
59  	}
60  
61  	public int getStatusCode() {
62  		return statusCode;
63  	}
64  
65  	public void setStatusCode(int statusCode) {
66  		this.statusCode = statusCode;
67  	}
68  
69  	public Header[] getResponseHeaders() {
70  		return responseHeaders;
71  	}
72  
73  	public void setResponseHeaders(Header[] responseHeaders) {
74  		this.responseHeaders = responseHeaders;
75  	}
76  }