|
|||||||||
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
mServer
public class mServer
mServer
Constructor Summary | |
---|---|
mServer()
|
Method Summary | |
---|---|
void |
debug(java.lang.String text,
java.lang.String message)
debug is used for writing out messages to the console, by taking to String parameters and displays them to the console. |
void |
doPost(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
doPost is the required function in a HttpServlet class. |
java.lang.String[] |
findMap(double posX,
double posY)
findMap is the function for find the right piece of the large map, and calculate the users position in the found piece. |
double[] |
findPosInMap(double posX,
double posY)
findPosInMap is the function for finding the users position in the large map |
Methods inherited from class javax.servlet.http.HttpServlet |
---|
service |
Methods inherited from class javax.servlet.GenericServlet |
---|
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public mServer()
Method Detail |
---|
public void doPost(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) throws javax.servlet.ServletException, java.io.IOException
doPost
in class javax.servlet.http.HttpServlet
javax.servlet.ServletException
java.io.IOException
public double[] findPosInMap(double posX, double posY)
posX
- is the users position in latitude and Euref89posY
- is the users position in longitude and Euref89
public java.lang.String[] findMap(double posX, double posY)
posX
- is the users X position in the large map, value returned from findPosInMap function.posY
- is the users Y position in the large map, value returned from findPosInMap function.
public void debug(java.lang.String text, java.lang.String message)
text
- is the explaining text which shall be written out.message
- is the value the text variable explains.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |