at.ofai.gate
Class OFAIServer

java.lang.Object
  extended by gate.util.AbstractFeatureBearer
      extended by gate.creole.AbstractResource
          extended by gate.creole.AbstractLanguageResource
              extended by at.ofai.gate.OFAIServer
All Implemented Interfaces:
LanguageResource, Resource, FeatureBearer, NameBearer, Serializable

public class OFAIServer
extends AbstractLanguageResource
implements LanguageResource

This class is the implementation of the resource OFAIPROCESSDOC.

See Also:
Serialized Form

Field Summary
 boolean debug
           
 boolean debugdocument
           
 boolean dorun
           
protected  URL pipelineURL
           
protected  Integer port
           
protected  OFAIProcessDoc processdoc
           
 
Fields inherited from class gate.creole.AbstractLanguageResource
dataStore, lrPersistentId
 
Fields inherited from class gate.creole.AbstractResource
name
 
Fields inherited from class gate.util.AbstractFeatureBearer
features
 
Constructor Summary
OFAIServer()
           
 
Method Summary
 void cleanup()
           
 URL getPipelineURL()
           
 Integer getPort()
           
 org.mortbay.jetty.Server getServer()
           
 Resource init()
          Initialise this resource, and return it.
 Document processDocument(Document doc)
           
 void setPipelineURL(URL theURL)
           
 void setPort(Integer thePort)
           
 
Methods inherited from class gate.creole.AbstractLanguageResource
getDataStore, getLRPersistenceId, getParent, isModified, setDataStore, setLRPersistenceId, setParent, sync
 
Methods inherited from class gate.creole.AbstractResource
checkParameterValues, getBeanInfo, getName, getParameterValue, getParameterValue, removeResourceListeners, setName, setParameterValue, setParameterValue, setParameterValues, setParameterValues, setResourceListeners
 
Methods inherited from class gate.util.AbstractFeatureBearer
getFeatures, setFeatures
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface gate.LanguageResource
getDataStore, getLRPersistenceId, getParent, isModified, setDataStore, setLRPersistenceId, setParent, sync
 
Methods inherited from interface gate.Resource
getParameterValue, setParameterValue, setParameterValues
 
Methods inherited from interface gate.util.FeatureBearer
getFeatures, setFeatures
 
Methods inherited from interface gate.util.NameBearer
getName, setName
 

Field Detail

pipelineURL

protected URL pipelineURL

port

protected Integer port

debug

public boolean debug

debugdocument

public boolean debugdocument

dorun

public boolean dorun

processdoc

protected OFAIProcessDoc processdoc
Constructor Detail

OFAIServer

public OFAIServer()
Method Detail

setPipelineURL

public void setPipelineURL(URL theURL)

getPipelineURL

public URL getPipelineURL()

setPort

public void setPort(Integer thePort)

getPort

public Integer getPort()

init

public Resource init()
              throws ResourceInstantiationException
Initialise this resource, and return it.

Specified by:
init in interface Resource
Overrides:
init in class AbstractResource
Throws:
ResourceInstantiationException

getServer

public org.mortbay.jetty.Server getServer()

cleanup

public void cleanup()
Specified by:
cleanup in interface Resource
Overrides:
cleanup in class AbstractLanguageResource

processDocument

public Document processDocument(Document doc)