fr.paris.lutece.plugins.rss.util.http
Class HttpAccess

java.lang.Object
  extended by fr.paris.lutece.plugins.rss.util.http.HttpAccess

public class HttpAccess
extends java.lang.Object

Http net Object Accessor
Properties read here:


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 init(java.lang.String strConfigPropertiesPrefix)
          Initialize the object
 
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

init

public void init(java.lang.String strConfigPropertiesPrefix)
Initialize the object

Parameters:
strConfigPropertiesPrefix - The prefix of all configuration properties needed by the Http client

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


Copyright © 2007 Mairie de Paris. All Rights Reserved.