lapisx.net
Class LocalFormURL
java.lang.Object
lapisx.net.FormURL
lapisx.net.LocalFormURL
- public class LocalFormURL
- extends FormURL
debug
public static Debug debug
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
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