com.ejie.r01f.net.proxy
Class SimpleProxyServer
java.lang.Object
com.ejie.r01f.net.proxy.SimpleProxyServer
- public class SimpleProxyServer
- extends java.lang.Object
Ejemplo de Implementación de un Proxy.
- Author:
- ie00191m
Method Summary |
static void |
main(java.lang.String[] args)
|
static void |
runServer(java.lang.String host,
int remoteport,
int localport)
Thread que
1.Escucha las Peticiones clientes
2.Redirige al Remote Host.
3.Lee respuesta del Remote Host.
4.Escribe la respuesta del Remote Host en el Cliente. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimpleProxyServer
public SimpleProxyServer()
main
public static void main(java.lang.String[] args)
throws java.io.IOException
- Throws:
java.io.IOException
runServer
public static void runServer(java.lang.String host,
int remoteport,
int localport)
throws java.io.IOException
- Thread que
1.Escucha las Peticiones clientes
2.Redirige al Remote Host.
3.Lee respuesta del Remote Host.
4.Escribe la respuesta del Remote Host en el Cliente.
- Parameters:
host
- remoteport
- localport
-
- Throws:
java.io.IOException