org.proteios.io
Class MascotServerIO
java.lang.Object
org.proteios.io.MascotServerIO
public class MascotServerIO
- extends Object
This class handles mascot search_form.pl transformation for easy parsing.
- Author:
- gregory
|
Method Summary |
String |
getParsedHTML(String url)
Returns the mascot search_form.pl output with only input and select parameters. |
static void |
main(String[] args)
Takes the url as the argument and writes the parsed response to standard out |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MascotServerIO
public MascotServerIO()
getParsedHTML
public String getParsedHTML(String url)
- Returns the mascot search_form.pl output with only input and select parameters.
Also mascot 2.3 javascript parameters are returned as html tags.
If mascot changes their interface again, modify this class to accomodate for the changes.
Note that there are no guarantees that the returned html is valid in any way.
A new connection to the given url is created each time it's called so caching the result is
advisable.
- Parameters:
url - to mascot installation e.g. http://example.com/mascot/cgi/search_form.pl?....
main
public static void main(String[] args)
- Takes the url as the argument and writes the parsed response to standard out