|
JOtunnel by OOIT.com | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object | +--com.ooit.jotunnel.JOClient
The JOTunnel client.
This class serves as a proxi to a JOServer.
The client is initialized with the the servers (servlets) URL.
A request is sent to the server with the
JOResponse doJO(JORequest jorequest) call.
Each call is opening and closing the connection to the HTTP server.
The HTTP communication can be done with standard ZIP compression.
| Field Summary | |
protected boolean |
compressed
|
protected boolean |
debug
|
| Constructor Summary | |
JOClient(java.net.URL joServerUrl)
Creating an object with the JO server servlet's URL. |
|
| Method Summary | |
JOResponse |
doJO(JORequest jorequest)
Sending a request object to the JO server and returning the response. |
boolean |
isCompressed()
Getting the compression flag. |
boolean |
isDebug()
Getting the debug flag. |
void |
setCompressed(boolean compressed)
Setting the http communication to compressed. |
void |
setDebug(boolean debug)
Setting the debug flag. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Field Detail |
protected boolean debug
protected boolean compressed
| Constructor Detail |
public JOClient(java.net.URL joServerUrl)
joServerUrl - the JO server url.| Method Detail |
public JOResponse doJO(JORequest jorequest)
throws java.io.IOException
jorequest - the JO request object to be sent to the JO server.public void setDebug(boolean debug)
debug - the debug flag.public boolean isDebug()
public void setCompressed(boolean compressed)
Be aware: JOServer and JOClient need the same compression setting.
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 | |||||||