Last update: 2011-06-23

org.proteios.io
Class MascotServerIO

java.lang.Object
  extended by org.proteios.io.MascotServerIO

public class MascotServerIO
extends Object

This class handles mascot search_form.pl transformation for easy parsing.

Author:
gregory

Constructor Summary
MascotServerIO()
           
 
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
 

Constructor Detail

MascotServerIO

public MascotServerIO()
Method Detail

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


Last update: 2011-06-23