anderix.net
Class WebForm

java.lang.Object
  extended by anderix.net.WebForm
Direct Known Subclasses:
MultiPartForm

public class WebForm
extends java.lang.Object


Constructor Summary
WebForm(java.lang.String actionUrl)
           
WebForm(java.lang.String actionUrl, java.net.Authenticator auth)
           
WebForm(java.lang.String actionUrl, java.util.Hashtable formValues)
           
WebForm(java.lang.String actionUrl, java.util.Hashtable formValues, java.net.Authenticator auth)
           
WebForm(java.net.URL actionUrl)
           
WebForm(java.net.URL actionUrl, java.net.Authenticator auth)
           
WebForm(java.net.URL actionUrl, java.util.Hashtable formValues)
           
WebForm(java.net.URL actionUrl, java.util.Hashtable formValues, java.net.Authenticator auth)
           
 
Method Summary
 void addFormValue(java.lang.String name, java.lang.String value)
           
 void addHeader(java.lang.String name, java.lang.String value)
           
 java.lang.String delete()
           
 java.lang.String get()
           
 void getFile(java.lang.String filepath)
           
 java.lang.String getResponse()
           
 java.lang.String post()
           
 java.lang.String put()
           
 void setAction(java.lang.String url)
           
 void setAuthenticator(java.net.Authenticator auth)
           
 void setFormValues(java.util.Hashtable formValues)
           
 void setHeaders(java.util.Hashtable headers)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebForm

public WebForm(java.lang.String actionUrl)
        throws java.net.MalformedURLException
Throws:
java.net.MalformedURLException

WebForm

public WebForm(java.net.URL actionUrl)

WebForm

public WebForm(java.lang.String actionUrl,
               java.net.Authenticator auth)
        throws java.net.MalformedURLException
Throws:
java.net.MalformedURLException

WebForm

public WebForm(java.net.URL actionUrl,
               java.net.Authenticator auth)

WebForm

public WebForm(java.lang.String actionUrl,
               java.util.Hashtable formValues)
        throws java.net.MalformedURLException
Throws:
java.net.MalformedURLException

WebForm

public WebForm(java.lang.String actionUrl,
               java.util.Hashtable formValues,
               java.net.Authenticator auth)
        throws java.net.MalformedURLException
Throws:
java.net.MalformedURLException

WebForm

public WebForm(java.net.URL actionUrl,
               java.util.Hashtable formValues)

WebForm

public WebForm(java.net.URL actionUrl,
               java.util.Hashtable formValues,
               java.net.Authenticator auth)
Method Detail

setAuthenticator

public void setAuthenticator(java.net.Authenticator auth)

setAction

public void setAction(java.lang.String url)
               throws java.net.MalformedURLException
Throws:
java.net.MalformedURLException

addFormValue

public void addFormValue(java.lang.String name,
                         java.lang.String value)

setFormValues

public void setFormValues(java.util.Hashtable formValues)

addHeader

public void addHeader(java.lang.String name,
                      java.lang.String value)

setHeaders

public void setHeaders(java.util.Hashtable headers)

delete

public java.lang.String delete()
                        throws java.io.IOException
Throws:
java.io.IOException

put

public java.lang.String put()
                     throws java.io.IOException
Throws:
java.io.IOException

post

public java.lang.String post()
                      throws java.io.IOException
Throws:
java.io.IOException

get

public java.lang.String get()
                     throws java.io.IOException
Throws:
java.io.IOException

getFile

public void getFile(java.lang.String filepath)
             throws java.io.IOException
Throws:
java.io.IOException

getResponse

public java.lang.String getResponse()