GATE
Version 3.1-2270

gate.util.web
Class WebAnnie

java.lang.Object
  extended by gate.util.web.WebAnnie

public class WebAnnie
extends Object

This class is designed to demonstrate ANNIE in a web context. It should be called from either a servlet or a JSP.


Field Summary
static String ANNIE_CONTROLLER_KEY
           
static String GATE_INIT_KEY
           
 
Constructor Summary
WebAnnie()
           
 
Method Summary
 String process(javax.servlet.ServletContext app, String url, String[] annotations)
          This method should be called from a servlet or JSP.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

GATE_INIT_KEY

public static final String GATE_INIT_KEY
See Also:
Constant Field Values

ANNIE_CONTROLLER_KEY

public static final String ANNIE_CONTROLLER_KEY
See Also:
Constant Field Values
Constructor Detail

WebAnnie

public WebAnnie()
Method Detail

process

public String process(javax.servlet.ServletContext app,
                      String url,
                      String[] annotations)
               throws GateException,
                      IOException
This method should be called from a servlet or JSP.

Parameters:
app - The current servlet context, eg the JSP implicit variable "application"
url - The url of the file to be analysed
annotations - An array of annotations
Throws:
GateException
IOException

GATE
Version 3.1-2270