|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object HttpServlet edu.isi.ontosaurus.tomcat.PowerLoomTomcatServlet
public class PowerLoomTomcatServlet
An top-level Servlet class for PowerLoom 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
|
Constructor Summary | |
---|---|
PowerLoomTomcatServlet()
|
Method Summary | |
---|---|
void |
configure()
Configure the common stuff. |
protected void |
copyStream(java.io.InputStream from,
java.io.OutputStream to)
|
protected void |
doGet(HttpServletRequest req,
HttpServletResponse res)
Services a single GET request from the client Default action is to return an unsupported message. |
protected void |
doPost(HttpServletRequest req,
HttpServletResponse res)
Services a single POST request from the client. |
java.lang.String |
getServletInfo()
|
void |
init()
Default init method |
void |
initialize()
This will initialize PowerLoom and Ontosaurus systems, and other required systems. |
protected void |
printErrorHeader(ServletOutputStream p,
java.lang.String errorTitle)
|
protected void |
printErrorTrailer(ServletOutputStream p)
|
protected java.lang.String |
streamToString(java.io.InputStream from)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static java.lang.String KBHome
protected static java.util.List kbsLoaded
Constructor Detail |
---|
public PowerLoomTomcatServlet()
Method Detail |
---|
public void initialize() throws ServletException
ServletException
public void configure() throws ServletException
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.
ServletException
public void init() throws ServletException
ServletException
public java.lang.String getServletInfo()
protected void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, java.io.IOException
req
- the servlet requestreq
- the servlet response
ServletException
- when an exception has occurred
java.io.IOException
protected void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException, java.io.IOException
req
- the servlet requestreq
- the servlet response
ServletException
- when an exception has occurred
java.io.IOException
protected void copyStream(java.io.InputStream from, java.io.OutputStream to) throws java.io.IOException
java.io.IOException
protected java.lang.String streamToString(java.io.InputStream from) throws java.io.IOException
java.io.IOException
protected void printErrorHeader(ServletOutputStream p, java.lang.String errorTitle)
protected void printErrorTrailer(ServletOutputStream p)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |