|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object issrg.test.repository.ProxySocketThread
public class ProxySocketThread
This a proxy for relaying internet traffic between the local host and a remote server. Its main purpose is to be able to stop this forwarding so as to simulate an 'unreachable' server.
Constructor Summary | |
---|---|
ProxySocketThread(java.net.ServerSocket server,
java.lang.String host,
int port)
Creates an instance of ProxySocketThread. |
Method Summary | |
---|---|
void |
run()
Starts relaying the traffic between the ServerSocket on the local host and the actual server. |
void |
stop()
Stops the relaying of traffic. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ProxySocketThread(java.net.ServerSocket server, java.lang.String host, int port)
server
- the localhost server sockethost
- the remote server host nameport
- the remote server portMethod Detail |
---|
public void run()
run
in interface java.lang.Runnable
public void stop()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |