lapisx.net
Class LocalFormURL

java.lang.Object
  extended bylapisx.net.FormURL
      extended bylapisx.net.LocalFormURL

public class LocalFormURL
extends FormURL


Field Summary
static Debug debug
           
 
Constructor Summary
LocalFormURL(String method, URL url, String query)
          Open a URL using a given method (get or post) and query data.
LocalFormURL(String method, URL url, Vector query)
          Create a query using a given method (get or post) and query data.
 
Method Summary
 URLConnection openConnection()
          Open a connection ready to submit query and retrieve its results.
 
Methods inherited from class lapisx.net.FormURL
encodeQuery, getAction, getMethod, getQueryString, getQueryVector, getURL, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

debug

public static Debug debug
Constructor Detail

LocalFormURL

public LocalFormURL(String method,
                    URL url,
                    Vector query)
Create a query using a given method (get or post) and query data.

Parameters:
method - "get" or "post" (case-insensitive).
url - URL to send query to. Must be file:
query - Name/value pairs to simulate submitting a form. Names and values may be arbitrary objects; this method uses toString() to convert them to strings, then URL-encodes them before sending to the web server. Pass null if no form data is desired.

LocalFormURL

public LocalFormURL(String method,
                    URL url,
                    String query)
Open a URL using a given method (get or post) and query data.

Parameters:
method - "get" or "post" (case-insensitive).
url - URL to open. Must be file:
query - URL-encoded name/value pairs, or null if no query desired
Method Detail

openConnection

public URLConnection openConnection()
                             throws IOException
Open a connection ready to submit query and retrieve its results.

Overrides:
openConnection in class FormURL
Returns:
URLConnection (set up for connection but not yet connected)
Throws:
IOException