Package org.alfresco.httpclient
Class AbstractHttpClient
java.lang.Object
org.alfresco.httpclient.AbstractHttpClient
- All Implemented Interfaces:
AlfrescoHttpClient
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
static final int
protected org.apache.commons.httpclient.HttpClient
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
protected org.apache.commons.httpclient.HttpMethod
createMethod
(Request req) protected long
executeMethod
(org.apache.commons.httpclient.HttpMethod method) protected org.apache.commons.httpclient.HttpClient
protected org.apache.commons.httpclient.HttpMethod
sendRemoteRequest
(Request req) Send Request to the repositoryvoid
setBaseUrl
(String baseUrl) Set the base url to alfresco - normally /alfrescoMethods 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 Details
-
ALFRESCO_DEFAULT_BASE_URL
- See Also:
-
DEFAULT_SAVEPOST_BUFFER
public static final int DEFAULT_SAVEPOST_BUFFER- See Also:
-
httpClient
protected org.apache.commons.httpclient.HttpClient httpClient
-
-
Constructor Details
-
AbstractHttpClient
public AbstractHttpClient(org.apache.commons.httpclient.HttpClient httpClient)
-
-
Method Details
-
getHttpClient
protected org.apache.commons.httpclient.HttpClient getHttpClient() -
getBaseUrl
- Returns:
- the baseUrl
-
setBaseUrl
Description copied from interface:AlfrescoHttpClient
Set the base url to alfresco - normally /alfresco- Specified by:
setBaseUrl
in 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:
AuthenticationException
IOException
-
executeMethod
protected long executeMethod(org.apache.commons.httpclient.HttpMethod method) throws org.apache.commons.httpclient.HttpException, IOException - Throws:
org.apache.commons.httpclient.HttpException
IOException
-
createMethod
- Throws:
IOException
-
close
public void close()- Specified by:
close
in interfaceAlfrescoHttpClient
-