Revision 7494
Added by Brendan Hahn almost 12 years ago
src/edu/ucsb/nceas/metacat/index/HttpComponentsClientHttpRequestFactory.java | ||
---|---|---|
1 |
//package edu.ucsb.nceas.metacat.index; |
|
2 |
package org.springframework.http.client; |
|
3 |
|
|
4 |
import org.apache.http.client.HttpClient; |
|
5 |
|
|
6 |
/** |
|
7 |
* A fake implementation of a Spring framework object for use by the DataONE HttpService class. |
|
8 |
* |
|
9 |
*/ |
|
10 |
|
|
11 |
public class HttpComponentsClientHttpRequestFactory { |
|
12 |
protected HttpClient client; |
|
13 |
public HttpComponentsClientHttpRequestFactory(HttpClient c) { |
|
14 |
this.client = c; |
|
15 |
} |
|
16 |
public HttpClient getHttpClient() { |
|
17 |
return client; |
|
18 |
} |
|
19 |
} |
Also available in: Unified diff
accidentally added