public class HttpAccessService extends Object
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.
|
boolean |
matchResponseCodeAuthorized(Integer nHttpResponseCode)
test if the http code return is authorized.
|
public static HttpAccessService getInstance()
public org.apache.commons.httpclient.HttpClient getHttpClient(org.apache.commons.httpclient.HttpMethodBase method)
method
- The methodpublic boolean matchResponseCodeAuthorized(Integer nHttpResponseCode)
nHttpResponseCode
- the http response codeCopyright © 2016 City of Paris. All rights reserved.