Class AbstractHttpClient

java.lang.Object
org.alfresco.httpclient.AbstractHttpClient
All Implemented Interfaces:
AlfrescoHttpClient

public abstract class AbstractHttpClient extends Object implements AlfrescoHttpClient
  • Field Details

    • ALFRESCO_DEFAULT_BASE_URL

      public static final String 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

      public String getBaseUrl()
      Returns:
      the baseUrl
    • setBaseUrl

      public void setBaseUrl(String baseUrl)
      Description copied from interface: AlfrescoHttpClient
      Set the base url to alfresco - normally /alfresco
      Specified by:
      setBaseUrl in interface AlfrescoHttpClient
      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

      protected org.apache.commons.httpclient.HttpMethod createMethod(Request req) throws IOException
      Throws:
      IOException
    • close

      public void close()
      Specified by:
      close in interface AlfrescoHttpClient