|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectome.formats.importer.util.HtmlMessenger
public class HtmlMessenger
This class allows you to submit a URL and a String hash map of key-value pairs to be posted to the URL in question.
Constructor Summary | |
---|---|
HtmlMessenger(String url,
List<org.apache.commons.httpclient.methods.multipart.Part> postList)
Instantiate html messenger |
Method Summary | |
---|---|
String |
executePost()
Execute a post action and retrieve server reply This method executes the post created when this class is instantiated |
org.apache.commons.httpclient.HttpClient |
getHttpClient()
|
String |
login(String url,
String username,
String password)
Login to website |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HtmlMessenger(String url, List<org.apache.commons.httpclient.methods.multipart.Part> postList) throws HtmlMessengerException
url
- postList
- - variables list in post
HtmlMessengerException
Method Detail |
---|
public String executePost() throws HtmlMessengerException
HtmlMessengerException
public org.apache.commons.httpclient.HttpClient getHttpClient()
public String login(String url, String username, String password) throws HtmlMessengerException
url
- username
- password
-
HtmlMessengerException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Version: 4.3.3-00d1137e-b2894
Copyright © 2009 The University of Dundee. All Rights Reserved.