public abstract class AbstractHttpClient extends java.lang.Object implements AlfrescoHttpClient
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ALFRESCO_DEFAULT_BASE_URL |
protected org.apache.commons.httpclient.HttpClient |
httpClient |
| Constructor and Description |
|---|
AbstractHttpClient(org.apache.commons.httpclient.HttpClient httpClient) |
| Modifier and Type | Method and Description |
|---|---|
protected org.apache.commons.httpclient.HttpMethod |
createMethod(Request req) |
protected long |
executeMethod(org.apache.commons.httpclient.HttpMethod method) |
java.lang.String |
getBaseUrl() |
protected org.apache.commons.httpclient.HttpClient |
getHttpClient() |
protected org.apache.commons.httpclient.HttpMethod |
sendRemoteRequest(Request req)
Send Request to the repository
|
void |
setBaseUrl(java.lang.String baseUrl)
Set the base url to alfresco
- normally /alfresco
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsendRequestpublic static final java.lang.String ALFRESCO_DEFAULT_BASE_URL
protected org.apache.commons.httpclient.HttpClient httpClient
public AbstractHttpClient(org.apache.commons.httpclient.HttpClient httpClient)
protected org.apache.commons.httpclient.HttpClient getHttpClient()
public java.lang.String getBaseUrl()
public void setBaseUrl(java.lang.String baseUrl)
AlfrescoHttpClientsetBaseUrl in interface AlfrescoHttpClientbaseUrl - the baseUrl to setprotected org.apache.commons.httpclient.HttpMethod sendRemoteRequest(Request req) throws AuthenticationException, java.io.IOException
AuthenticationExceptionjava.io.IOExceptionprotected long executeMethod(org.apache.commons.httpclient.HttpMethod method)
throws org.apache.commons.httpclient.HttpException,
java.io.IOException
org.apache.commons.httpclient.HttpExceptionjava.io.IOExceptionprotected org.apache.commons.httpclient.HttpMethod createMethod(Request req) throws java.io.IOException
java.io.IOExceptionCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.