| 1 |
|
|
| 2 |
|
|
| 3 |
|
|
| 4 |
|
|
| 5 |
|
|
| 6 |
|
|
| 7 |
|
|
| 8 |
|
|
| 9 |
|
|
| 10 |
|
|
| 11 |
|
|
| 12 |
|
|
| 13 |
|
|
| 14 |
|
|
| 15 |
|
|
| 16 |
|
|
| 17 |
|
|
| 18 |
|
|
| 19 |
|
|
| 20 |
|
package net.sf.arestc.configuration; |
| 21 |
|
|
| 22 |
|
import org.apache.commons.configuration.ConfigurationException; |
| 23 |
|
import org.apache.commons.httpclient.HttpClient; |
| 24 |
|
|
| 25 |
|
|
| 26 |
|
|
| 27 |
|
|
| 28 |
|
|
| 29 |
|
@author |
| 30 |
|
|
|
|
|
| 40% |
Uncovered Elements: 6 (10) |
Complexity: 5 |
Complexity Density: 1 |
|
| 31 |
|
public class CommunicationBuilder { |
| 32 |
|
|
| 33 |
|
|
| 34 |
|
|
| 35 |
|
|
| 36 |
|
@return |
| 37 |
|
@throws |
| 38 |
|
|
| 39 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 40 |
12
|
public HttpClient getMultithreadedClient() throws ConfigurationException {... |
| 41 |
12
|
return CommunicationFactory.getInstance().configureClient(true); |
| 42 |
|
} |
| 43 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 44 |
0
|
public HttpClient getMultithreadedClient(final String communFile)... |
| 45 |
|
throws ConfigurationException { |
| 46 |
0
|
return CommunicationFactory.getInstance().configureClient(true, |
| 47 |
|
communFile); |
| 48 |
|
} |
| 49 |
|
|
| 50 |
|
|
| 51 |
|
|
| 52 |
|
|
| 53 |
|
@return |
| 54 |
|
@throws |
| 55 |
|
|
| 56 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 57 |
0
|
public HttpClient getSinglethreadedClient() throws ConfigurationException {... |
| 58 |
0
|
return CommunicationFactory.getInstance().configureClient(false); |
| 59 |
|
} |
| 60 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 61 |
0
|
public HttpClient getSinglethreadedClient(final String communFile)... |
| 62 |
|
throws ConfigurationException { |
| 63 |
0
|
return CommunicationFactory.getInstance().configureClient(false, |
| 64 |
|
communFile); |
| 65 |
|
} |
| 66 |
|
|
| 67 |
|
|
| 68 |
|
|
| 69 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 70 |
1
|
public void shutdownCommunication() {... |
| 71 |
1
|
CommunicationFactory.getInstance().shutdown(); |
| 72 |
|
} |
| 73 |
|
} |