com.editev.chess
Class ChessServlet

com.editev.chess.ChessServlet

public class ChessServlet

This servlet will display any legal game of chess.

the following HTML parameters are used:

moves has the list of moves so far separated by commas.
target contains the first half of the move if any.
refresh has a refresh parameter that periodically refreshes the game with a random move.

See Also:
source is here
and you can see a demo here.

Field Summary
static Printer pagePrinter
           
 
Constructor Summary
ChessServlet()
           
 
Method Summary
 void doGet(com.editev.chess.HttpServletRequest req, com.editev.chess.HttpServletResponse res)
          Responds to http GET requests as a good HttpServlet should.
 void doPost(com.editev.chess.HttpServletRequest req, com.editev.chess.HttpServletResponse res)
          Responds to "post" requests in the same way as "get" requests.
 java.lang.String getServletInfo()
          Describes this servlet with a String.
 

Field Detail

pagePrinter

public static Printer pagePrinter
Constructor Detail

ChessServlet

public ChessServlet()
Method Detail

doGet

public void doGet(com.editev.chess.HttpServletRequest req,
                  com.editev.chess.HttpServletResponse res)
           throws com.editev.chess.ServletException,
                  java.io.IOException
Responds to http GET requests as a good HttpServlet should.

doPost

public void doPost(com.editev.chess.HttpServletRequest req,
                   com.editev.chess.HttpServletResponse res)
            throws com.editev.chess.ServletException,
                   java.io.IOException
Responds to "post" requests in the same way as "get" requests.

getServletInfo

public java.lang.String getServletInfo()
Describes this servlet with a String.