Package org.alfresco.httpclient
Class AbstractHttpClient
- java.lang.Object
-
- org.alfresco.httpclient.AbstractHttpClient
-
- All Implemented Interfaces:
AlfrescoHttpClient
public abstract class AbstractHttpClient extends Object implements AlfrescoHttpClient
-
-
Field Summary
Fields Modifier and Type Field Description static StringALFRESCO_DEFAULT_BASE_URLstatic intDEFAULT_SAVEPOST_BUFFERprotected org.apache.commons.httpclient.HttpClienthttpClient
-
Constructor Summary
Constructors Constructor Description AbstractHttpClient(org.apache.commons.httpclient.HttpClient httpClient)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()protected org.apache.commons.httpclient.HttpMethodcreateMethod(Request req)protected longexecuteMethod(org.apache.commons.httpclient.HttpMethod method)StringgetBaseUrl()protected org.apache.commons.httpclient.HttpClientgetHttpClient()protected org.apache.commons.httpclient.HttpMethodsendRemoteRequest(Request req)Send Request to the repositoryvoidsetBaseUrl(String baseUrl)Set the base url to alfresco - normally /alfresco-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.alfresco.httpclient.AlfrescoHttpClient
sendRequest
-
-
-
-
Field Detail
-
ALFRESCO_DEFAULT_BASE_URL
public static final String ALFRESCO_DEFAULT_BASE_URL
- See Also:
- Constant Field Values
-
DEFAULT_SAVEPOST_BUFFER
public static final int DEFAULT_SAVEPOST_BUFFER
- See Also:
- Constant Field Values
-
httpClient
protected org.apache.commons.httpclient.HttpClient httpClient
-
-
Method Detail
-
getHttpClient
protected org.apache.commons.httpclient.HttpClient getHttpClient()
-
getBaseUrl
public String getBaseUrl()
- Returns:
- the baseUrl
-
setBaseUrl
public void setBaseUrl(String baseUrl)
Description copied from interface:AlfrescoHttpClientSet the base url to alfresco - normally /alfresco- Specified by:
setBaseUrlin interfaceAlfrescoHttpClient- Parameters:
baseUrl- the baseUrl to set
-
sendRemoteRequest
protected org.apache.commons.httpclient.HttpMethod sendRemoteRequest(Request req) throws AuthenticationException, IOException
Send Request to the repository- Throws:
AuthenticationExceptionIOException
-
executeMethod
protected long executeMethod(org.apache.commons.httpclient.HttpMethod method) throws org.apache.commons.httpclient.HttpException, IOException- Throws:
org.apache.commons.httpclient.HttpExceptionIOException
-
createMethod
protected org.apache.commons.httpclient.HttpMethod createMethod(Request req) throws IOException
- Throws:
IOException
-
close
public void close()
- Specified by:
closein interfaceAlfrescoHttpClient
-
-