public abstract class AbstractHttpClient extends Object implements AlfrescoHttpClient
Modifier and Type | Field and Description |
---|---|
static String |
ALFRESCO_DEFAULT_BASE_URL |
static int |
DEFAULT_SAVEPOST_BUFFER |
protected org.apache.commons.httpclient.HttpClient |
httpClient |
Constructor and Description |
---|
AbstractHttpClient(org.apache.commons.httpclient.HttpClient httpClient) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
protected org.apache.commons.httpclient.HttpMethod |
createMethod(Request req) |
protected long |
executeMethod(org.apache.commons.httpclient.HttpMethod method) |
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(String baseUrl)
Set the base url to alfresco
- normally /alfresco
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
sendRequest
public static final String ALFRESCO_DEFAULT_BASE_URL
public static final int DEFAULT_SAVEPOST_BUFFER
protected org.apache.commons.httpclient.HttpClient httpClient
public AbstractHttpClient(org.apache.commons.httpclient.HttpClient httpClient)
protected org.apache.commons.httpclient.HttpClient getHttpClient()
public String getBaseUrl()
public void setBaseUrl(String baseUrl)
AlfrescoHttpClient
setBaseUrl
in interface AlfrescoHttpClient
baseUrl
- the baseUrl to setprotected org.apache.commons.httpclient.HttpMethod sendRemoteRequest(Request req) throws AuthenticationException, IOException
AuthenticationException
IOException
protected long executeMethod(org.apache.commons.httpclient.HttpMethod method) throws org.apache.commons.httpclient.HttpException, IOException
org.apache.commons.httpclient.HttpException
IOException
protected org.apache.commons.httpclient.HttpMethod createMethod(Request req) throws IOException
IOException
public void close()
close
in interface AlfrescoHttpClient
Copyright © 2005–2018 Alfresco Software. All rights reserved.