Class HttpClientService


  • public class HttpClientService
    extends Object
    Service managing all http request to a javlo server.
    Author:
    bdumont
    • Field Detail

      • lock

        public final Object lock
    • Constructor Detail

      • HttpClientService

        public HttpClientService()
    • Method Detail

      • getServerURL

        public String getServerURL()
      • setServerURL

        public void setServerURL​(String serverURL)
      • getSynchroCode

        public String getSynchroCode()
      • setSynchroCode

        public void setSynchroCode​(String synchroCode)
      • getUsername

        public String getUsername()
      • setUsername

        public void setUsername​(String username)
      • getPassword

        public String getPassword()
      • setPassword

        public void setPassword​(String password)
      • getProxyHost

        public String getProxyHost()
      • setProxyHost

        public void setProxyHost​(String proxyHost)
      • getProxyPort

        public Integer getProxyPort()
      • setProxyPort

        public void setProxyPort​(Integer proxyPort)
      • getClient

        public org.apache.http.impl.client.DefaultHttpClient getClient()
      • getContext

        public org.apache.http.protocol.HttpContext getContext()
      • setClient

        protected void setClient​(org.apache.http.impl.client.DefaultHttpClient client)
      • encodeURL

        public String encodeURL​(String relativeURL)
      • callURL

        public org.apache.http.StatusLine callURL​(String relativeURL)
                                           throws org.apache.http.client.ClientProtocolException,
                                                  IOException
        Throws:
        org.apache.http.client.ClientProtocolException
        IOException
      • execute

        public org.apache.http.HttpResponse execute​(org.apache.http.client.methods.HttpUriRequest request)
                                             throws org.apache.http.client.ClientProtocolException,
                                                    IOException
        Throws:
        org.apache.http.client.ClientProtocolException
        IOException
      • safeConsume

        public void safeConsume​(org.apache.http.HttpResponse resp)