Package org.exoplatform.services.common

Examples of org.exoplatform.services.common.HttpClientImpl


      String charset, Class<T> channelClazz, Class<E> itemClazz) throws Exception
   {
      GetMethod get = null;
      try
      {
         HttpClientImpl httpClientService = new HttpClientImpl(url);
         get = httpClientService.getMethod(url.getFile());
         get.setFollowRedirects(true);
         int statusCode = httpClientService.getHttpClient().executeMethod(get);
         if (statusCode != HttpStatus.SC_OK)
         {
            throw new MalformedURLException("Server response code " + statusCode);
         }
         InputStream input = get.getResponseBodyAsStream();
View Full Code Here

TOP

Related Classes of org.exoplatform.services.common.HttpClientImpl

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.