public class HttpAccessService extends Object implements ResponseStatusValidator
Constructor and Description |
---|
HttpAccessService() |
Modifier and Type | Method and Description |
---|---|
org.apache.commons.httpclient.HttpClient |
getHttpClient(org.apache.commons.httpclient.HttpMethodBase method)
get an HTTP client object using current configuration.
|
static HttpAccessService |
getInstance()
Gets the single instance of HttpAccessService.
|
void |
releaseConnection(org.apache.commons.httpclient.HttpClient client,
org.apache.commons.httpclient.HttpMethodBase method)
Releases the connection.
|
boolean |
validate(int nStatus)
Default Response status Validation
|
public static HttpAccessService getInstance()
public org.apache.commons.httpclient.HttpClient getHttpClient(org.apache.commons.httpclient.HttpMethodBase method)
method
- The methodpublic boolean validate(int nStatus)
validate
in interface ResponseStatusValidator
nStatus
- The statuspublic void releaseConnection(org.apache.commons.httpclient.HttpClient client, org.apache.commons.httpclient.HttpMethodBase method)
client
- The clientmethod
- The methodCopyright © 2017 City of Paris. All rights reserved.