public class PuzzleDispatcherServlet
extends javax.servlet.http.HttpServlet
Modifier and Type | Field and Description |
---|---|
protected jadex.bridge.IExternalAccess |
platform
The platform.
|
protected IPuzzleService |
puzzle
The puzzle service.
|
Constructor and Description |
---|
PuzzleDispatcherServlet() |
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Shut down the platform on exit.
|
protected void |
doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Called on each web request.
|
protected void |
doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Called on each form submit.
|
void |
init()
Init the servlet by starting the Jadex platform
and fecthing the puzzle service.
|
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
protected jadex.bridge.IExternalAccess platform
protected IPuzzleService puzzle
public void init() throws javax.servlet.ServletException
init
in class javax.servlet.GenericServlet
javax.servlet.ServletException
public void destroy()
destroy
in interface javax.servlet.Servlet
destroy
in class javax.servlet.GenericServlet
protected void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException
doGet
in class javax.servlet.http.HttpServlet
javax.servlet.ServletException
java.io.IOException
protected void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException
doPost
in class javax.servlet.http.HttpServlet
javax.servlet.ServletException
java.io.IOException