|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectCADI.Proxy.Core.TransparentProxy
public class TransparentProxy
This class implements a simple transparent proxy. It reads a request sent by a client which is forwarded to the JPIP server waiting for the server response to be forwarded to the client.
Usage example:
construct
run
| Field Summary | |
|---|---|
private HTTPRequest |
httpRequest
Definition in HTTPRequest. |
private CADILog |
log
It is an object that will be used to log the server process |
private java.net.Socket |
socketToClient
Contains the client socket of which request is being processed. |
| Constructor Summary | |
|---|---|
TransparentProxy(java.net.Socket socketToClient,
HTTPRequest httpRequest,
CADILog log)
Constructor. |
|
| Method Summary | |
|---|---|
void |
run()
Performs the forwarding of the client request to the server and the forwarding of the server response to the client. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private java.net.Socket socketToClient
private HTTPRequest httpRequest
HTTPRequest.
private CADILog log
| Constructor Detail |
|---|
public TransparentProxy(java.net.Socket socketToClient,
HTTPRequest httpRequest,
CADILog log)
clientSocket - definition in socketToClient.httpRequest - definition in httpRequest.log - definition in log.| Method Detail |
|---|
public void run()
throws ErrorException,
WarningException,
java.io.IOException
java.io.IOException
ErrorException
WarningException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||