r01f.httpclient
Class HttpClient

java.lang.Object
  extended by r01f.httpclient.HttpClient

public abstract class HttpClient
extends java.lang.Object

Cliente HTTP Simple basado en fluentAPI Truco muy util : Si la conexion es HTTPS utiliza el parametro -Djavax.net.debug=all Ejemplo de uso: InputStream is = HttpClient.forUrl("http://www.euskadi.net") .withParameters(params) .usingGETRequestMethod() .usingProxy("intercon","8080","user","password") .getResponse().getInputStream();


Constructor Summary
HttpClient()
           
 
Method Summary
private static java.lang.String _listToString(java.util.List<java.lang.String> theList)
           
static HttpURLStatement forUrl(java.lang.String newURLStr)
          Constructor a partir de una URL en formato cadena con el destino
static HttpURLStatement forUrl(java.net.URL newTargetURL)
          Constructor a partir de una URL con el destino
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpClient

public HttpClient()
Method Detail

forUrl

public static HttpURLStatement forUrl(java.lang.String newURLStr)
                               throws java.net.MalformedURLException
Constructor a partir de una URL en formato cadena con el destino

Parameters:
newURLStr - La url del destino
Throws:
java.net.MalformedURLException - si la url NO es válida

forUrl

public static HttpURLStatement forUrl(java.net.URL newTargetURL)
Constructor a partir de una URL con el destino

Parameters:
newTargetURL - La url del destino

main

public static void main(java.lang.String[] args)

_listToString

private static java.lang.String _listToString(java.util.List<java.lang.String> theList)