|
JOtunnel by OOIT.com | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
com.ooit.jotunnel.JOServer
The JOTunnel server servlet.
This class serves as a pre processor of the serialize/deserialize process of a JOResponse/JORequest object.
A specific server has only to implement
the JOResponse doJO(JORequest) method.
The http communication works with compession or without.
| Field Summary | |
boolean |
debug
|
| Constructor Summary | |
JOServer()
|
|
| Method Summary | |
protected void |
debugLog(java.lang.String logInfo)
Debug to the regular http servlet log depending if server runs in debug mode. |
void |
doGet(com.ooit.jotunnel.HttpServletRequest req,
com.ooit.jotunnel.HttpServletResponse res)
The get functions prepares an info page for this servlet |
JOResponse |
doJO(JORequest request)
This is the main call which is invoked from the JOServer servlet. |
void |
doPost(com.ooit.jotunnel.HttpServletRequest req,
com.ooit.jotunnel.HttpServletResponse res)
This functions is reading the JORequest object coming from the
the client and creates a
JOResponse object which is sent back to the client. |
boolean |
isCompressed()
Getting the compression flag. |
boolean |
isDebug()
Getting the debug flag. |
protected void |
setCompressed(boolean compressed)
Setting the http communication to compressed. |
protected void |
setDebug(boolean debug)
Setting the debug flag. |
| Field Detail |
public boolean debug
| Constructor Detail |
public JOServer()
| Method Detail |
public void doGet(com.ooit.jotunnel.HttpServletRequest req,
com.ooit.jotunnel.HttpServletResponse res)
public void doPost(com.ooit.jotunnel.HttpServletRequest req,
com.ooit.jotunnel.HttpServletResponse res)
JORequest object coming from the
the client and creates a
JOResponse object which is sent back to the client.public JOResponse doJO(JORequest request)
To add functionality to a subclass this method has to be overwritten.
protected void debugLog(java.lang.String logInfo)
logIngo - info string to log.protected void setDebug(boolean debug)
debug - the debug flag.public boolean isDebug()
protected void setCompressed(boolean compressed)
compressed - compressed flag.public boolean isCompressed()
|
JOtunnel by OOIT.com | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||