Class PuzzleDispatcherServlet
- java.lang.Object
- 
- javax.servlet.GenericServlet
- 
- javax.servlet.http.HttpServlet
- 
- jadex.web.examples.puzzle.servlet.PuzzleDispatcherServlet
 
 
 
- 
- All Implemented Interfaces:
- java.io.Serializable,- javax.servlet.Servlet,- javax.servlet.ServletConfig
 
 public class PuzzleDispatcherServlet extends javax.servlet.http.HttpServletFront controller servlet for puzzle application.- See Also:
- Serialized Form
 
- 
- 
Field SummaryFields Modifier and Type Field Description protected IExternalAccessplatformThe platform.protected IPuzzleServicepuzzleThe puzzle service.
 - 
Constructor SummaryConstructors Constructor Description PuzzleDispatcherServlet()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddestroy()Shut down the platform on exit.protected voiddoGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)Called on each web request.protected voiddoPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)Called on each form submit.voidinit()Init the servlet by starting the Jadex platform and fecthing the puzzle service.- 
Methods inherited from class javax.servlet.http.HttpServletdoDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
 
- 
 
- 
- 
- 
Field Detail- 
platformprotected IExternalAccess platform The platform.
 - 
puzzleprotected IPuzzleService puzzle The puzzle service.
 
- 
 - 
Method Detail- 
initpublic void init() throws javax.servlet.ServletExceptionInit the servlet by starting the Jadex platform and fecthing the puzzle service.- Overrides:
- initin class- javax.servlet.GenericServlet
- Throws:
- javax.servlet.ServletException
 
 - 
destroypublic void destroy() Shut down the platform on exit.- Specified by:
- destroyin interface- javax.servlet.Servlet
- Overrides:
- destroyin class- javax.servlet.GenericServlet
 
 - 
doGetprotected void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOExceptionCalled on each web request.- Overrides:
- doGetin class- javax.servlet.http.HttpServlet
- Throws:
- javax.servlet.ServletException
- java.io.IOException
 
 - 
doPostprotected void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOExceptionCalled on each form submit.- Overrides:
- doPostin class- javax.servlet.http.HttpServlet
- Throws:
- javax.servlet.ServletException
- java.io.IOException
 
 
- 
 
-