Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.ejie.r01f.net.proxy
Class SimpleProxyServerv2

    java.lang.Object
      com.ejie.r01f.net.proxy.SimpleProxyServerv2

public class SimpleProxyServerv2
extends java.lang.Object

Ejemplo de Implementación de un Proxy.

Author:
  ie00191m

Constructor Summary
`SimpleProxyServerv2()`

Method Summary
`static java.lang.String` | `_divide(java.lang.String data, java.lang.String token)` Funciones Auxiliares
`static java.lang.String` | `_getHTTP_ConProxy(java.lang.String uri)` Probar una conexion HTTP con Proxy
`static void` | `_probarHTTPS_ConProxy()` Probar una conexion HTTPS con Proxy :
`static java.lang.String` | `getURI(java.lang.String getData)`
`static void` | `main(java.lang.String[] argv)`
`static void` | `runServer(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`

Constructor Detail

### SimpleProxyServerv2

    public SimpleProxyServerv2()

Method Detail

### main

    public static void main(java.lang.String[] argv)
                     throws java.io.IOException

  Throws:
    `java.io.IOException`

### runServer

    public static void runServer(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:
    `localport` -
  Throws:
    `java.io.IOException`

### _divide

    public static java.lang.String _divide(java.lang.String data,
                                           java.lang.String token)

  Funciones Auxiliares

### getURI

    public static java.lang.String getURI(java.lang.String getData)

### _getHTTP_ConProxy

    public static java.lang.String _getHTTP_ConProxy(java.lang.String uri)
                                              throws java.io.IOException

  Probar una conexion HTTP con Proxy

  Throws:
    `java.io.IOException`

### _probarHTTPS_ConProxy

    public static void _probarHTTPS_ConProxy()
                                      throws java.io.IOException

  Probar una conexion HTTPS con Proxy :

  Throws:
    `java.io.IOException`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD