|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectdapper.Util
public class Util
| Constructor Summary | |
|---|---|
Util()
|
|
| Method Summary | |
|---|---|
static java.lang.String |
httpPost(java.lang.String host,
java.lang.String path,
java.util.Map<java.lang.String,java.lang.String> data,
java.lang.String encoding)
Performs an HTTP POST to a server on port 80 |
static java.lang.String |
httpPost(java.lang.String host,
java.lang.String path,
java.util.Map<java.lang.String,java.lang.String> data,
java.lang.String encoding,
int port)
Performs an HTTP POST to a server on a specific port |
static java.lang.String |
join(java.lang.String separator,
java.util.List list)
Convenience function to create a new string from multiple strings |
static java.lang.String |
urlGetContents(java.net.URL url)
Returns the contents, properly encoded, of the page at url |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Util()
| Method Detail |
|---|
public static java.lang.String urlGetContents(java.net.URL url)
throws java.io.IOException
url - The URL to fetch
java.io.IOException
public static java.lang.String httpPost(java.lang.String host,
java.lang.String path,
java.util.Map<java.lang.String,java.lang.String> data,
java.lang.String encoding)
throws java.io.IOException
host - The hostname of the remote web serverpath - The path portion of the URLdata - A map where the keys are the POST variable names, the
values are the values for those variables
java.io.IOException
public static java.lang.String httpPost(java.lang.String host,
java.lang.String path,
java.util.Map<java.lang.String,java.lang.String> data,
java.lang.String encoding,
int port)
throws java.io.IOException
host - The hostname of the remote web serverpath - The path portion of the URLdata - A map where the keys are the POST variable names, the
values are the values for those variables
java.io.IOException
public static java.lang.String join(java.lang.String separator,
java.util.List list)
separator - list -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||