edu.isi.powerloom.server.tomcat
Class PowerLoomServlet
java.lang.Object
HttpServlet
edu.isi.powerloom.server.tomcat.PowerLoomServlet
public class PowerLoomServlet
- extends HttpServlet
Servlet class for PowerLoom Server to work with the Tomcat or
other servers which follow the javax servlet standards
Field Summary |
static java.lang.String |
KBHome
|
protected static java.util.List |
kbsLoaded
|
Method Summary |
protected void |
doGet(HttpServletRequest req,
HttpServletResponse res)
Services a single GET request from the client. |
protected void |
doPost(HttpServletRequest req,
HttpServletResponse res)
Services a single POST request from the client. |
java.lang.String |
getServletInfo()
|
void |
init()
Initialize the common stuff. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
KBHome
public static java.lang.String KBHome
kbsLoaded
protected static java.util.List kbsLoaded
PowerLoomServlet
public PowerLoomServlet()
init
public void init()
throws ServletException
- Initialize the common stuff.
This will initialize PowerLoom and other required systems.
It will also load knowledge bases.
Information for setting these values comes from the config object.
The following initialization parameters are supported:
SystemInits Whitespace separated list of Stella/PowerLoom system
initialization code to call. This must be the fully
qualified name to invoke with now parameters. Encoding of
whitespace and other unusual characters is like in URLs.
KBHome Path to the top of the KB directory. Must end
with a directory separator character. Encoding of
whitespace and other unusual characters is like in URLs.
KBs Whitespace separated list of paths (relative to kbhome)
of knowledge bases to load. They will be loaded after
any additional systems are initialized. Encoding of
whitespace and other unusual characters is like in URLs.
- Throws:
ServletException
getServletInfo
public java.lang.String getServletInfo()
doPost
protected void doPost(HttpServletRequest req,
HttpServletResponse res)
throws ServletException,
java.io.IOException
- Services a single POST request from the client. This is an interface
to the Stella-generated PowerLoom Server code.
- Parameters:
req
- the servlet requestreq
- the servlet response
- Throws:
ServletException
- when an exception has occurred
java.io.IOException
doGet
protected void doGet(HttpServletRequest req,
HttpServletResponse res)
throws ServletException,
java.io.IOException
- Services a single GET request from the client. This is an interface
to the Stella-generated PowerLoom Server code.
- Parameters:
req
- the servlet requestreq
- the servlet response
- Throws:
ServletException
- when an exception has occurred
java.io.IOException