info.informatica.www
Class HTTPForm

java.lang.Object
  extended by info.informatica.www.HTTPForm

public class HTTPForm
extends Object

Legacy implementation of Http Form

Version:
1.01
Author:
amengual at informatica dot info

Constructor Summary
HTTPForm()
           
 
Method Summary
 void addParameter(String pname, int pvalue)
           
 void addParameter(String pname, String pvalue)
           
 void clearParameters()
           
 URLConnection get(URL action)
           
 URLConnection post(URL action)
           
static String postAsString(InputStream in)
           
 String postAsString(URL action)
           
 void setParameter(String pname, String pvalue)
           
 void setParameter(String pname, String[] pvalues)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HTTPForm

public HTTPForm()
Method Detail

addParameter

public final void addParameter(String pname,
                               String pvalue)

addParameter

public final void addParameter(String pname,
                               int pvalue)

setParameter

public final void setParameter(String pname,
                               String pvalue)

setParameter

public final void setParameter(String pname,
                               String[] pvalues)

clearParameters

public final void clearParameters()

postAsString

public final String postAsString(URL action)
                          throws IOException
Throws:
IOException

post

public URLConnection post(URL action)
                   throws IOException
Throws:
IOException

postAsString

public static final String postAsString(InputStream in)
                                 throws IOException
Throws:
IOException

get

public final URLConnection get(URL action)
                        throws IOException
Throws:
IOException