com.uwyn.rife.tools
Class HttpUtils.Request

java.lang.Object
  extended by com.uwyn.rife.tools.HttpUtils.Request
Enclosing class:
HttpUtils

public static class HttpUtils.Request
extends Object


Constructor Summary
HttpUtils.Request(String absoluteUrl)
           
 
Method Summary
 HttpUtils.Request cookie(String name, String value)
           
 HttpUtils.Request header(String name, String content)
           
 HttpUtils.Request headers(Map<String,String> headers)
           
 HttpUtils.Request headers(String[][] headers)
           
 HttpUtils.Request method(String method)
           
 HttpUtils.Request postParam(String key, String value)
           
 HttpUtils.Request postParams(Map<String,String[]> postParams)
           
 HttpUtils.Request postParams(String[][] postParams)
           
 HttpUtils.Request queryParam(String key, String value)
           
 HttpUtils.Request queryParams(Map<String,String[]> queryParams)
           
 HttpUtils.Request queryParams(String[][] queryParams)
           
 HttpUtils.Page retrieve()
           
 HttpUtils.Page retrieve(boolean downloadContent)
           
 HttpUtils.Page retrieve(boolean downloadContent, OutputStream output)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpUtils.Request

public HttpUtils.Request(String absoluteUrl)
Method Detail

method

public HttpUtils.Request method(String method)

queryParams

public HttpUtils.Request queryParams(String[][] queryParams)

queryParams

public HttpUtils.Request queryParams(Map<String,String[]> queryParams)

queryParam

public HttpUtils.Request queryParam(String key,
                                    String value)

postParams

public HttpUtils.Request postParams(String[][] postParams)

postParams

public HttpUtils.Request postParams(Map<String,String[]> postParams)

postParam

public HttpUtils.Request postParam(String key,
                                   String value)

headers

public HttpUtils.Request headers(String[][] headers)

headers

public HttpUtils.Request headers(Map<String,String> headers)

header

public HttpUtils.Request header(String name,
                                String content)

cookie

public HttpUtils.Request cookie(String name,
                                String value)

retrieve

public HttpUtils.Page retrieve()
                        throws IOException
Throws:
IOException

retrieve

public HttpUtils.Page retrieve(boolean downloadContent)
                        throws IOException
Throws:
IOException

retrieve

public HttpUtils.Page retrieve(boolean downloadContent,
                               OutputStream output)
                        throws IOException
Throws:
IOException


Copyright © 2001-2007 Uwyn sprl/bvba. All Rights Reserved.