|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectlapisx.net.FormURL
Constructor Summary | |
FormURL(String method,
URL url,
String query)
Open a URL using a given method (get or post) and query data. |
|
FormURL(String method,
URL url,
Vector query)
Create a query using a given method (get or post) and query data. |
Method Summary | |
static String |
encodeQuery(Vector query)
URL-encode a sequence of name-value pairs. |
URL |
getAction()
|
String |
getMethod()
|
String |
getQueryString()
|
Vector |
getQueryVector()
|
URL |
getURL()
|
URLConnection |
openConnection()
Open a connection ready to submit query and retrieve its results. |
String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public FormURL(String method, URL url, Vector query)
method
- "get" or "post" (case-insensitive).url
- URL to send query to. Must be http: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.public FormURL(String method, URL url, String query)
method
- "get" or "post" (case-insensitive).url
- URL to open. Must be http:query
- URL-encoded name/value pairs, or null if no query desiredMethod Detail |
public String getMethod()
public URL getAction()
public URL getURL()
public String getQueryString()
public Vector getQueryVector()
public String toString()
public URLConnection openConnection() throws IOException
IOException
public static String encodeQuery(Vector query)
query
- Name/value pairs to encode; even indexes are names, odd indexes are values
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |