|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.servlet.GenericServlet
javax.servlet.http.HttpServlet
GoTournaments
public class GoTournaments
Nested Class Summary | |
---|---|
private class |
GoTournaments.AdminException
An exception thrown when the user isn't logged in but the request requires administrator privileges. |
private class |
GoTournaments.GoHttpRequest
A class to provide a simple interface for the HttpServletRequest. |
private class |
GoTournaments.IncorrectPasswordException
An exception thrown when an incorrect password is given. |
Field Summary | |
---|---|
private java.lang.Exception |
init_exception
|
private java.lang.String |
password
|
private static long |
serialVersionUID
UID for serialization |
private static int |
SESSION_TIME
|
Constructor Summary | |
---|---|
GoTournaments()
|
Method Summary | |
---|---|
void |
init()
Servlet initialization method, invoked right after construction. |
private GoResponse |
produceResponse(GoTournaments.GoHttpRequest req)
Produces a response to a Go HTTP request. |
private GoResponse |
serveRequest(GoTournaments.GoHttpRequest http_request)
Extracts and performs a request described by a GoHttpRequest object, produces a response and returns it. |
protected void |
service(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Dispatches all HTTP requests received by the system to the request handler and sends the response generated by the handler to the user. |
Methods inherited from class javax.servlet.http.HttpServlet |
---|
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service |
Methods inherited from class javax.servlet.GenericServlet |
---|
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final long serialVersionUID
private static final int SESSION_TIME
private transient java.lang.Exception init_exception
private transient java.lang.String password
Constructor Detail |
---|
public GoTournaments()
Method Detail |
---|
public void init() throws javax.servlet.ServletException
init
in class javax.servlet.GenericServlet
javax.servlet.ServletException
private GoResponse serveRequest(GoTournaments.GoHttpRequest http_request) throws java.lang.Exception
GoException
- if a normal use error occurs, should
be caught and reported to the user.
GoTournaments.AdminException
- if the request requires admin privileges
and the user isn't logged in.
java.lang.Exception
- in case of an internal system error,
which should be treated as a bug.private GoResponse produceResponse(GoTournaments.GoHttpRequest req)
req
- Go HTTP requestprotected void service(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) throws java.io.IOException
service
in class javax.servlet.http.HttpServlet
req
- the HTTP request received from the userres
- the HTTP response sent back to the user
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |