fr.paris.lutece.util.httpaccess
Class HttpAccess

java.lang.Object
  extended by fr.paris.lutece.util.httpaccess.HttpAccess

public class HttpAccess
extends java.lang.Object

Http net Object Accessor


Constructor Summary
HttpAccess()
           
 
Method Summary
 java.lang.String doGet(java.lang.String strUrl)
          Send a GET HTTP request to an Url and return the response content.
 void downloadFile(java.lang.String strUrl, java.lang.String strFilePath)
          Send a GET HTTP request to an Url and return the response content.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpAccess

public HttpAccess()
Method Detail

doGet

public java.lang.String doGet(java.lang.String strUrl)
                       throws HttpAccessException
Send a GET HTTP request to an Url and return the response content.

Parameters:
strUrl - The Url to access
Returns:
The response content of the Get request to the given Url
Throws:
HttpAccessException - if there is a problem to access to the given Url

downloadFile

public void downloadFile(java.lang.String strUrl,
                         java.lang.String strFilePath)
                  throws HttpAccessException
Send a GET HTTP request to an Url and return the response content.

Parameters:
strUrl - The Url to access
Throws:
HttpAccessException - if there is a problem to access to the given Url


Copyright © 2009 Mairie de Paris. All Rights Reserved.