├── CalculadoraWS
├── build.xml
├── build
│ └── web
│ │ ├── META-INF
│ │ └── MANIFEST.MF
│ │ ├── WEB-INF
│ │ ├── classes
│ │ │ └── com
│ │ │ │ └── medac
│ │ │ │ └── ws
│ │ │ │ └── CalculatorService.class
│ │ ├── sun-web.xml
│ │ └── web.xml
│ │ ├── gfv3ee6.dpf
│ │ └── index.html
├── dist
│ └── CalculadoraWS.war
├── nbproject
│ ├── ant-deploy.xml
│ ├── build-impl.xml
│ ├── genfiles.properties
│ ├── jax-ws.xml
│ ├── jaxws-build.xml
│ ├── private
│ │ ├── private.properties
│ │ └── private.xml
│ ├── project.properties
│ └── project.xml
├── src
│ ├── conf
│ │ └── MANIFEST.MF
│ └── java
│ │ └── com
│ │ └── medac
│ │ └── ws
│ │ └── CalculatorService.java
└── web
│ ├── WEB-INF
│ └── web.xml
│ └── index.html
├── Cliente01Calculadora
├── build.xml
├── build
│ ├── built-jar.properties
│ ├── classes
│ │ ├── META-INF
│ │ │ ├── jax-ws-catalog.xml
│ │ │ └── wsdl
│ │ │ │ └── localhost_8080
│ │ │ │ └── CalculadoraWS
│ │ │ │ ├── CalculatorService.wsdl
│ │ │ │ └── CalculatorService.xsd_1.xsd
│ │ └── cliente01calculadora
│ │ │ ├── CalculatorService.class
│ │ │ ├── CalculatorService_Service.class
│ │ │ ├── Cliente01App$1.class
│ │ │ ├── Cliente01App$2.class
│ │ │ ├── Cliente01App$3.class
│ │ │ ├── Cliente01App$4.class
│ │ │ ├── Cliente01App$5.class
│ │ │ ├── Cliente01App$6.class
│ │ │ ├── Cliente01App.class
│ │ │ ├── Divide.class
│ │ │ ├── DivideResponse.class
│ │ │ ├── Multiplica.class
│ │ │ ├── MultiplicaResponse.class
│ │ │ ├── ObjectFactory.class
│ │ │ ├── Potencia.class
│ │ │ ├── PotenciaResponse.class
│ │ │ ├── Resta.class
│ │ │ ├── RestaResponse.class
│ │ │ ├── Suma.class
│ │ │ ├── SumaResponse.class
│ │ │ └── package-info.class
│ ├── generated-sources
│ │ └── jax-ws
│ │ │ └── cliente01calculadora
│ │ │ ├── CalculatorService.java
│ │ │ ├── CalculatorService_Service.java
│ │ │ ├── Divide.java
│ │ │ ├── DivideResponse.java
│ │ │ ├── Multiplica.java
│ │ │ ├── MultiplicaResponse.java
│ │ │ ├── ObjectFactory.java
│ │ │ ├── Potencia.java
│ │ │ ├── PotenciaResponse.java
│ │ │ ├── Resta.java
│ │ │ ├── RestaResponse.java
│ │ │ ├── Suma.java
│ │ │ ├── SumaResponse.java
│ │ │ └── package-info.java
│ └── generated
│ │ └── jax-wsCache
│ │ └── CalculatorService
│ │ └── cliente01calculadora
│ │ ├── CalculatorService.java
│ │ ├── CalculatorService_Service.java
│ │ ├── Divide.java
│ │ ├── DivideResponse.java
│ │ ├── Multiplica.java
│ │ ├── MultiplicaResponse.java
│ │ ├── ObjectFactory.java
│ │ ├── Potencia.java
│ │ ├── PotenciaResponse.java
│ │ ├── Resta.java
│ │ ├── RestaResponse.java
│ │ ├── Suma.java
│ │ ├── SumaResponse.java
│ │ └── package-info.java
├── catalog.xml
├── dist
│ ├── Cliente01Calculadora.jar
│ └── README.TXT
├── manifest.mf
├── nbproject
│ ├── build-impl.xml
│ ├── genfiles.properties
│ ├── jax-ws.xml
│ ├── jaxws-build.xml
│ ├── private
│ │ ├── private.properties
│ │ └── private.xml
│ ├── project.properties
│ └── project.xml
├── src
│ ├── META-INF
│ │ ├── jax-ws-catalog.xml
│ │ └── wsdl
│ │ │ └── localhost_8080
│ │ │ └── CalculadoraWS
│ │ │ ├── CalculatorService.wsdl
│ │ │ └── CalculatorService.xsd_1.xsd
│ └── cliente01calculadora
│ │ ├── Cliente01App.form
│ │ └── Cliente01App.java
└── xml-resources
│ └── web-service-references
│ └── CalculatorService
│ └── wsdl
│ └── localhost_8080
│ └── CalculadoraWS
│ ├── CalculatorService.wsdl
│ └── CalculatorService.xsd_1.xsd
├── Cliente03AppWebHTMLServlet
├── build.xml
├── build
│ ├── generated-sources
│ │ └── jax-ws
│ │ │ └── com
│ │ │ └── medac
│ │ │ └── ws
│ │ │ ├── CalculatorService.java
│ │ │ ├── CalculatorService_Service.java
│ │ │ ├── Divide.java
│ │ │ ├── DivideResponse.java
│ │ │ ├── Multiplica.java
│ │ │ ├── MultiplicaResponse.java
│ │ │ ├── ObjectFactory.java
│ │ │ ├── Potencia.java
│ │ │ ├── PotenciaResponse.java
│ │ │ ├── Resta.java
│ │ │ ├── RestaResponse.java
│ │ │ ├── Suma.java
│ │ │ ├── SumaResponse.java
│ │ │ └── package-info.java
│ ├── generated
│ │ └── jax-wsCache
│ │ │ └── CalculatorService
│ │ │ └── com
│ │ │ └── medac
│ │ │ └── ws
│ │ │ ├── CalculatorService.java
│ │ │ ├── CalculatorService_Service.java
│ │ │ ├── Divide.java
│ │ │ ├── DivideResponse.java
│ │ │ ├── Multiplica.java
│ │ │ ├── MultiplicaResponse.java
│ │ │ ├── ObjectFactory.java
│ │ │ ├── Potencia.java
│ │ │ ├── PotenciaResponse.java
│ │ │ ├── Resta.java
│ │ │ ├── RestaResponse.java
│ │ │ ├── Suma.java
│ │ │ ├── SumaResponse.java
│ │ │ └── package-info.java
│ └── web
│ │ ├── META-INF
│ │ └── MANIFEST.MF
│ │ ├── WEB-INF
│ │ ├── classes
│ │ │ └── com
│ │ │ │ └── medac
│ │ │ │ ├── MiServlet.class
│ │ │ │ └── ws
│ │ │ │ ├── CalculatorService.class
│ │ │ │ ├── CalculatorService_Service.class
│ │ │ │ ├── Divide.class
│ │ │ │ ├── DivideResponse.class
│ │ │ │ ├── Multiplica.class
│ │ │ │ ├── MultiplicaResponse.class
│ │ │ │ ├── ObjectFactory.class
│ │ │ │ ├── Potencia.class
│ │ │ │ ├── PotenciaResponse.class
│ │ │ │ ├── Resta.class
│ │ │ │ ├── RestaResponse.class
│ │ │ │ ├── Suma.class
│ │ │ │ ├── SumaResponse.class
│ │ │ │ └── package-info.class
│ │ ├── jax-ws-catalog.xml
│ │ ├── sun-web.xml
│ │ └── wsdl
│ │ │ └── localhost_8080
│ │ │ └── CalculadoraWS
│ │ │ ├── CalculatorService.wsdl
│ │ │ └── CalculatorService.xsd_1.xsd
│ │ ├── gfv3ee6.dpf
│ │ └── index.html
├── catalog.xml
├── dist
│ └── Cliente03AppWebHTMLServlet.war
├── nbproject
│ ├── ant-deploy.xml
│ ├── build-impl.xml
│ ├── genfiles.properties
│ ├── jax-ws.xml
│ ├── jaxws-build.xml
│ ├── private
│ │ ├── private.properties
│ │ └── private.xml
│ ├── project.properties
│ └── project.xml
├── src
│ ├── conf
│ │ ├── MANIFEST.MF
│ │ └── xml-resources
│ │ │ └── web-service-references
│ │ │ └── CalculatorService
│ │ │ └── wsdl
│ │ │ └── localhost_8080
│ │ │ └── CalculadoraWS
│ │ │ ├── CalculatorService.wsdl
│ │ │ └── CalculatorService.xsd_1.xsd
│ └── java
│ │ └── com
│ │ └── medac
│ │ └── MiServlet.java
└── web
│ ├── WEB-INF
│ ├── jax-ws-catalog.xml
│ └── wsdl
│ │ └── localhost_8080
│ │ └── CalculadoraWS
│ │ ├── CalculatorService.wsdl
│ │ └── CalculatorService.xsd_1.xsd
│ └── index.html
├── Cliente04AppWebJSP
├── build.xml
├── build
│ ├── generated-sources
│ │ └── jax-ws
│ │ │ └── com
│ │ │ └── medac
│ │ │ └── ws
│ │ │ ├── CalculatorService.java
│ │ │ ├── CalculatorService_Service.java
│ │ │ ├── Divide.java
│ │ │ ├── DivideResponse.java
│ │ │ ├── Multiplica.java
│ │ │ ├── MultiplicaResponse.java
│ │ │ ├── ObjectFactory.java
│ │ │ ├── Potencia.java
│ │ │ ├── PotenciaResponse.java
│ │ │ ├── Resta.java
│ │ │ ├── RestaResponse.java
│ │ │ ├── Suma.java
│ │ │ ├── SumaResponse.java
│ │ │ └── package-info.java
│ ├── generated
│ │ └── jax-wsCache
│ │ │ └── CalculatorService
│ │ │ └── com
│ │ │ └── medac
│ │ │ └── ws
│ │ │ ├── CalculatorService.java
│ │ │ ├── CalculatorService_Service.java
│ │ │ ├── Divide.java
│ │ │ ├── DivideResponse.java
│ │ │ ├── Multiplica.java
│ │ │ ├── MultiplicaResponse.java
│ │ │ ├── ObjectFactory.java
│ │ │ ├── Potencia.java
│ │ │ ├── PotenciaResponse.java
│ │ │ ├── Resta.java
│ │ │ ├── RestaResponse.java
│ │ │ ├── Suma.java
│ │ │ ├── SumaResponse.java
│ │ │ └── package-info.java
│ └── web
│ │ ├── META-INF
│ │ └── MANIFEST.MF
│ │ ├── WEB-INF
│ │ ├── classes
│ │ │ └── com
│ │ │ │ └── medac
│ │ │ │ └── ws
│ │ │ │ ├── CalculatorService.class
│ │ │ │ ├── CalculatorService_Service.class
│ │ │ │ ├── Divide.class
│ │ │ │ ├── DivideResponse.class
│ │ │ │ ├── Multiplica.class
│ │ │ │ ├── MultiplicaResponse.class
│ │ │ │ ├── ObjectFactory.class
│ │ │ │ ├── Potencia.class
│ │ │ │ ├── PotenciaResponse.class
│ │ │ │ ├── Resta.class
│ │ │ │ ├── RestaResponse.class
│ │ │ │ ├── Suma.class
│ │ │ │ ├── SumaResponse.class
│ │ │ │ └── package-info.class
│ │ ├── jax-ws-catalog.xml
│ │ ├── sun-web.xml
│ │ └── wsdl
│ │ │ └── localhost_8080
│ │ │ └── CalculadoraWS
│ │ │ ├── CalculatorService.wsdl
│ │ │ └── CalculatorService.xsd_1.xsd
│ │ ├── gfv3ee6.dpf
│ │ ├── index.html
│ │ └── mijsp.jsp
├── catalog.xml
├── nbproject
│ ├── ant-deploy.xml
│ ├── build-impl.xml
│ ├── genfiles.properties
│ ├── jax-ws.xml
│ ├── jaxws-build.xml
│ ├── private
│ │ ├── private.properties
│ │ └── private.xml
│ ├── project.properties
│ └── project.xml
├── src
│ └── conf
│ │ ├── MANIFEST.MF
│ │ └── xml-resources
│ │ └── web-service-references
│ │ └── CalculatorService
│ │ └── wsdl
│ │ └── localhost_8080
│ │ └── CalculadoraWS
│ │ ├── CalculatorService.wsdl
│ │ └── CalculatorService.xsd_1.xsd
└── web
│ ├── WEB-INF
│ ├── jax-ws-catalog.xml
│ └── wsdl
│ │ └── localhost_8080
│ │ └── CalculadoraWS
│ │ ├── CalculatorService.wsdl
│ │ └── CalculatorService.xsd_1.xsd
│ ├── index.html
│ └── mijsp.jsp
├── README.md
├── Tema_03_ejemplos
├── build.xml
├── build
│ └── classes
│ │ ├── casopractico
│ │ └── CasoPractico.class
│ │ ├── ejemplo01
│ │ └── LanzarProcesosPBuilder.class
│ │ ├── ejemplo02
│ │ └── LanzarProcesosRuntime.class
│ │ ├── ejemplo03
│ │ └── MiProcessBuilder.class
│ │ ├── ejemplo04
│ │ └── MiProcessTerminarTeclado.class
│ │ ├── ejemplo05
│ │ ├── ProcesoHijo.class
│ │ └── ProcesoPadre.class
│ │ ├── ejemplo06
│ │ ├── ProcesoHijo2.class
│ │ └── ProcesoPadre2.class
│ │ ├── ejemplo07
│ │ ├── ProcesoBash$1.class
│ │ └── ProcesoBash.class
│ │ └── tema_03_ejemplos
│ │ ├── ProcessBuilder_Enviroment.class
│ │ └── Runtime_Enviroment.class
├── nbproject
│ ├── build-impl.xml
│ ├── genfiles.properties
│ ├── private
│ │ ├── config.properties
│ │ ├── private.properties
│ │ └── private.xml
│ ├── project.properties
│ └── project.xml
└── src
│ ├── ejemplo01
│ └── LanzarProcesosPBuilder.java
│ ├── ejemplo02
│ └── LanzarProcesosRuntime.java
│ ├── ejemplo03
│ └── MiProcessBuilder.java
│ ├── ejemplo04
│ └── MiProcessTerminarTeclado.java
│ ├── ejemplo05
│ ├── ProcesoHijo.java
│ └── ProcesoPadre.java
│ ├── ejemplo06
│ ├── ProcesoHijo2.java
│ └── ProcesoPadre2.java
│ ├── ejemplo07
│ └── ProcesoBash.java
│ └── tema_03_ejemplos
│ ├── ProcessBuilder_Enviroment.java
│ └── Runtime_Enviroment.java
├── Tema_04_ejemplos
├── build.xml
├── build
│ └── classes
│ │ └── t04
│ │ ├── ejemplo01
│ │ ├── EjemploCrearHiloRunnable.class
│ │ └── EjemploCrearHiloThread.class
│ │ ├── ejemplo02
│ │ ├── HiloSaluda.class
│ │ └── MultiplesHilos.class
│ │ └── ejemplo03
│ │ ├── BloqueSincronizado.class
│ │ ├── EntraJardin.class
│ │ ├── RecurosJardin.class
│ │ └── SaleJardin.class
├── manifest.mf
├── nbproject
│ ├── build-impl.xml
│ ├── genfiles.properties
│ ├── private
│ │ ├── private.properties
│ │ └── private.xml
│ ├── project.properties
│ └── project.xml
└── src
│ └── t04
│ ├── ejemplo01
│ ├── EjemploCrearHiloRunnable.java
│ └── EjemploCrearHiloThread.java
│ ├── ejemplo02
│ ├── HiloSaluda.java
│ └── MultiplesHilos.java
│ └── ejemplo03
│ ├── BloqueSincronizado.java
│ ├── EntraJardin.java
│ ├── RecurosJardin.java
│ └── SaleJardin.java
├── Tema_05_ejemplos
├── build.xml
├── build
│ └── classes
│ │ └── t05
│ │ ├── ejemplo01
│ │ ├── CrearHiloClaseAnonima$1.class
│ │ ├── CrearHiloClaseAnonima.class
│ │ └── CrearHiloUsandoLambda.class
│ │ ├── ejemplo02
│ │ ├── HiloCuentaAtras.class
│ │ └── Main.class
│ │ ├── ejemplo03
│ │ ├── Clock.class
│ │ └── Main.class
│ │ └── ejemplo04
│ │ ├── EscritorLibro.class
│ │ ├── LectorLibro.class
│ │ ├── Libro.class
│ │ └── Main.class
├── nbproject
│ ├── build-impl.xml
│ ├── genfiles.properties
│ ├── private
│ │ ├── private.properties
│ │ └── private.xml
│ ├── project.properties
│ └── project.xml
└── src
│ └── t05
│ ├── ejemplo01
│ ├── CrearHiloClaseAnonima.java
│ └── CrearHiloUsandoLambda.java
│ ├── ejemplo02
│ ├── HiloCuentaAtras.java
│ └── Main.java
│ ├── ejemplo03
│ ├── Clock.java
│ └── Main.java
│ └── ejemplo04
│ ├── EscritorLibro.java
│ ├── LectorLibro.java
│ ├── Libro.java
│ └── Main.java
├── Tema_06_ejemplos
├── build.xml
├── build
│ └── classes
│ │ └── t06
│ │ ├── ejemplo01
│ │ ├── MainEjemplo01.class
│ │ ├── Timbre.class
│ │ └── Visitante.class
│ │ ├── ejemplo02
│ │ ├── MainEjemplo02.class
│ │ ├── Timbre.class
│ │ └── Visitante.class
│ │ └── ejemplo03
│ │ ├── Hilo.class
│ │ ├── MainEjemplo03.class
│ │ └── Secuencia.class
├── nbproject
│ ├── build-impl.xml
│ ├── genfiles.properties
│ ├── private
│ │ └── private.properties
│ ├── project.properties
│ └── project.xml
└── src
│ └── t06
│ ├── ejemplo01
│ ├── MainEjemplo01.java
│ ├── Timbre.java
│ └── Visitante.java
│ ├── ejemplo02
│ ├── MainEjemplo02.java
│ ├── Timbre.java
│ └── Visitante.java
│ └── ejemplo03
│ ├── Hilo.java
│ ├── MainEjemplo03.java
│ └── Secuencia.java
├── Tema_07_ejemplos
├── build.xml
├── build
│ └── classes
│ │ └── t07
│ │ ├── domain
│ │ ├── Constantes$EJEMPLO_01.class
│ │ ├── Constantes$EJEMPLO_02.class
│ │ └── Constantes.class
│ │ ├── ejemplo01
│ │ ├── MiDatagramEmisor$1.class
│ │ ├── MiDatagramEmisor.class
│ │ └── MiDatagramReceptor.class
│ │ ├── ejemplo02
│ │ ├── EjemploTCPCliente.class
│ │ ├── EjemploTCPServer.class
│ │ └── MainEjemploTCP.class
│ │ └── ejemplo03
│ │ └── PingHost.class
├── nbproject
│ ├── build-impl.xml
│ ├── genfiles.properties
│ ├── private
│ │ ├── private.properties
│ │ └── private.xml
│ ├── project.properties
│ └── project.xml
└── src
│ └── t07
│ ├── domain
│ └── Constantes.java
│ ├── ejemplo01
│ ├── MiDatagramEmisor.java
│ └── MiDatagramReceptor.java
│ ├── ejemplo02
│ ├── EjemploTCPCliente.java
│ ├── EjemploTCPServer.java
│ └── MainEjemploTCP.java
│ └── ejemplo03
│ └── PingHost.java
├── Tema_08_ejemplos
├── build.xml
├── build
│ ├── built-jar.properties
│ └── classes
│ │ └── t08
│ │ ├── ejemplo01
│ │ ├── Cliente.class
│ │ └── Servidor.class
│ │ └── ejemplo02
│ │ └── ServidorHTTP.class
├── dist
│ ├── README.TXT
│ └── Tema_08_ejemplos.jar
├── nbproject
│ ├── build-impl.xml
│ ├── genfiles.properties
│ ├── private
│ │ ├── private.properties
│ │ └── private.xml
│ ├── project.properties
│ └── project.xml
└── src
│ └── t08
│ ├── ejemplo01
│ ├── Cliente.java
│ └── Servidor.java
│ └── ejemplo02
│ └── ServidorHTTP.java
├── Tema_09_ejemplos
├── build.xml
├── build
│ └── classes
│ │ └── t09
│ │ ├── ejemplo01
│ │ ├── ClienteFTP01.class
│ │ ├── ClienteFTP02.class
│ │ └── ClienteFTP03.class
│ │ └── ejemplo02
│ │ └── ClienteSmtpSocker.class
├── nbproject
│ ├── build-impl.xml
│ ├── genfiles.properties
│ ├── private
│ │ ├── config.properties
│ │ └── private.properties
│ ├── project.properties
│ └── project.xml
└── src
│ └── t09
│ ├── ejemplo01
│ ├── ClienteFTP01.java
│ ├── ClienteFTP02.java
│ └── ClienteFTP03.java
│ └── ejemplo02
│ └── ClienteSmtpSocker.java
├── Tema_10_ejemplos
├── build.xml
├── build
│ └── classes
│ │ └── t10
│ │ ├── ejemplo01
│ │ ├── Cliente$1.class
│ │ ├── Cliente$2.class
│ │ ├── Cliente.class
│ │ ├── Cliente.form
│ │ ├── Servidor$1.class
│ │ ├── Servidor$2.class
│ │ ├── Servidor.class
│ │ └── Servidor.form
│ │ ├── ejemplo02
│ │ ├── clienteimprime
│ │ │ ├── Cliente$1.class
│ │ │ ├── Cliente.class
│ │ │ └── Servidor.class
│ │ └── servidorimrime
│ │ │ ├── Cliente.class
│ │ │ └── Servidor.class
│ │ └── ejemplo03
│ │ ├── ClienteUDP.class
│ │ └── ServidorUDP.class
├── nbproject
│ ├── build-impl.xml
│ ├── genfiles.properties
│ ├── private
│ │ ├── private.properties
│ │ └── private.xml
│ ├── project.properties
│ └── project.xml
└── src
│ └── t10
│ ├── ejemplo01
│ ├── Cliente.form
│ ├── Cliente.java
│ ├── Servidor.form
│ └── Servidor.java
│ ├── ejemplo02
│ ├── clienteimprime
│ │ ├── Cliente.java
│ │ └── Servidor.java
│ └── servidorimrime
│ │ ├── Cliente.java
│ │ └── Servidor.java
│ └── ejemplo03
│ ├── ClienteUDP.java
│ └── ServidorUDP.java
├── Tema_11_ejemplos_maven
├── pom.xml
├── src
│ └── main
│ │ └── java
│ │ └── com
│ │ └── medac
│ │ └── t11
│ │ ├── Tema_11_ejemplos_maven.java
│ │ ├── ejemplo01
│ │ ├── ServidorHTTP.java
│ │ ├── URL_Ej01_Conecta.java
│ │ ├── URL_Ej02_Reader.java
│ │ ├── URL_Ej03_ConectaParametros.java
│ │ └── html
│ │ │ ├── index.html
│ │ │ └── pages
│ │ │ ├── formulario.php
│ │ │ └── pagina1.html
│ │ ├── ejemplo02
│ │ ├── FTPConexion.java
│ │ ├── SFTPConexionJSCH.java
│ │ ├── SFTPConexionSSHJ.java
│ │ └── recursos
│ │ │ ├── mifichero.php
│ │ │ ├── sample.txt
│ │ │ └── sshjFile.html
│ │ └── ejemplo03
│ │ ├── noui
│ │ ├── Cliente.java
│ │ ├── Servidor.java
│ │ └── ServidorHilo.java
│ │ └── ui
│ │ ├── ClienteUI.form
│ │ ├── ClienteUI.java
│ │ ├── ServidorHiloUI.java
│ │ ├── ServidorUI.form
│ │ └── ServidorUI.java
└── target
│ ├── classes
│ └── com
│ │ └── medac
│ │ └── t11
│ │ ├── Tema_11_ejemplos_maven.class
│ │ ├── ejemplo01
│ │ ├── ServidorHTTP.class
│ │ ├── URL_Ej01_Conecta.class
│ │ ├── URL_Ej02_Reader.class
│ │ └── URL_Ej03_ConectaParametros.class
│ │ ├── ejemplo02
│ │ ├── FTPConexion.class
│ │ ├── SFTPConexionJSCH.class
│ │ └── SFTPConexionSSHJ.class
│ │ └── ejemplo03
│ │ ├── noui
│ │ ├── Cliente.class
│ │ ├── Servidor.class
│ │ └── ServidorHilo.class
│ │ └── ui
│ │ ├── ClienteUI$1.class
│ │ ├── ClienteUI$2.class
│ │ ├── ClienteUI$3.class
│ │ ├── ClienteUI.class
│ │ ├── ServidorHiloUI.class
│ │ ├── ServidorUI$1.class
│ │ └── ServidorUI.class
│ └── maven-status
│ └── maven-compiler-plugin
│ ├── compile
│ └── default-compile
│ │ ├── createdFiles.lst
│ │ └── inputFiles.lst
│ └── testCompile
│ └── default-testCompile
│ └── inputFiles.lst
├── Tema_13_ejemplos
├── nbproject
│ └── project.properties
├── pom.xml
├── src
│ ├── main
│ │ └── java
│ │ │ └── com
│ │ │ └── medac
│ │ │ └── t13
│ │ │ └── ExpresionesRegulares.java
│ └── test
│ │ └── java
│ │ └── TestEpresionesRegulares.java
└── target
│ ├── Tema_13_ejemplos-1.0-SNAPSHOT.jar
│ ├── classes
│ └── com
│ │ └── medac
│ │ └── t13
│ │ └── ExpresionesRegulares.class
│ ├── maven-archiver
│ └── pom.properties
│ ├── maven-status
│ └── maven-compiler-plugin
│ │ ├── compile
│ │ └── default-compile
│ │ │ ├── createdFiles.lst
│ │ │ └── inputFiles.lst
│ │ └── testCompile
│ │ └── default-testCompile
│ │ ├── createdFiles.lst
│ │ └── inputFiles.lst
│ ├── surefire-reports
│ ├── 2025-01-21T20-11-31_388-jvmRun1-commands.bin
│ ├── 2025-01-21T20-11-31_388-jvmRun1.dump
│ ├── 2025-01-22T15-17-30_291-jvmRun1-commands.bin
│ ├── 2025-01-22T15-17-30_291-jvmRun1.dump
│ ├── TEST-TestEpresionesRegulares.xml
│ └── TestEpresionesRegulares.txt
│ └── test-classes
│ └── TestEpresionesRegulares.class
├── Tema_14_ejemplos
├── nbproject
│ └── project.properties
├── pom.xml
├── src
│ ├── main
│ │ └── java
│ │ │ └── com
│ │ │ └── medac
│ │ │ └── t14
│ │ │ └── MessageDigestAlgorithms.java
│ └── test
│ │ └── java
│ │ └── MessageDigestAlgorithmsTest.java
└── target
│ ├── Tema_14_ejemplos-1.0-SNAPSHOT.jar
│ ├── classes
│ └── com
│ │ └── medac
│ │ └── t14
│ │ └── MessageDigestAlgorithms.class
│ ├── maven-archiver
│ └── pom.properties
│ ├── maven-status
│ └── maven-compiler-plugin
│ │ ├── compile
│ │ └── default-compile
│ │ │ ├── createdFiles.lst
│ │ │ └── inputFiles.lst
│ │ └── testCompile
│ │ └── default-testCompile
│ │ ├── createdFiles.lst
│ │ └── inputFiles.lst
│ ├── surefire-reports
│ ├── MessageDigestAlgorithmsTest.txt
│ └── TEST-MessageDigestAlgorithmsTest.xml
│ └── test-classes
│ └── MessageDigestAlgorithmsTest.class
└── Tema_15_ejemplos
├── pom.xml
├── src
└── main
│ └── java
│ ├── certs
│ ├── client
│ │ ├── ClientPublicKey.cer
│ │ ├── clientKey.jks
│ │ └── clientTrustedCerts.jks
│ ├── info.txt
│ └── server
│ │ ├── ServerPublicKey.cer
│ │ ├── serverKey.jks
│ │ └── serverTrustedCerts.jks
│ ├── certs2
│ ├── cliente
│ │ ├── certificadoCliente.jks
│ │ └── clientTrustedCerts.jks
│ └── servidor
│ │ ├── certificadoServidor.jks
│ │ └── serverTrustedCerts.jks
│ └── com
│ └── medac
│ └── t15
│ ├── Ejemplo01_ProveedoresSeguridad.java
│ ├── Ejemplo02_AlgoritmosCifrado.java
│ ├── Ejemplo03_CriptoClaveSimetrica.java
│ ├── cifrado
│ ├── Main.java
│ └── StringEncrypt.java
│ ├── socketseguro
│ ├── Main.java
│ ├── SSLCliente.java
│ └── SSLServidor.java
│ └── socketseguro2
│ ├── AppSSLServer.java
│ ├── SSLCliente2.java
│ └── SSLServidor2.java
└── target
├── Tema_15_ejemplos-1.0-SNAPSHOT.jar
├── classes
└── com
│ └── medac
│ └── t15
│ ├── Ejemplo01_ProveedoresSeguridad.class
│ ├── Ejemplo02_AlgoritmosCifrado.class
│ ├── Ejemplo03_CriptoClaveSimetrica.class
│ ├── cifrado
│ ├── Main.class
│ └── StringEncrypt.class
│ ├── socketseguro
│ ├── Main.class
│ ├── SSLCliente$1.class
│ ├── SSLCliente.class
│ ├── SSLServidor$1.class
│ └── SSLServidor.class
│ └── socketseguro2
│ ├── AppSSLServer.class
│ ├── SSLCliente2$1.class
│ ├── SSLCliente2.class
│ ├── SSLServidor2$1.class
│ └── SSLServidor2.class
├── maven-archiver
└── pom.properties
└── maven-status
└── maven-compiler-plugin
├── compile
└── default-compile
│ ├── createdFiles.lst
│ └── inputFiles.lst
└── testCompile
└── default-testCompile
├── createdFiles.lst
└── inputFiles.lst
/CalculadoraWS/build/web/META-INF/MANIFEST.MF:
--------------------------------------------------------------------------------
1 | Manifest-Version: 1.0
2 |
3 |
--------------------------------------------------------------------------------
/CalculadoraWS/build/web/WEB-INF/classes/com/medac/ws/CalculatorService.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/CalculadoraWS/build/web/WEB-INF/classes/com/medac/ws/CalculatorService.class
--------------------------------------------------------------------------------
/CalculadoraWS/build/web/WEB-INF/sun-web.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | Keep a copy of the generated servlet class' java code.
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/CalculadoraWS/build/web/WEB-INF/web.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
7 |
8 |
9 | 30
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/CalculadoraWS/build/web/gfv3ee6.dpf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/CalculadoraWS/build/web/gfv3ee6.dpf
--------------------------------------------------------------------------------
/CalculadoraWS/build/web/index.html:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
9 | TODO supply a title
10 |
11 |
12 |
13 |
14 | TODO write content
15 | === descripcion ===
16 | Hola a todos ........
17 |
18 |
19 |
--------------------------------------------------------------------------------
/CalculadoraWS/dist/CalculadoraWS.war:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/CalculadoraWS/dist/CalculadoraWS.war
--------------------------------------------------------------------------------
/CalculadoraWS/nbproject/genfiles.properties:
--------------------------------------------------------------------------------
1 | build.xml.data.CRC32=a56a0fe2
2 | build.xml.script.CRC32=ffc5938a
3 | build.xml.stylesheet.CRC32=651128d4@1.68.1.1
4 | # This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
5 | # Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
6 | nbproject/build-impl.xml.data.CRC32=a56a0fe2
7 | nbproject/build-impl.xml.script.CRC32=af7bb6ac
8 | nbproject/build-impl.xml.stylesheet.CRC32=99ea4b56@1.68.1.1
9 | nbproject/jaxws-build.xml.stylesheet.CRC32=6608c2cf
10 |
--------------------------------------------------------------------------------
/CalculadoraWS/nbproject/jax-ws.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | com.medac.ws.CalculatorService
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/CalculadoraWS/nbproject/private/private.properties:
--------------------------------------------------------------------------------
1 | deploy.ant.properties.file=C:\\Users\\MEDAC\\AppData\\Roaming\\NetBeans\\8.0.2\\config\\GlassFishEE6\\Properties\\gfv31007985342.properties
2 | j2ee.platform.is.jsr109=true
3 | j2ee.server.domain=C:/Users/MEDAC/AppData/Roaming/NetBeans/8.0.2/config/GF_4.1/domain1
4 | j2ee.server.home=C:/Program Files/glassfish-4.1/glassfish
5 | j2ee.server.instance=[C:\\Program Files\\glassfish-4.1\\glassfish;C:\\Program Files\\glassfish-4.1\\glassfish\\domains\\domain1]deployer:gfv3ee6:localhost:4848
6 | j2ee.server.middleware=C:/Program Files/glassfish-4.1
7 | user.properties.file=C:\\Users\\MEDAC\\AppData\\Roaming\\NetBeans\\8.0.2\\build.properties
8 |
--------------------------------------------------------------------------------
/CalculadoraWS/nbproject/private/private.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | file:/C:/Users/MEDAC/Documents/NetBeansProjects/CalculadoraWS/src/java/com/medac/ws/CalculatorService.java
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/CalculadoraWS/nbproject/project.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | org.netbeans.modules.web.project
4 |
5 |
6 |
7 |
8 |
9 | CalculadoraWS
10 | 1.6.5
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/CalculadoraWS/src/conf/MANIFEST.MF:
--------------------------------------------------------------------------------
1 | Manifest-Version: 1.0
2 |
3 |
--------------------------------------------------------------------------------
/CalculadoraWS/web/WEB-INF/web.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
7 |
8 |
9 | 30
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/CalculadoraWS/web/index.html:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
9 | TODO supply a title
10 |
11 |
12 |
13 |
14 | TODO write content
15 | === descripcion ===
16 | Hola a todos ........
17 |
18 |
19 |
--------------------------------------------------------------------------------
/Cliente01Calculadora/build/built-jar.properties:
--------------------------------------------------------------------------------
1 | #Thu, 16 Jan 2025 19:43:09 +0100
2 |
3 |
4 | C\:\\Users\\MEDAC\\Documents\\NetBeansProjects\\Cliente01Calculadora=
5 |
--------------------------------------------------------------------------------
/Cliente01Calculadora/build/classes/META-INF/jax-ws-catalog.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/Cliente01Calculadora/build/classes/cliente01calculadora/CalculatorService.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Cliente01Calculadora/build/classes/cliente01calculadora/CalculatorService.class
--------------------------------------------------------------------------------
/Cliente01Calculadora/build/classes/cliente01calculadora/CalculatorService_Service.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Cliente01Calculadora/build/classes/cliente01calculadora/CalculatorService_Service.class
--------------------------------------------------------------------------------
/Cliente01Calculadora/build/classes/cliente01calculadora/Cliente01App$1.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Cliente01Calculadora/build/classes/cliente01calculadora/Cliente01App$1.class
--------------------------------------------------------------------------------
/Cliente01Calculadora/build/classes/cliente01calculadora/Cliente01App$2.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Cliente01Calculadora/build/classes/cliente01calculadora/Cliente01App$2.class
--------------------------------------------------------------------------------
/Cliente01Calculadora/build/classes/cliente01calculadora/Cliente01App$3.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Cliente01Calculadora/build/classes/cliente01calculadora/Cliente01App$3.class
--------------------------------------------------------------------------------
/Cliente01Calculadora/build/classes/cliente01calculadora/Cliente01App$4.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Cliente01Calculadora/build/classes/cliente01calculadora/Cliente01App$4.class
--------------------------------------------------------------------------------
/Cliente01Calculadora/build/classes/cliente01calculadora/Cliente01App$5.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Cliente01Calculadora/build/classes/cliente01calculadora/Cliente01App$5.class
--------------------------------------------------------------------------------
/Cliente01Calculadora/build/classes/cliente01calculadora/Cliente01App$6.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Cliente01Calculadora/build/classes/cliente01calculadora/Cliente01App$6.class
--------------------------------------------------------------------------------
/Cliente01Calculadora/build/classes/cliente01calculadora/Cliente01App.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Cliente01Calculadora/build/classes/cliente01calculadora/Cliente01App.class
--------------------------------------------------------------------------------
/Cliente01Calculadora/build/classes/cliente01calculadora/Divide.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Cliente01Calculadora/build/classes/cliente01calculadora/Divide.class
--------------------------------------------------------------------------------
/Cliente01Calculadora/build/classes/cliente01calculadora/DivideResponse.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Cliente01Calculadora/build/classes/cliente01calculadora/DivideResponse.class
--------------------------------------------------------------------------------
/Cliente01Calculadora/build/classes/cliente01calculadora/Multiplica.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Cliente01Calculadora/build/classes/cliente01calculadora/Multiplica.class
--------------------------------------------------------------------------------
/Cliente01Calculadora/build/classes/cliente01calculadora/MultiplicaResponse.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Cliente01Calculadora/build/classes/cliente01calculadora/MultiplicaResponse.class
--------------------------------------------------------------------------------
/Cliente01Calculadora/build/classes/cliente01calculadora/ObjectFactory.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Cliente01Calculadora/build/classes/cliente01calculadora/ObjectFactory.class
--------------------------------------------------------------------------------
/Cliente01Calculadora/build/classes/cliente01calculadora/Potencia.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Cliente01Calculadora/build/classes/cliente01calculadora/Potencia.class
--------------------------------------------------------------------------------
/Cliente01Calculadora/build/classes/cliente01calculadora/PotenciaResponse.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Cliente01Calculadora/build/classes/cliente01calculadora/PotenciaResponse.class
--------------------------------------------------------------------------------
/Cliente01Calculadora/build/classes/cliente01calculadora/Resta.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Cliente01Calculadora/build/classes/cliente01calculadora/Resta.class
--------------------------------------------------------------------------------
/Cliente01Calculadora/build/classes/cliente01calculadora/RestaResponse.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Cliente01Calculadora/build/classes/cliente01calculadora/RestaResponse.class
--------------------------------------------------------------------------------
/Cliente01Calculadora/build/classes/cliente01calculadora/Suma.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Cliente01Calculadora/build/classes/cliente01calculadora/Suma.class
--------------------------------------------------------------------------------
/Cliente01Calculadora/build/classes/cliente01calculadora/SumaResponse.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Cliente01Calculadora/build/classes/cliente01calculadora/SumaResponse.class
--------------------------------------------------------------------------------
/Cliente01Calculadora/build/classes/cliente01calculadora/package-info.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Cliente01Calculadora/build/classes/cliente01calculadora/package-info.class
--------------------------------------------------------------------------------
/Cliente01Calculadora/build/generated-sources/jax-ws/cliente01calculadora/DivideResponse.java:
--------------------------------------------------------------------------------
1 |
2 | package cliente01calculadora;
3 |
4 | import javax.xml.bind.annotation.XmlAccessType;
5 | import javax.xml.bind.annotation.XmlAccessorType;
6 | import javax.xml.bind.annotation.XmlElement;
7 | import javax.xml.bind.annotation.XmlType;
8 |
9 |
10 | /**
11 | * Clase Java para divideResponse complex type.
12 | *
13 | *
El siguiente fragmento de esquema especifica el contenido que se espera que haya en esta clase.
14 | *
15 | *
16 | * <complexType name="divideResponse">
17 | * <complexContent>
18 | * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
19 | * <sequence>
20 | * <element name="return" type="{http://www.w3.org/2001/XMLSchema}double" minOccurs="0"/>
21 | * </sequence>
22 | * </restriction>
23 | * </complexContent>
24 | * </complexType>
25 | *
26 | *
27 | *
28 | */
29 | @XmlAccessorType(XmlAccessType.FIELD)
30 | @XmlType(name = "divideResponse", propOrder = {
31 | "_return"
32 | })
33 | public class DivideResponse {
34 |
35 | @XmlElement(name = "return")
36 | protected Double _return;
37 |
38 | /**
39 | * Obtiene el valor de la propiedad return.
40 | *
41 | * @return
42 | * possible object is
43 | * {@link Double }
44 | *
45 | */
46 | public Double getReturn() {
47 | return _return;
48 | }
49 |
50 | /**
51 | * Define el valor de la propiedad return.
52 | *
53 | * @param value
54 | * allowed object is
55 | * {@link Double }
56 | *
57 | */
58 | public void setReturn(Double value) {
59 | this._return = value;
60 | }
61 |
62 | }
63 |
--------------------------------------------------------------------------------
/Cliente01Calculadora/build/generated-sources/jax-ws/cliente01calculadora/RestaResponse.java:
--------------------------------------------------------------------------------
1 |
2 | package cliente01calculadora;
3 |
4 | import javax.xml.bind.annotation.XmlAccessType;
5 | import javax.xml.bind.annotation.XmlAccessorType;
6 | import javax.xml.bind.annotation.XmlElement;
7 | import javax.xml.bind.annotation.XmlType;
8 |
9 |
10 | /**
11 | * Clase Java para restaResponse complex type.
12 | *
13 | *
El siguiente fragmento de esquema especifica el contenido que se espera que haya en esta clase.
14 | *
15 | *
16 | * <complexType name="restaResponse">
17 | * <complexContent>
18 | * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
19 | * <sequence>
20 | * <element name="return" type="{http://www.w3.org/2001/XMLSchema}double" minOccurs="0"/>
21 | * </sequence>
22 | * </restriction>
23 | * </complexContent>
24 | * </complexType>
25 | *
26 | *
27 | *
28 | */
29 | @XmlAccessorType(XmlAccessType.FIELD)
30 | @XmlType(name = "restaResponse", propOrder = {
31 | "_return"
32 | })
33 | public class RestaResponse {
34 |
35 | @XmlElement(name = "return")
36 | protected Double _return;
37 |
38 | /**
39 | * Obtiene el valor de la propiedad return.
40 | *
41 | * @return
42 | * possible object is
43 | * {@link Double }
44 | *
45 | */
46 | public Double getReturn() {
47 | return _return;
48 | }
49 |
50 | /**
51 | * Define el valor de la propiedad return.
52 | *
53 | * @param value
54 | * allowed object is
55 | * {@link Double }
56 | *
57 | */
58 | public void setReturn(Double value) {
59 | this._return = value;
60 | }
61 |
62 | }
63 |
--------------------------------------------------------------------------------
/Cliente01Calculadora/build/generated-sources/jax-ws/cliente01calculadora/SumaResponse.java:
--------------------------------------------------------------------------------
1 |
2 | package cliente01calculadora;
3 |
4 | import javax.xml.bind.annotation.XmlAccessType;
5 | import javax.xml.bind.annotation.XmlAccessorType;
6 | import javax.xml.bind.annotation.XmlElement;
7 | import javax.xml.bind.annotation.XmlType;
8 |
9 |
10 | /**
11 | * Clase Java para sumaResponse complex type.
12 | *
13 | *
El siguiente fragmento de esquema especifica el contenido que se espera que haya en esta clase.
14 | *
15 | *
16 | * <complexType name="sumaResponse">
17 | * <complexContent>
18 | * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
19 | * <sequence>
20 | * <element name="return" type="{http://www.w3.org/2001/XMLSchema}double" minOccurs="0"/>
21 | * </sequence>
22 | * </restriction>
23 | * </complexContent>
24 | * </complexType>
25 | *
26 | *
27 | *
28 | */
29 | @XmlAccessorType(XmlAccessType.FIELD)
30 | @XmlType(name = "sumaResponse", propOrder = {
31 | "_return"
32 | })
33 | public class SumaResponse {
34 |
35 | @XmlElement(name = "return")
36 | protected Double _return;
37 |
38 | /**
39 | * Obtiene el valor de la propiedad return.
40 | *
41 | * @return
42 | * possible object is
43 | * {@link Double }
44 | *
45 | */
46 | public Double getReturn() {
47 | return _return;
48 | }
49 |
50 | /**
51 | * Define el valor de la propiedad return.
52 | *
53 | * @param value
54 | * allowed object is
55 | * {@link Double }
56 | *
57 | */
58 | public void setReturn(Double value) {
59 | this._return = value;
60 | }
61 |
62 | }
63 |
--------------------------------------------------------------------------------
/Cliente01Calculadora/build/generated-sources/jax-ws/cliente01calculadora/package-info.java:
--------------------------------------------------------------------------------
1 | @javax.xml.bind.annotation.XmlSchema(namespace = "http://ws.medac.com/")
2 | package cliente01calculadora;
3 |
--------------------------------------------------------------------------------
/Cliente01Calculadora/build/generated/jax-wsCache/CalculatorService/cliente01calculadora/package-info.java:
--------------------------------------------------------------------------------
1 | @javax.xml.bind.annotation.XmlSchema(namespace = "http://ws.medac.com/")
2 | package cliente01calculadora;
3 |
--------------------------------------------------------------------------------
/Cliente01Calculadora/catalog.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/Cliente01Calculadora/dist/Cliente01Calculadora.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Cliente01Calculadora/dist/Cliente01Calculadora.jar
--------------------------------------------------------------------------------
/Cliente01Calculadora/dist/README.TXT:
--------------------------------------------------------------------------------
1 | ========================
2 | BUILD OUTPUT DESCRIPTION
3 | ========================
4 |
5 | When you build an Java application project that has a main class, the IDE
6 | automatically copies all of the JAR
7 | files on the projects classpath to your projects dist/lib folder. The IDE
8 | also adds each of the JAR files to the Class-Path element in the application
9 | JAR files manifest file (MANIFEST.MF).
10 |
11 | To run the project from the command line, go to the dist folder and
12 | type the following:
13 |
14 | java -jar "Cliente01Calculadora.jar"
15 |
16 | To distribute this project, zip up the dist folder (including the lib folder)
17 | and distribute the ZIP file.
18 |
19 | Notes:
20 |
21 | * If two JAR files on the project classpath have the same name, only the first
22 | JAR file is copied to the lib folder.
23 | * Only JAR files are copied to the lib folder.
24 | If the classpath contains other types of files or folders, these files (folders)
25 | are not copied.
26 | * If a library on the projects classpath also has a Class-Path element
27 | specified in the manifest,the content of the Class-Path element has to be on
28 | the projects runtime path.
29 | * To set a main class in a standard Java project, right-click the project node
30 | in the Projects window and choose Properties. Then click Run and enter the
31 | class name in the Main Class field. Alternatively, you can manually type the
32 | class name in the manifest Main-Class element.
33 |
--------------------------------------------------------------------------------
/Cliente01Calculadora/manifest.mf:
--------------------------------------------------------------------------------
1 | Manifest-Version: 1.0
2 | X-COMMENT: Main-Class will be added automatically by build
3 |
4 |
--------------------------------------------------------------------------------
/Cliente01Calculadora/nbproject/genfiles.properties:
--------------------------------------------------------------------------------
1 | build.xml.data.CRC32=a066c711
2 | build.xml.script.CRC32=2243a112
3 | build.xml.stylesheet.CRC32=8064a381@1.75.2.48
4 | # This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
5 | # Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
6 | nbproject/build-impl.xml.data.CRC32=a066c711
7 | nbproject/build-impl.xml.script.CRC32=71b63d70
8 | nbproject/build-impl.xml.stylesheet.CRC32=876e7a8f@1.75.2.48
9 |
--------------------------------------------------------------------------------
/Cliente01Calculadora/nbproject/private/private.properties:
--------------------------------------------------------------------------------
1 | compile.on.save=true
2 | user.properties.file=C:\\Users\\MEDAC\\AppData\\Roaming\\NetBeans\\8.0.2\\build.properties
3 |
--------------------------------------------------------------------------------
/Cliente01Calculadora/nbproject/private/private.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | file:/C:/Users/MEDAC/Documents/NetBeansProjects/Cliente01Calculadora/src/cliente01calculadora/Cliente01App.java
7 | file:/C:/Users/MEDAC/Documents/NetBeansProjects/Cliente01Calculadora/build/generated-sources/jax-ws/cliente01calculadora/CalculatorService.java
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Cliente01Calculadora/nbproject/project.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | org.netbeans.modules.java.j2seproject
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 | Cliente01Calculadora
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/Cliente01Calculadora/src/META-INF/jax-ws-catalog.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/Cliente03AppWebHTMLServlet/build/generated-sources/jax-ws/com/medac/ws/DivideResponse.java:
--------------------------------------------------------------------------------
1 |
2 | package com.medac.ws;
3 |
4 | import javax.xml.bind.annotation.XmlAccessType;
5 | import javax.xml.bind.annotation.XmlAccessorType;
6 | import javax.xml.bind.annotation.XmlElement;
7 | import javax.xml.bind.annotation.XmlType;
8 |
9 |
10 | /**
11 | * Clase Java para divideResponse complex type.
12 | *
13 | *
El siguiente fragmento de esquema especifica el contenido que se espera que haya en esta clase.
14 | *
15 | *
16 | * <complexType name="divideResponse">
17 | * <complexContent>
18 | * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
19 | * <sequence>
20 | * <element name="return" type="{http://www.w3.org/2001/XMLSchema}double" minOccurs="0"/>
21 | * </sequence>
22 | * </restriction>
23 | * </complexContent>
24 | * </complexType>
25 | *
26 | *
27 | *
28 | */
29 | @XmlAccessorType(XmlAccessType.FIELD)
30 | @XmlType(name = "divideResponse", propOrder = {
31 | "_return"
32 | })
33 | public class DivideResponse {
34 |
35 | @XmlElement(name = "return")
36 | protected Double _return;
37 |
38 | /**
39 | * Obtiene el valor de la propiedad return.
40 | *
41 | * @return
42 | * possible object is
43 | * {@link Double }
44 | *
45 | */
46 | public Double getReturn() {
47 | return _return;
48 | }
49 |
50 | /**
51 | * Define el valor de la propiedad return.
52 | *
53 | * @param value
54 | * allowed object is
55 | * {@link Double }
56 | *
57 | */
58 | public void setReturn(Double value) {
59 | this._return = value;
60 | }
61 |
62 | }
63 |
--------------------------------------------------------------------------------
/Cliente03AppWebHTMLServlet/build/generated-sources/jax-ws/com/medac/ws/PotenciaResponse.java:
--------------------------------------------------------------------------------
1 |
2 | package com.medac.ws;
3 |
4 | import javax.xml.bind.annotation.XmlAccessType;
5 | import javax.xml.bind.annotation.XmlAccessorType;
6 | import javax.xml.bind.annotation.XmlElement;
7 | import javax.xml.bind.annotation.XmlType;
8 |
9 |
10 | /**
11 | * Clase Java para potenciaResponse complex type.
12 | *
13 | *
El siguiente fragmento de esquema especifica el contenido que se espera que haya en esta clase.
14 | *
15 | *
16 | * <complexType name="potenciaResponse">
17 | * <complexContent>
18 | * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
19 | * <sequence>
20 | * <element name="return" type="{http://www.w3.org/2001/XMLSchema}double" minOccurs="0"/>
21 | * </sequence>
22 | * </restriction>
23 | * </complexContent>
24 | * </complexType>
25 | *
26 | *
27 | *
28 | */
29 | @XmlAccessorType(XmlAccessType.FIELD)
30 | @XmlType(name = "potenciaResponse", propOrder = {
31 | "_return"
32 | })
33 | public class PotenciaResponse {
34 |
35 | @XmlElement(name = "return")
36 | protected Double _return;
37 |
38 | /**
39 | * Obtiene el valor de la propiedad return.
40 | *
41 | * @return
42 | * possible object is
43 | * {@link Double }
44 | *
45 | */
46 | public Double getReturn() {
47 | return _return;
48 | }
49 |
50 | /**
51 | * Define el valor de la propiedad return.
52 | *
53 | * @param value
54 | * allowed object is
55 | * {@link Double }
56 | *
57 | */
58 | public void setReturn(Double value) {
59 | this._return = value;
60 | }
61 |
62 | }
63 |
--------------------------------------------------------------------------------
/Cliente03AppWebHTMLServlet/build/generated-sources/jax-ws/com/medac/ws/RestaResponse.java:
--------------------------------------------------------------------------------
1 |
2 | package com.medac.ws;
3 |
4 | import javax.xml.bind.annotation.XmlAccessType;
5 | import javax.xml.bind.annotation.XmlAccessorType;
6 | import javax.xml.bind.annotation.XmlElement;
7 | import javax.xml.bind.annotation.XmlType;
8 |
9 |
10 | /**
11 | * Clase Java para restaResponse complex type.
12 | *
13 | *
El siguiente fragmento de esquema especifica el contenido que se espera que haya en esta clase.
14 | *
15 | *
16 | * <complexType name="restaResponse">
17 | * <complexContent>
18 | * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
19 | * <sequence>
20 | * <element name="return" type="{http://www.w3.org/2001/XMLSchema}double" minOccurs="0"/>
21 | * </sequence>
22 | * </restriction>
23 | * </complexContent>
24 | * </complexType>
25 | *
26 | *
27 | *
28 | */
29 | @XmlAccessorType(XmlAccessType.FIELD)
30 | @XmlType(name = "restaResponse", propOrder = {
31 | "_return"
32 | })
33 | public class RestaResponse {
34 |
35 | @XmlElement(name = "return")
36 | protected Double _return;
37 |
38 | /**
39 | * Obtiene el valor de la propiedad return.
40 | *
41 | * @return
42 | * possible object is
43 | * {@link Double }
44 | *
45 | */
46 | public Double getReturn() {
47 | return _return;
48 | }
49 |
50 | /**
51 | * Define el valor de la propiedad return.
52 | *
53 | * @param value
54 | * allowed object is
55 | * {@link Double }
56 | *
57 | */
58 | public void setReturn(Double value) {
59 | this._return = value;
60 | }
61 |
62 | }
63 |
--------------------------------------------------------------------------------
/Cliente03AppWebHTMLServlet/build/generated-sources/jax-ws/com/medac/ws/SumaResponse.java:
--------------------------------------------------------------------------------
1 |
2 | package com.medac.ws;
3 |
4 | import javax.xml.bind.annotation.XmlAccessType;
5 | import javax.xml.bind.annotation.XmlAccessorType;
6 | import javax.xml.bind.annotation.XmlElement;
7 | import javax.xml.bind.annotation.XmlType;
8 |
9 |
10 | /**
11 | * Clase Java para sumaResponse complex type.
12 | *
13 | *
El siguiente fragmento de esquema especifica el contenido que se espera que haya en esta clase.
14 | *
15 | *
16 | * <complexType name="sumaResponse">
17 | * <complexContent>
18 | * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
19 | * <sequence>
20 | * <element name="return" type="{http://www.w3.org/2001/XMLSchema}double" minOccurs="0"/>
21 | * </sequence>
22 | * </restriction>
23 | * </complexContent>
24 | * </complexType>
25 | *
26 | *
27 | *
28 | */
29 | @XmlAccessorType(XmlAccessType.FIELD)
30 | @XmlType(name = "sumaResponse", propOrder = {
31 | "_return"
32 | })
33 | public class SumaResponse {
34 |
35 | @XmlElement(name = "return")
36 | protected Double _return;
37 |
38 | /**
39 | * Obtiene el valor de la propiedad return.
40 | *
41 | * @return
42 | * possible object is
43 | * {@link Double }
44 | *
45 | */
46 | public Double getReturn() {
47 | return _return;
48 | }
49 |
50 | /**
51 | * Define el valor de la propiedad return.
52 | *
53 | * @param value
54 | * allowed object is
55 | * {@link Double }
56 | *
57 | */
58 | public void setReturn(Double value) {
59 | this._return = value;
60 | }
61 |
62 | }
63 |
--------------------------------------------------------------------------------
/Cliente03AppWebHTMLServlet/build/generated-sources/jax-ws/com/medac/ws/package-info.java:
--------------------------------------------------------------------------------
1 | @javax.xml.bind.annotation.XmlSchema(namespace = "http://ws.medac.com/")
2 | package com.medac.ws;
3 |
--------------------------------------------------------------------------------
/Cliente03AppWebHTMLServlet/build/generated/jax-wsCache/CalculatorService/com/medac/ws/SumaResponse.java:
--------------------------------------------------------------------------------
1 |
2 | package com.medac.ws;
3 |
4 | import javax.xml.bind.annotation.XmlAccessType;
5 | import javax.xml.bind.annotation.XmlAccessorType;
6 | import javax.xml.bind.annotation.XmlElement;
7 | import javax.xml.bind.annotation.XmlType;
8 |
9 |
10 | /**
11 | * Clase Java para sumaResponse complex type.
12 | *
13 | *
El siguiente fragmento de esquema especifica el contenido que se espera que haya en esta clase.
14 | *
15 | *
16 | * <complexType name="sumaResponse">
17 | * <complexContent>
18 | * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
19 | * <sequence>
20 | * <element name="return" type="{http://www.w3.org/2001/XMLSchema}double" minOccurs="0"/>
21 | * </sequence>
22 | * </restriction>
23 | * </complexContent>
24 | * </complexType>
25 | *
26 | *
27 | *
28 | */
29 | @XmlAccessorType(XmlAccessType.FIELD)
30 | @XmlType(name = "sumaResponse", propOrder = {
31 | "_return"
32 | })
33 | public class SumaResponse {
34 |
35 | @XmlElement(name = "return")
36 | protected Double _return;
37 |
38 | /**
39 | * Obtiene el valor de la propiedad return.
40 | *
41 | * @return
42 | * possible object is
43 | * {@link Double }
44 | *
45 | */
46 | public Double getReturn() {
47 | return _return;
48 | }
49 |
50 | /**
51 | * Define el valor de la propiedad return.
52 | *
53 | * @param value
54 | * allowed object is
55 | * {@link Double }
56 | *
57 | */
58 | public void setReturn(Double value) {
59 | this._return = value;
60 | }
61 |
62 | }
63 |
--------------------------------------------------------------------------------
/Cliente03AppWebHTMLServlet/build/generated/jax-wsCache/CalculatorService/com/medac/ws/package-info.java:
--------------------------------------------------------------------------------
1 | @javax.xml.bind.annotation.XmlSchema(namespace = "http://ws.medac.com/")
2 | package com.medac.ws;
3 |
--------------------------------------------------------------------------------
/Cliente03AppWebHTMLServlet/build/web/META-INF/MANIFEST.MF:
--------------------------------------------------------------------------------
1 | Manifest-Version: 1.0
2 |
3 |
--------------------------------------------------------------------------------
/Cliente03AppWebHTMLServlet/build/web/WEB-INF/classes/com/medac/MiServlet.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Cliente03AppWebHTMLServlet/build/web/WEB-INF/classes/com/medac/MiServlet.class
--------------------------------------------------------------------------------
/Cliente03AppWebHTMLServlet/build/web/WEB-INF/classes/com/medac/ws/CalculatorService.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Cliente03AppWebHTMLServlet/build/web/WEB-INF/classes/com/medac/ws/CalculatorService.class
--------------------------------------------------------------------------------
/Cliente03AppWebHTMLServlet/build/web/WEB-INF/classes/com/medac/ws/CalculatorService_Service.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Cliente03AppWebHTMLServlet/build/web/WEB-INF/classes/com/medac/ws/CalculatorService_Service.class
--------------------------------------------------------------------------------
/Cliente03AppWebHTMLServlet/build/web/WEB-INF/classes/com/medac/ws/Divide.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Cliente03AppWebHTMLServlet/build/web/WEB-INF/classes/com/medac/ws/Divide.class
--------------------------------------------------------------------------------
/Cliente03AppWebHTMLServlet/build/web/WEB-INF/classes/com/medac/ws/DivideResponse.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Cliente03AppWebHTMLServlet/build/web/WEB-INF/classes/com/medac/ws/DivideResponse.class
--------------------------------------------------------------------------------
/Cliente03AppWebHTMLServlet/build/web/WEB-INF/classes/com/medac/ws/Multiplica.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Cliente03AppWebHTMLServlet/build/web/WEB-INF/classes/com/medac/ws/Multiplica.class
--------------------------------------------------------------------------------
/Cliente03AppWebHTMLServlet/build/web/WEB-INF/classes/com/medac/ws/MultiplicaResponse.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Cliente03AppWebHTMLServlet/build/web/WEB-INF/classes/com/medac/ws/MultiplicaResponse.class
--------------------------------------------------------------------------------
/Cliente03AppWebHTMLServlet/build/web/WEB-INF/classes/com/medac/ws/ObjectFactory.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Cliente03AppWebHTMLServlet/build/web/WEB-INF/classes/com/medac/ws/ObjectFactory.class
--------------------------------------------------------------------------------
/Cliente03AppWebHTMLServlet/build/web/WEB-INF/classes/com/medac/ws/Potencia.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Cliente03AppWebHTMLServlet/build/web/WEB-INF/classes/com/medac/ws/Potencia.class
--------------------------------------------------------------------------------
/Cliente03AppWebHTMLServlet/build/web/WEB-INF/classes/com/medac/ws/PotenciaResponse.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Cliente03AppWebHTMLServlet/build/web/WEB-INF/classes/com/medac/ws/PotenciaResponse.class
--------------------------------------------------------------------------------
/Cliente03AppWebHTMLServlet/build/web/WEB-INF/classes/com/medac/ws/Resta.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Cliente03AppWebHTMLServlet/build/web/WEB-INF/classes/com/medac/ws/Resta.class
--------------------------------------------------------------------------------
/Cliente03AppWebHTMLServlet/build/web/WEB-INF/classes/com/medac/ws/RestaResponse.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Cliente03AppWebHTMLServlet/build/web/WEB-INF/classes/com/medac/ws/RestaResponse.class
--------------------------------------------------------------------------------
/Cliente03AppWebHTMLServlet/build/web/WEB-INF/classes/com/medac/ws/Suma.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Cliente03AppWebHTMLServlet/build/web/WEB-INF/classes/com/medac/ws/Suma.class
--------------------------------------------------------------------------------
/Cliente03AppWebHTMLServlet/build/web/WEB-INF/classes/com/medac/ws/SumaResponse.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Cliente03AppWebHTMLServlet/build/web/WEB-INF/classes/com/medac/ws/SumaResponse.class
--------------------------------------------------------------------------------
/Cliente03AppWebHTMLServlet/build/web/WEB-INF/classes/com/medac/ws/package-info.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Cliente03AppWebHTMLServlet/build/web/WEB-INF/classes/com/medac/ws/package-info.class
--------------------------------------------------------------------------------
/Cliente03AppWebHTMLServlet/build/web/WEB-INF/jax-ws-catalog.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/Cliente03AppWebHTMLServlet/build/web/WEB-INF/sun-web.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | Keep a copy of the generated servlet class' java code.
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/Cliente03AppWebHTMLServlet/build/web/gfv3ee6.dpf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Cliente03AppWebHTMLServlet/build/web/gfv3ee6.dpf
--------------------------------------------------------------------------------
/Cliente03AppWebHTMLServlet/build/web/index.html:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
9 | TODO supply a title
10 |
11 |
12 |
13 |
14 | Cliente de Servicio Aplicacion Web con Html y formulario
15 |
16 |
36 |
37 |
38 |
--------------------------------------------------------------------------------
/Cliente03AppWebHTMLServlet/catalog.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/Cliente03AppWebHTMLServlet/dist/Cliente03AppWebHTMLServlet.war:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Cliente03AppWebHTMLServlet/dist/Cliente03AppWebHTMLServlet.war
--------------------------------------------------------------------------------
/Cliente03AppWebHTMLServlet/nbproject/genfiles.properties:
--------------------------------------------------------------------------------
1 | build.xml.data.CRC32=9c7daa4a
2 | build.xml.script.CRC32=e4dd53dc
3 | build.xml.stylesheet.CRC32=651128d4@1.68.1.1
4 | # This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
5 | # Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
6 | nbproject/build-impl.xml.data.CRC32=9c7daa4a
7 | nbproject/build-impl.xml.script.CRC32=38bd24b3
8 | nbproject/build-impl.xml.stylesheet.CRC32=99ea4b56@1.68.1.1
9 | nbproject/jaxws-build.xml.stylesheet.CRC32=6608c2cf
10 |
--------------------------------------------------------------------------------
/Cliente03AppWebHTMLServlet/nbproject/jax-ws.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | http://localhost:8080/CalculadoraWS/CalculatorService?wsdl
7 | localhost_8080/CalculadoraWS/CalculatorService.wsdl
8 | com.medac.ws
9 | catalog.xml
10 |
11 |
12 | extension
13 | true
14 |
15 |
16 | verbose
17 | true
18 |
19 |
20 | fork
21 | false
22 |
23 |
24 | wsdlLocation
25 | http://localhost:8080/CalculadoraWS/CalculatorService?wsdl
26 |
27 |
28 | xnocompile
29 | true
30 |
31 |
32 | xendorsed
33 | true
34 |
35 |
36 |
37 |
38 |
39 |
--------------------------------------------------------------------------------
/Cliente03AppWebHTMLServlet/nbproject/private/private.properties:
--------------------------------------------------------------------------------
1 | deploy.ant.properties.file=C:\\Users\\MEDAC\\AppData\\Roaming\\NetBeans\\8.0.2\\config\\GlassFishEE6\\Properties\\gfv31007985342.properties
2 | j2ee.platform.is.jsr109=true
3 | j2ee.server.domain=C:/Users/MEDAC/AppData/Roaming/NetBeans/8.0.2/config/GF_4.1/domain1
4 | j2ee.server.home=C:/Program Files/glassfish-4.1/glassfish
5 | j2ee.server.instance=[C:\\Program Files\\glassfish-4.1\\glassfish;C:\\Program Files\\glassfish-4.1\\glassfish\\domains\\domain1]deployer:gfv3ee6:localhost:4848
6 | j2ee.server.middleware=C:/Program Files/glassfish-4.1
7 | user.properties.file=C:\\Users\\MEDAC\\AppData\\Roaming\\NetBeans\\8.0.2\\build.properties
8 |
--------------------------------------------------------------------------------
/Cliente03AppWebHTMLServlet/nbproject/private/private.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | file:/C:/Users/MEDAC/Documents/NetBeansProjects/Cliente03AppWebHTMLServlet/src/java/com/medac/MiServlet.java
7 | file:/C:/Users/MEDAC/Documents/NetBeansProjects/Cliente03AppWebHTMLServlet/web/index.html
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Cliente03AppWebHTMLServlet/nbproject/project.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | org.netbeans.modules.web.project
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 | Cliente03AppWebHTMLServlet
12 | 1.6.5
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/Cliente03AppWebHTMLServlet/src/conf/MANIFEST.MF:
--------------------------------------------------------------------------------
1 | Manifest-Version: 1.0
2 |
3 |
--------------------------------------------------------------------------------
/Cliente03AppWebHTMLServlet/web/WEB-INF/jax-ws-catalog.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/Cliente03AppWebHTMLServlet/web/index.html:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
9 | TODO supply a title
10 |
11 |
12 |
13 |
14 | Cliente de Servicio Aplicacion Web con Html y formulario
15 |
16 |
36 |
37 |
38 |
--------------------------------------------------------------------------------
/Cliente04AppWebJSP/build/generated-sources/jax-ws/com/medac/ws/DivideResponse.java:
--------------------------------------------------------------------------------
1 |
2 | package com.medac.ws;
3 |
4 | import javax.xml.bind.annotation.XmlAccessType;
5 | import javax.xml.bind.annotation.XmlAccessorType;
6 | import javax.xml.bind.annotation.XmlElement;
7 | import javax.xml.bind.annotation.XmlType;
8 |
9 |
10 | /**
11 | * Clase Java para divideResponse complex type.
12 | *
13 | *
El siguiente fragmento de esquema especifica el contenido que se espera que haya en esta clase.
14 | *
15 | *
16 | * <complexType name="divideResponse">
17 | * <complexContent>
18 | * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
19 | * <sequence>
20 | * <element name="return" type="{http://www.w3.org/2001/XMLSchema}double" minOccurs="0"/>
21 | * </sequence>
22 | * </restriction>
23 | * </complexContent>
24 | * </complexType>
25 | *
26 | *
27 | *
28 | */
29 | @XmlAccessorType(XmlAccessType.FIELD)
30 | @XmlType(name = "divideResponse", propOrder = {
31 | "_return"
32 | })
33 | public class DivideResponse {
34 |
35 | @XmlElement(name = "return")
36 | protected Double _return;
37 |
38 | /**
39 | * Obtiene el valor de la propiedad return.
40 | *
41 | * @return
42 | * possible object is
43 | * {@link Double }
44 | *
45 | */
46 | public Double getReturn() {
47 | return _return;
48 | }
49 |
50 | /**
51 | * Define el valor de la propiedad return.
52 | *
53 | * @param value
54 | * allowed object is
55 | * {@link Double }
56 | *
57 | */
58 | public void setReturn(Double value) {
59 | this._return = value;
60 | }
61 |
62 | }
63 |
--------------------------------------------------------------------------------
/Cliente04AppWebJSP/build/generated-sources/jax-ws/com/medac/ws/PotenciaResponse.java:
--------------------------------------------------------------------------------
1 |
2 | package com.medac.ws;
3 |
4 | import javax.xml.bind.annotation.XmlAccessType;
5 | import javax.xml.bind.annotation.XmlAccessorType;
6 | import javax.xml.bind.annotation.XmlElement;
7 | import javax.xml.bind.annotation.XmlType;
8 |
9 |
10 | /**
11 | * Clase Java para potenciaResponse complex type.
12 | *
13 | *
El siguiente fragmento de esquema especifica el contenido que se espera que haya en esta clase.
14 | *
15 | *
16 | * <complexType name="potenciaResponse">
17 | * <complexContent>
18 | * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
19 | * <sequence>
20 | * <element name="return" type="{http://www.w3.org/2001/XMLSchema}double" minOccurs="0"/>
21 | * </sequence>
22 | * </restriction>
23 | * </complexContent>
24 | * </complexType>
25 | *
26 | *
27 | *
28 | */
29 | @XmlAccessorType(XmlAccessType.FIELD)
30 | @XmlType(name = "potenciaResponse", propOrder = {
31 | "_return"
32 | })
33 | public class PotenciaResponse {
34 |
35 | @XmlElement(name = "return")
36 | protected Double _return;
37 |
38 | /**
39 | * Obtiene el valor de la propiedad return.
40 | *
41 | * @return
42 | * possible object is
43 | * {@link Double }
44 | *
45 | */
46 | public Double getReturn() {
47 | return _return;
48 | }
49 |
50 | /**
51 | * Define el valor de la propiedad return.
52 | *
53 | * @param value
54 | * allowed object is
55 | * {@link Double }
56 | *
57 | */
58 | public void setReturn(Double value) {
59 | this._return = value;
60 | }
61 |
62 | }
63 |
--------------------------------------------------------------------------------
/Cliente04AppWebJSP/build/generated-sources/jax-ws/com/medac/ws/RestaResponse.java:
--------------------------------------------------------------------------------
1 |
2 | package com.medac.ws;
3 |
4 | import javax.xml.bind.annotation.XmlAccessType;
5 | import javax.xml.bind.annotation.XmlAccessorType;
6 | import javax.xml.bind.annotation.XmlElement;
7 | import javax.xml.bind.annotation.XmlType;
8 |
9 |
10 | /**
11 | * Clase Java para restaResponse complex type.
12 | *
13 | *
El siguiente fragmento de esquema especifica el contenido que se espera que haya en esta clase.
14 | *
15 | *
16 | * <complexType name="restaResponse">
17 | * <complexContent>
18 | * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
19 | * <sequence>
20 | * <element name="return" type="{http://www.w3.org/2001/XMLSchema}double" minOccurs="0"/>
21 | * </sequence>
22 | * </restriction>
23 | * </complexContent>
24 | * </complexType>
25 | *
26 | *
27 | *
28 | */
29 | @XmlAccessorType(XmlAccessType.FIELD)
30 | @XmlType(name = "restaResponse", propOrder = {
31 | "_return"
32 | })
33 | public class RestaResponse {
34 |
35 | @XmlElement(name = "return")
36 | protected Double _return;
37 |
38 | /**
39 | * Obtiene el valor de la propiedad return.
40 | *
41 | * @return
42 | * possible object is
43 | * {@link Double }
44 | *
45 | */
46 | public Double getReturn() {
47 | return _return;
48 | }
49 |
50 | /**
51 | * Define el valor de la propiedad return.
52 | *
53 | * @param value
54 | * allowed object is
55 | * {@link Double }
56 | *
57 | */
58 | public void setReturn(Double value) {
59 | this._return = value;
60 | }
61 |
62 | }
63 |
--------------------------------------------------------------------------------
/Cliente04AppWebJSP/build/generated-sources/jax-ws/com/medac/ws/SumaResponse.java:
--------------------------------------------------------------------------------
1 |
2 | package com.medac.ws;
3 |
4 | import javax.xml.bind.annotation.XmlAccessType;
5 | import javax.xml.bind.annotation.XmlAccessorType;
6 | import javax.xml.bind.annotation.XmlElement;
7 | import javax.xml.bind.annotation.XmlType;
8 |
9 |
10 | /**
11 | * Clase Java para sumaResponse complex type.
12 | *
13 | *
El siguiente fragmento de esquema especifica el contenido que se espera que haya en esta clase.
14 | *
15 | *
16 | * <complexType name="sumaResponse">
17 | * <complexContent>
18 | * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
19 | * <sequence>
20 | * <element name="return" type="{http://www.w3.org/2001/XMLSchema}double" minOccurs="0"/>
21 | * </sequence>
22 | * </restriction>
23 | * </complexContent>
24 | * </complexType>
25 | *
26 | *
27 | *
28 | */
29 | @XmlAccessorType(XmlAccessType.FIELD)
30 | @XmlType(name = "sumaResponse", propOrder = {
31 | "_return"
32 | })
33 | public class SumaResponse {
34 |
35 | @XmlElement(name = "return")
36 | protected Double _return;
37 |
38 | /**
39 | * Obtiene el valor de la propiedad return.
40 | *
41 | * @return
42 | * possible object is
43 | * {@link Double }
44 | *
45 | */
46 | public Double getReturn() {
47 | return _return;
48 | }
49 |
50 | /**
51 | * Define el valor de la propiedad return.
52 | *
53 | * @param value
54 | * allowed object is
55 | * {@link Double }
56 | *
57 | */
58 | public void setReturn(Double value) {
59 | this._return = value;
60 | }
61 |
62 | }
63 |
--------------------------------------------------------------------------------
/Cliente04AppWebJSP/build/generated-sources/jax-ws/com/medac/ws/package-info.java:
--------------------------------------------------------------------------------
1 | @javax.xml.bind.annotation.XmlSchema(namespace = "http://ws.medac.com/")
2 | package com.medac.ws;
3 |
--------------------------------------------------------------------------------
/Cliente04AppWebJSP/build/generated/jax-wsCache/CalculatorService/com/medac/ws/RestaResponse.java:
--------------------------------------------------------------------------------
1 |
2 | package com.medac.ws;
3 |
4 | import javax.xml.bind.annotation.XmlAccessType;
5 | import javax.xml.bind.annotation.XmlAccessorType;
6 | import javax.xml.bind.annotation.XmlElement;
7 | import javax.xml.bind.annotation.XmlType;
8 |
9 |
10 | /**
11 | * Clase Java para restaResponse complex type.
12 | *
13 | *
El siguiente fragmento de esquema especifica el contenido que se espera que haya en esta clase.
14 | *
15 | *
16 | * <complexType name="restaResponse">
17 | * <complexContent>
18 | * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
19 | * <sequence>
20 | * <element name="return" type="{http://www.w3.org/2001/XMLSchema}double" minOccurs="0"/>
21 | * </sequence>
22 | * </restriction>
23 | * </complexContent>
24 | * </complexType>
25 | *
26 | *
27 | *
28 | */
29 | @XmlAccessorType(XmlAccessType.FIELD)
30 | @XmlType(name = "restaResponse", propOrder = {
31 | "_return"
32 | })
33 | public class RestaResponse {
34 |
35 | @XmlElement(name = "return")
36 | protected Double _return;
37 |
38 | /**
39 | * Obtiene el valor de la propiedad return.
40 | *
41 | * @return
42 | * possible object is
43 | * {@link Double }
44 | *
45 | */
46 | public Double getReturn() {
47 | return _return;
48 | }
49 |
50 | /**
51 | * Define el valor de la propiedad return.
52 | *
53 | * @param value
54 | * allowed object is
55 | * {@link Double }
56 | *
57 | */
58 | public void setReturn(Double value) {
59 | this._return = value;
60 | }
61 |
62 | }
63 |
--------------------------------------------------------------------------------
/Cliente04AppWebJSP/build/generated/jax-wsCache/CalculatorService/com/medac/ws/SumaResponse.java:
--------------------------------------------------------------------------------
1 |
2 | package com.medac.ws;
3 |
4 | import javax.xml.bind.annotation.XmlAccessType;
5 | import javax.xml.bind.annotation.XmlAccessorType;
6 | import javax.xml.bind.annotation.XmlElement;
7 | import javax.xml.bind.annotation.XmlType;
8 |
9 |
10 | /**
11 | * Clase Java para sumaResponse complex type.
12 | *
13 | *
El siguiente fragmento de esquema especifica el contenido que se espera que haya en esta clase.
14 | *
15 | *
16 | * <complexType name="sumaResponse">
17 | * <complexContent>
18 | * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
19 | * <sequence>
20 | * <element name="return" type="{http://www.w3.org/2001/XMLSchema}double" minOccurs="0"/>
21 | * </sequence>
22 | * </restriction>
23 | * </complexContent>
24 | * </complexType>
25 | *
26 | *
27 | *
28 | */
29 | @XmlAccessorType(XmlAccessType.FIELD)
30 | @XmlType(name = "sumaResponse", propOrder = {
31 | "_return"
32 | })
33 | public class SumaResponse {
34 |
35 | @XmlElement(name = "return")
36 | protected Double _return;
37 |
38 | /**
39 | * Obtiene el valor de la propiedad return.
40 | *
41 | * @return
42 | * possible object is
43 | * {@link Double }
44 | *
45 | */
46 | public Double getReturn() {
47 | return _return;
48 | }
49 |
50 | /**
51 | * Define el valor de la propiedad return.
52 | *
53 | * @param value
54 | * allowed object is
55 | * {@link Double }
56 | *
57 | */
58 | public void setReturn(Double value) {
59 | this._return = value;
60 | }
61 |
62 | }
63 |
--------------------------------------------------------------------------------
/Cliente04AppWebJSP/build/generated/jax-wsCache/CalculatorService/com/medac/ws/package-info.java:
--------------------------------------------------------------------------------
1 | @javax.xml.bind.annotation.XmlSchema(namespace = "http://ws.medac.com/")
2 | package com.medac.ws;
3 |
--------------------------------------------------------------------------------
/Cliente04AppWebJSP/build/web/META-INF/MANIFEST.MF:
--------------------------------------------------------------------------------
1 | Manifest-Version: 1.0
2 |
3 |
--------------------------------------------------------------------------------
/Cliente04AppWebJSP/build/web/WEB-INF/classes/com/medac/ws/CalculatorService.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Cliente04AppWebJSP/build/web/WEB-INF/classes/com/medac/ws/CalculatorService.class
--------------------------------------------------------------------------------
/Cliente04AppWebJSP/build/web/WEB-INF/classes/com/medac/ws/CalculatorService_Service.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Cliente04AppWebJSP/build/web/WEB-INF/classes/com/medac/ws/CalculatorService_Service.class
--------------------------------------------------------------------------------
/Cliente04AppWebJSP/build/web/WEB-INF/classes/com/medac/ws/Divide.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Cliente04AppWebJSP/build/web/WEB-INF/classes/com/medac/ws/Divide.class
--------------------------------------------------------------------------------
/Cliente04AppWebJSP/build/web/WEB-INF/classes/com/medac/ws/DivideResponse.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Cliente04AppWebJSP/build/web/WEB-INF/classes/com/medac/ws/DivideResponse.class
--------------------------------------------------------------------------------
/Cliente04AppWebJSP/build/web/WEB-INF/classes/com/medac/ws/Multiplica.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Cliente04AppWebJSP/build/web/WEB-INF/classes/com/medac/ws/Multiplica.class
--------------------------------------------------------------------------------
/Cliente04AppWebJSP/build/web/WEB-INF/classes/com/medac/ws/MultiplicaResponse.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Cliente04AppWebJSP/build/web/WEB-INF/classes/com/medac/ws/MultiplicaResponse.class
--------------------------------------------------------------------------------
/Cliente04AppWebJSP/build/web/WEB-INF/classes/com/medac/ws/ObjectFactory.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Cliente04AppWebJSP/build/web/WEB-INF/classes/com/medac/ws/ObjectFactory.class
--------------------------------------------------------------------------------
/Cliente04AppWebJSP/build/web/WEB-INF/classes/com/medac/ws/Potencia.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Cliente04AppWebJSP/build/web/WEB-INF/classes/com/medac/ws/Potencia.class
--------------------------------------------------------------------------------
/Cliente04AppWebJSP/build/web/WEB-INF/classes/com/medac/ws/PotenciaResponse.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Cliente04AppWebJSP/build/web/WEB-INF/classes/com/medac/ws/PotenciaResponse.class
--------------------------------------------------------------------------------
/Cliente04AppWebJSP/build/web/WEB-INF/classes/com/medac/ws/Resta.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Cliente04AppWebJSP/build/web/WEB-INF/classes/com/medac/ws/Resta.class
--------------------------------------------------------------------------------
/Cliente04AppWebJSP/build/web/WEB-INF/classes/com/medac/ws/RestaResponse.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Cliente04AppWebJSP/build/web/WEB-INF/classes/com/medac/ws/RestaResponse.class
--------------------------------------------------------------------------------
/Cliente04AppWebJSP/build/web/WEB-INF/classes/com/medac/ws/Suma.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Cliente04AppWebJSP/build/web/WEB-INF/classes/com/medac/ws/Suma.class
--------------------------------------------------------------------------------
/Cliente04AppWebJSP/build/web/WEB-INF/classes/com/medac/ws/SumaResponse.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Cliente04AppWebJSP/build/web/WEB-INF/classes/com/medac/ws/SumaResponse.class
--------------------------------------------------------------------------------
/Cliente04AppWebJSP/build/web/WEB-INF/classes/com/medac/ws/package-info.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Cliente04AppWebJSP/build/web/WEB-INF/classes/com/medac/ws/package-info.class
--------------------------------------------------------------------------------
/Cliente04AppWebJSP/build/web/WEB-INF/jax-ws-catalog.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/Cliente04AppWebJSP/build/web/WEB-INF/sun-web.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | Keep a copy of the generated servlet class' java code.
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/Cliente04AppWebJSP/build/web/gfv3ee6.dpf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Cliente04AppWebJSP/build/web/gfv3ee6.dpf
--------------------------------------------------------------------------------
/Cliente04AppWebJSP/build/web/index.html:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
9 | TODO supply a title
10 |
11 |
12 |
13 |
14 | Cliente de Servicio Aplicacion Web con JSP
15 |
16 |
17 |
--------------------------------------------------------------------------------
/Cliente04AppWebJSP/catalog.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/Cliente04AppWebJSP/nbproject/genfiles.properties:
--------------------------------------------------------------------------------
1 | build.xml.data.CRC32=10fe6ee7
2 | build.xml.script.CRC32=5dfbf224
3 | build.xml.stylesheet.CRC32=651128d4@1.68.1.1
4 | # This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
5 | # Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
6 | nbproject/build-impl.xml.data.CRC32=10fe6ee7
7 | nbproject/build-impl.xml.script.CRC32=a7a8600e
8 | nbproject/build-impl.xml.stylesheet.CRC32=99ea4b56@1.68.1.1
9 | nbproject/jaxws-build.xml.stylesheet.CRC32=6608c2cf
10 |
--------------------------------------------------------------------------------
/Cliente04AppWebJSP/nbproject/jax-ws.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | http://localhost:8080/CalculadoraWS/CalculatorService?wsdl
7 | localhost_8080/CalculadoraWS/CalculatorService.wsdl
8 | com.medac.ws
9 | catalog.xml
10 |
11 |
12 | extension
13 | true
14 |
15 |
16 | verbose
17 | true
18 |
19 |
20 | fork
21 | false
22 |
23 |
24 | wsdlLocation
25 | http://localhost:8080/CalculadoraWS/CalculatorService?wsdl
26 |
27 |
28 | xnocompile
29 | true
30 |
31 |
32 | xendorsed
33 | true
34 |
35 |
36 |
37 |
38 |
39 |
--------------------------------------------------------------------------------
/Cliente04AppWebJSP/nbproject/private/private.properties:
--------------------------------------------------------------------------------
1 | deploy.ant.properties.file=C:\\Users\\MEDAC\\AppData\\Roaming\\NetBeans\\8.0.2\\config\\GlassFishEE6\\Properties\\gfv31007985342.properties
2 | j2ee.platform.is.jsr109=true
3 | j2ee.server.domain=C:/Users/MEDAC/AppData/Roaming/NetBeans/8.0.2/config/GF_4.1/domain1
4 | j2ee.server.home=C:/Program Files/glassfish-4.1/glassfish
5 | j2ee.server.instance=[C:\\Program Files\\glassfish-4.1\\glassfish;C:\\Program Files\\glassfish-4.1\\glassfish\\domains\\domain1]deployer:gfv3ee6:localhost:4848
6 | j2ee.server.middleware=C:/Program Files/glassfish-4.1
7 | user.properties.file=C:\\Users\\MEDAC\\AppData\\Roaming\\NetBeans\\8.0.2\\build.properties
8 |
--------------------------------------------------------------------------------
/Cliente04AppWebJSP/nbproject/private/private.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | file:/C:/Users/MEDAC/Documents/NetBeansProjects/Cliente04AppWebJSP/web/mijsp.jsp
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/Cliente04AppWebJSP/nbproject/project.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | org.netbeans.modules.web.project
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 | Cliente04AppWebJSP
12 | 1.6.5
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/Cliente04AppWebJSP/src/conf/MANIFEST.MF:
--------------------------------------------------------------------------------
1 | Manifest-Version: 1.0
2 |
3 |
--------------------------------------------------------------------------------
/Cliente04AppWebJSP/web/WEB-INF/jax-ws-catalog.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/Cliente04AppWebJSP/web/index.html:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
9 | TODO supply a title
10 |
11 |
12 |
13 |
14 | Cliente de Servicio Aplicacion Web con JSP
15 |
16 |
17 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # PSP
2 | Ejercicios de práctica y pruebas
3 |
--------------------------------------------------------------------------------
/Tema_03_ejemplos/build/classes/casopractico/CasoPractico.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Tema_03_ejemplos/build/classes/casopractico/CasoPractico.class
--------------------------------------------------------------------------------
/Tema_03_ejemplos/build/classes/ejemplo01/LanzarProcesosPBuilder.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Tema_03_ejemplos/build/classes/ejemplo01/LanzarProcesosPBuilder.class
--------------------------------------------------------------------------------
/Tema_03_ejemplos/build/classes/ejemplo02/LanzarProcesosRuntime.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Tema_03_ejemplos/build/classes/ejemplo02/LanzarProcesosRuntime.class
--------------------------------------------------------------------------------
/Tema_03_ejemplos/build/classes/ejemplo03/MiProcessBuilder.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Tema_03_ejemplos/build/classes/ejemplo03/MiProcessBuilder.class
--------------------------------------------------------------------------------
/Tema_03_ejemplos/build/classes/ejemplo04/MiProcessTerminarTeclado.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Tema_03_ejemplos/build/classes/ejemplo04/MiProcessTerminarTeclado.class
--------------------------------------------------------------------------------
/Tema_03_ejemplos/build/classes/ejemplo05/ProcesoHijo.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Tema_03_ejemplos/build/classes/ejemplo05/ProcesoHijo.class
--------------------------------------------------------------------------------
/Tema_03_ejemplos/build/classes/ejemplo05/ProcesoPadre.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Tema_03_ejemplos/build/classes/ejemplo05/ProcesoPadre.class
--------------------------------------------------------------------------------
/Tema_03_ejemplos/build/classes/ejemplo06/ProcesoHijo2.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Tema_03_ejemplos/build/classes/ejemplo06/ProcesoHijo2.class
--------------------------------------------------------------------------------
/Tema_03_ejemplos/build/classes/ejemplo06/ProcesoPadre2.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Tema_03_ejemplos/build/classes/ejemplo06/ProcesoPadre2.class
--------------------------------------------------------------------------------
/Tema_03_ejemplos/build/classes/ejemplo07/ProcesoBash$1.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Tema_03_ejemplos/build/classes/ejemplo07/ProcesoBash$1.class
--------------------------------------------------------------------------------
/Tema_03_ejemplos/build/classes/ejemplo07/ProcesoBash.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Tema_03_ejemplos/build/classes/ejemplo07/ProcesoBash.class
--------------------------------------------------------------------------------
/Tema_03_ejemplos/build/classes/tema_03_ejemplos/ProcessBuilder_Enviroment.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Tema_03_ejemplos/build/classes/tema_03_ejemplos/ProcessBuilder_Enviroment.class
--------------------------------------------------------------------------------
/Tema_03_ejemplos/build/classes/tema_03_ejemplos/Runtime_Enviroment.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Tema_03_ejemplos/build/classes/tema_03_ejemplos/Runtime_Enviroment.class
--------------------------------------------------------------------------------
/Tema_03_ejemplos/nbproject/genfiles.properties:
--------------------------------------------------------------------------------
1 | build.xml.data.CRC32=e2a4ceb4
2 | build.xml.script.CRC32=d52d5ccd
3 | build.xml.stylesheet.CRC32=f85dc8f2@1.110.0.48
4 | # This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
5 | # Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
6 | nbproject/build-impl.xml.data.CRC32=e2a4ceb4
7 | nbproject/build-impl.xml.script.CRC32=0b803b7e
8 | nbproject/build-impl.xml.stylesheet.CRC32=12e0a6c2@1.110.0.48
9 |
--------------------------------------------------------------------------------
/Tema_03_ejemplos/nbproject/private/config.properties:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Tema_03_ejemplos/nbproject/private/config.properties
--------------------------------------------------------------------------------
/Tema_03_ejemplos/nbproject/private/private.properties:
--------------------------------------------------------------------------------
1 | compile.on.save=true
2 | do.depend=false
3 | do.jar=true
4 | do.jlink=false
5 | javac.debug=true
6 | javadoc.preview=true
7 | jlink.strip=false
8 | user.properties.file=C:\\Users\\aWa\\AppData\\Roaming\\NetBeans\\21\\build.properties
9 |
--------------------------------------------------------------------------------
/Tema_03_ejemplos/nbproject/private/private.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/Tema_03_ejemplos/nbproject/project.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | org.netbeans.modules.java.j2seproject
4 |
5 |
6 | Tema_03_ejemplos
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/Tema_03_ejemplos/src/ejemplo05/ProcesoHijo.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
3 | * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template
4 | */
5 | package ejemplo05;
6 |
7 | /**
8 | *
9 | * @author aWa
10 | */
11 | public class ProcesoHijo {
12 |
13 | public int sumar(int inicio, int fin) {
14 | int total = 0;
15 | for(int i = inicio; i <= fin; i++) {
16 | System.out.println("total: " + total + " valor a sumar: " + i);
17 | total = total + i;
18 | }
19 | return total;
20 | }
21 | public static void main(String[] args) {
22 | int nInicio,nFin;
23 |
24 | if(args.length == 0 || args.length > 2) {
25 | nInicio = Integer.parseInt("0");
26 | nFin = Integer.parseInt("0");
27 | } else {
28 | nInicio = Integer.parseInt(args[0]);
29 | nFin = Integer.parseInt(args[1]);
30 | }
31 |
32 | ProcesoHijo ph = new ProcesoHijo();
33 | int resultado = ph.sumar(nInicio, nFin);
34 |
35 | System.out.println("Resultado: " + resultado);
36 | }
37 | }//end class
38 |
--------------------------------------------------------------------------------
/Tema_03_ejemplos/src/ejemplo06/ProcesoHijo2.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
3 | * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template
4 | */
5 | package ejemplo06;
6 |
7 |
8 | /**
9 | *
10 | * @author aWa
11 | */
12 | public class ProcesoHijo2 {
13 | public int sumar(int inicio, int fin) {
14 | int total = 0;
15 | for(int i = inicio; i <= fin; i++) {
16 | System.out.println("total: " + total + " valor a sumar: " + i);
17 | total = total + i;
18 | }
19 | return total;
20 | }
21 | public static void main(String[] args) {
22 | int nInicio,nFin;
23 |
24 | if(args.length == 0 || args.length > 2) {
25 | nInicio = Integer.parseInt("0");
26 | nFin = Integer.parseInt("0");
27 | } else {
28 | nInicio = Integer.parseInt(args[0]);
29 | nFin = Integer.parseInt(args[1]);
30 | }
31 |
32 | ProcesoHijo2 ph = new ProcesoHijo2();
33 | int resultado = ph.sumar(nInicio, nFin);
34 |
35 | System.out.println("v2 - Resultado version 2: " + resultado);
36 | }
37 | }
38 |
--------------------------------------------------------------------------------
/Tema_03_ejemplos/src/tema_03_ejemplos/ProcessBuilder_Enviroment.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Clase representativa de un proceso en Java.
3 | * Process (https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Process.html)
4 | *
5 | * Creación de un proceso usando ProcessBuilder
6 | */
7 | package tema_03_ejemplos;
8 |
9 | import java.io.IOException;
10 | import java.util.Map;
11 | import java.util.logging.Level;
12 | import java.util.logging.Logger;
13 |
14 | /**
15 | * Propiedades del sistema - Variables del sistema.
16 | * @author aWa
17 | */
18 | public class ProcessBuilder_Enviroment {
19 |
20 | public static void main(String... args) {
21 | ProcessBuilder pb = new ProcessBuilder("notepad.exe");
22 | Map env = pb.environment();
23 | for(var e: env.entrySet()) {
24 | System.out.println(e.getKey() + " " + e.getValue());
25 | }
26 |
27 | try {
28 | Process p = pb.start();
29 | System.out.println(p.isAlive());
30 |
31 | int estado = p.waitFor();
32 |
33 | System.out.println("Estado del proceso: "+ estado);
34 |
35 | p.destroy();
36 |
37 | } catch (IOException | InterruptedException ex) {
38 | Logger.getLogger(ProcessBuilder_Enviroment.class.getName()).log(Level.SEVERE, null, ex);
39 | }
40 | }//end main
41 |
42 |
43 | }
44 |
--------------------------------------------------------------------------------
/Tema_03_ejemplos/src/tema_03_ejemplos/Runtime_Enviroment.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
3 | * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template
4 | */
5 | package tema_03_ejemplos;
6 |
7 | import java.io.IOException;
8 | import java.util.Map;
9 | import java.util.logging.Level;
10 | import java.util.logging.Logger;
11 |
12 | /**
13 | *
14 | * @author aWa
15 | */
16 | public class Runtime_Enviroment {
17 |
18 | public static void main(String[] args) {
19 | try {
20 | Process p = Runtime.getRuntime().exec("notepad.exe");
21 |
22 | Map env = System.getenv();
23 | for (var e : env.entrySet()) {
24 | System.out.println(e.getKey() + " " + e.getValue());
25 | }
26 |
27 | System.out.println(p.isAlive());
28 |
29 | int estado = p.waitFor();
30 |
31 | System.out.println("Estado del proceso: " + estado);
32 |
33 | p.destroy();
34 |
35 | } catch (IOException | InterruptedException ex) {
36 | Logger.getLogger(Runtime_Enviroment.class.getName()).log(Level.SEVERE, null, ex);
37 | }
38 | }//end main
39 |
40 | }
41 |
--------------------------------------------------------------------------------
/Tema_04_ejemplos/build/classes/t04/ejemplo01/EjemploCrearHiloRunnable.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Tema_04_ejemplos/build/classes/t04/ejemplo01/EjemploCrearHiloRunnable.class
--------------------------------------------------------------------------------
/Tema_04_ejemplos/build/classes/t04/ejemplo01/EjemploCrearHiloThread.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Tema_04_ejemplos/build/classes/t04/ejemplo01/EjemploCrearHiloThread.class
--------------------------------------------------------------------------------
/Tema_04_ejemplos/build/classes/t04/ejemplo02/HiloSaluda.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Tema_04_ejemplos/build/classes/t04/ejemplo02/HiloSaluda.class
--------------------------------------------------------------------------------
/Tema_04_ejemplos/build/classes/t04/ejemplo02/MultiplesHilos.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Tema_04_ejemplos/build/classes/t04/ejemplo02/MultiplesHilos.class
--------------------------------------------------------------------------------
/Tema_04_ejemplos/build/classes/t04/ejemplo03/BloqueSincronizado.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Tema_04_ejemplos/build/classes/t04/ejemplo03/BloqueSincronizado.class
--------------------------------------------------------------------------------
/Tema_04_ejemplos/build/classes/t04/ejemplo03/EntraJardin.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Tema_04_ejemplos/build/classes/t04/ejemplo03/EntraJardin.class
--------------------------------------------------------------------------------
/Tema_04_ejemplos/build/classes/t04/ejemplo03/RecurosJardin.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Tema_04_ejemplos/build/classes/t04/ejemplo03/RecurosJardin.class
--------------------------------------------------------------------------------
/Tema_04_ejemplos/build/classes/t04/ejemplo03/SaleJardin.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Tema_04_ejemplos/build/classes/t04/ejemplo03/SaleJardin.class
--------------------------------------------------------------------------------
/Tema_04_ejemplos/manifest.mf:
--------------------------------------------------------------------------------
1 | Manifest-Version: 1.0
2 | X-COMMENT: Main-Class will be added automatically by build
3 |
4 |
--------------------------------------------------------------------------------
/Tema_04_ejemplos/nbproject/genfiles.properties:
--------------------------------------------------------------------------------
1 | build.xml.data.CRC32=d492c67b
2 | build.xml.script.CRC32=17bba5a2
3 | build.xml.stylesheet.CRC32=f85dc8f2@1.110.0.48
4 | # This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
5 | # Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
6 | nbproject/build-impl.xml.data.CRC32=d492c67b
7 | nbproject/build-impl.xml.script.CRC32=d54317e6
8 | nbproject/build-impl.xml.stylesheet.CRC32=12e0a6c2@1.110.0.48
9 |
--------------------------------------------------------------------------------
/Tema_04_ejemplos/nbproject/private/private.properties:
--------------------------------------------------------------------------------
1 | compile.on.save=true
2 | user.properties.file=C:\\Users\\aWa\\AppData\\Roaming\\NetBeans\\21\\build.properties
3 |
--------------------------------------------------------------------------------
/Tema_04_ejemplos/nbproject/private/private.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/Tema_04_ejemplos/nbproject/project.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | org.netbeans.modules.java.j2seproject
4 |
5 |
6 | Tema_04_ejemplos
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/Tema_04_ejemplos/src/t04/ejemplo01/EjemploCrearHiloRunnable.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
3 | * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template
4 | */
5 | package t04.ejemplo01;
6 |
7 | /**
8 | *
9 | * @author aWa
10 | */
11 | public class EjemploCrearHiloRunnable implements Runnable{
12 | public static void main(String[] args) {
13 | // Creamos un hilo
14 | EjemploCrearHiloThread ech = new EjemploCrearHiloThread();
15 | Thread hilo = new Thread(ech);
16 |
17 | hilo.start();
18 | }
19 | @Override
20 | public void run() {
21 | System.out.println("Hola desde el hilo creado con Runnable!!");
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/Tema_04_ejemplos/src/t04/ejemplo01/EjemploCrearHiloThread.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
3 | * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Main.java to edit this template
4 | */
5 | package t04.ejemplo01;
6 |
7 | import java.util.ArrayList;
8 | import java.util.List;
9 | import java.util.logging.Level;
10 | import java.util.logging.Logger;
11 |
12 | /**
13 | *
14 | * @author aWa
15 | */
16 | public class EjemploCrearHiloThread extends Thread {
17 |
18 | private final List infoList = new ArrayList<>();
19 | /**
20 | * @param args the command line arguments
21 | */
22 | public static void main(String[] args) {
23 | // Creamos un hilo
24 | EjemploCrearHiloThread ech = new EjemploCrearHiloThread();
25 | ech.start();
26 | }
27 | public EjemploCrearHiloThread() {
28 | infoList.add("Informacion uno");
29 | infoList.add("Mensaje dos");
30 | infoList.add("Informacion tres");
31 | infoList.add("Informacion importante");
32 | }
33 | @Override
34 | public void run() {
35 | System.out.println("Hola desde el hilo creado con Thread!!");
36 |
37 | infoList.forEach( info -> {
38 | try {
39 | Thread.sleep(1000);
40 | System.out.println(info);
41 | } catch (InterruptedException ex) {
42 | Logger.getLogger(EjemploCrearHiloThread.class.getName()).log(Level.SEVERE, null, ex);
43 | }
44 | });
45 | }
46 |
47 | }
48 |
--------------------------------------------------------------------------------
/Tema_04_ejemplos/src/t04/ejemplo02/HiloSaluda.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
3 | * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template
4 | */
5 | package t04.ejemplo02;
6 |
7 | import java.util.logging.Level;
8 | import java.util.logging.Logger;
9 |
10 | /**
11 | *
12 | * @author aWa
13 | */
14 | public class HiloSaluda extends Thread {
15 | private String nombre;
16 | private int delay;
17 |
18 | public HiloSaluda(String n, int d) {
19 | this.nombre = n;
20 | this.delay = d;
21 | }
22 | @Override
23 | public void run() {
24 | try {
25 | sleep(this.delay);
26 | System.out.println("Hola desde " + this.nombre + " " + this.delay + " ms");
27 | } catch (InterruptedException ex) {
28 | Logger.getLogger(HiloSaluda.class.getName()).log(Level.SEVERE, null, ex);
29 | }
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/Tema_04_ejemplos/src/t04/ejemplo02/MultiplesHilos.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
3 | * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template
4 | */
5 | package t04.ejemplo02;
6 |
7 | /**
8 | *
9 | * @author aWa
10 | */
11 | public class MultiplesHilos {
12 |
13 | public static void main(String[] args) {
14 | HiloSaluda hs1 = new HiloSaluda("Hilo 1", (int)(Math.random()*2000));
15 | HiloSaluda hs2 = new HiloSaluda("Hilo 2", (int)(Math.random()*2000));
16 | HiloSaluda hs3 = new HiloSaluda("Hilo 3", (int)(Math.random()*2000));
17 |
18 | hs1.start();
19 | hs2.start();
20 | hs3.start();
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/Tema_04_ejemplos/src/t04/ejemplo03/BloqueSincronizado.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
3 | * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template
4 | */
5 | package t04.ejemplo03;
6 |
7 | /**
8 | *
9 | * @author aWa
10 | */
11 | public class BloqueSincronizado {
12 | public static void main(String[] args) {
13 | RecurosJardin jardin = new RecurosJardin();
14 |
15 | for(int i = 1; i <= 10; i++) {
16 | EntraJardin ej = new EntraJardin("Entra " + i, jardin);
17 | ej.start();
18 | }
19 | for(int j = 1; j <= 15; j++) {
20 | SaleJardin sj = new SaleJardin("Sale " + j, jardin);
21 | sj.start();
22 | }
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/Tema_04_ejemplos/src/t04/ejemplo03/EntraJardin.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
3 | * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template
4 | */
5 | package t04.ejemplo03;
6 |
7 | import java.util.logging.Level;
8 | import java.util.logging.Logger;
9 |
10 | /**
11 | *
12 | * @author aWa
13 | */
14 | public class EntraJardin extends Thread {
15 |
16 | private final RecurosJardin jardin;
17 |
18 | public EntraJardin(String n, RecurosJardin rj) {
19 | this.setName(n);
20 | this.jardin = rj;
21 | }
22 | @Override
23 | public void run() {
24 | //synchronized (jardin) {
25 |
26 | jardin.incrementa();
27 |
28 | //}
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/Tema_04_ejemplos/src/t04/ejemplo03/RecurosJardin.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
3 | * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template
4 | */
5 | package t04.ejemplo03;
6 |
7 | /**
8 | *
9 | * @author aWa
10 | */
11 | class RecurosJardin {
12 | private int cuenta = 0;
13 | public RecurosJardin() {
14 | this.cuenta = 100;
15 | }
16 | //public synchronized void incrementa() {
17 | public void incrementa() {
18 | System.out.println("Hilo " + Thread.currentThread().getName());
19 | this.cuenta = this.cuenta + 1;
20 | System.out.println(this.cuenta + " en el jardin " + Thread.currentThread().getName());
21 | }
22 | //public synchronized void decrementa() {
23 | public void decrementa() {
24 | System.out.println("Hilo " + Thread.currentThread().getName());
25 | this.cuenta = this.cuenta - 1;
26 | System.out.println(this.cuenta + " en el jardin " + Thread.currentThread().getName());
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/Tema_04_ejemplos/src/t04/ejemplo03/SaleJardin.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
3 | * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template
4 | */
5 | package t04.ejemplo03;
6 |
7 | import java.util.logging.Level;
8 | import java.util.logging.Logger;
9 |
10 | /**
11 | *
12 | * @author aWa
13 | */
14 | public class SaleJardin extends Thread {
15 |
16 | private final RecurosJardin jardin;
17 |
18 | public SaleJardin(String n, RecurosJardin rj) {
19 | this.setName(n);
20 | this.jardin = rj;
21 | }
22 |
23 | @Override
24 | public void run() {
25 | //synchronized (jardin) {
26 |
27 | /*try {
28 | sleep(1000);
29 | } catch (InterruptedException ex) {
30 | Logger.getLogger(EntraJardin.class.getName()).log(Level.SEVERE, null, ex);
31 | }*/
32 | jardin.decrementa();
33 | //}
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/Tema_05_ejemplos/build/classes/t05/ejemplo01/CrearHiloClaseAnonima$1.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Tema_05_ejemplos/build/classes/t05/ejemplo01/CrearHiloClaseAnonima$1.class
--------------------------------------------------------------------------------
/Tema_05_ejemplos/build/classes/t05/ejemplo01/CrearHiloClaseAnonima.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Tema_05_ejemplos/build/classes/t05/ejemplo01/CrearHiloClaseAnonima.class
--------------------------------------------------------------------------------
/Tema_05_ejemplos/build/classes/t05/ejemplo01/CrearHiloUsandoLambda.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Tema_05_ejemplos/build/classes/t05/ejemplo01/CrearHiloUsandoLambda.class
--------------------------------------------------------------------------------
/Tema_05_ejemplos/build/classes/t05/ejemplo02/HiloCuentaAtras.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Tema_05_ejemplos/build/classes/t05/ejemplo02/HiloCuentaAtras.class
--------------------------------------------------------------------------------
/Tema_05_ejemplos/build/classes/t05/ejemplo02/Main.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Tema_05_ejemplos/build/classes/t05/ejemplo02/Main.class
--------------------------------------------------------------------------------
/Tema_05_ejemplos/build/classes/t05/ejemplo03/Clock.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Tema_05_ejemplos/build/classes/t05/ejemplo03/Clock.class
--------------------------------------------------------------------------------
/Tema_05_ejemplos/build/classes/t05/ejemplo03/Main.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Tema_05_ejemplos/build/classes/t05/ejemplo03/Main.class
--------------------------------------------------------------------------------
/Tema_05_ejemplos/build/classes/t05/ejemplo04/EscritorLibro.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Tema_05_ejemplos/build/classes/t05/ejemplo04/EscritorLibro.class
--------------------------------------------------------------------------------
/Tema_05_ejemplos/build/classes/t05/ejemplo04/LectorLibro.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Tema_05_ejemplos/build/classes/t05/ejemplo04/LectorLibro.class
--------------------------------------------------------------------------------
/Tema_05_ejemplos/build/classes/t05/ejemplo04/Libro.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Tema_05_ejemplos/build/classes/t05/ejemplo04/Libro.class
--------------------------------------------------------------------------------
/Tema_05_ejemplos/build/classes/t05/ejemplo04/Main.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Tema_05_ejemplos/build/classes/t05/ejemplo04/Main.class
--------------------------------------------------------------------------------
/Tema_05_ejemplos/nbproject/genfiles.properties:
--------------------------------------------------------------------------------
1 | build.xml.data.CRC32=9b88a9f9
2 | build.xml.script.CRC32=7ff737c0
3 | build.xml.stylesheet.CRC32=f85dc8f2@1.110.0.48
4 | # This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
5 | # Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
6 | nbproject/build-impl.xml.data.CRC32=9b88a9f9
7 | nbproject/build-impl.xml.script.CRC32=33331b23
8 | nbproject/build-impl.xml.stylesheet.CRC32=12e0a6c2@1.110.0.48
9 |
--------------------------------------------------------------------------------
/Tema_05_ejemplos/nbproject/private/private.properties:
--------------------------------------------------------------------------------
1 | compile.on.save=true
2 | user.properties.file=C:\\Users\\aWa\\AppData\\Roaming\\NetBeans\\21\\build.properties
3 |
--------------------------------------------------------------------------------
/Tema_05_ejemplos/nbproject/private/private.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/Tema_05_ejemplos/nbproject/project.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | org.netbeans.modules.java.j2seproject
4 |
5 |
6 | Tema_05_ejemplos
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/Tema_05_ejemplos/src/t05/ejemplo01/CrearHiloClaseAnonima.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
3 | * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template
4 | */
5 | package t05.ejemplo01;
6 |
7 | /**
8 | *
9 | * @author aWa
10 | */
11 | public class CrearHiloClaseAnonima {
12 | public static void main(String... args) {
13 | Runnable a = new Runnable() {
14 | @Override
15 | public void run() {
16 | System.out.println("Hola desde el hilo creado con clase anonima! ");
17 | }
18 | };
19 | Thread hilo = new Thread(a);
20 | hilo.start();
21 |
22 |
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/Tema_05_ejemplos/src/t05/ejemplo01/CrearHiloUsandoLambda.java:
--------------------------------------------------------------------------------
1 | package t05.ejemplo01;
2 |
3 | import java.util.logging.Level;
4 | import java.util.logging.Logger;
5 |
6 | /**
7 | * https://codegym.cc/es/groups/posts/es.250.una-explicacion-de-las-expresiones-lambda-en-java-con-ejemplos-y-tareas-parte-1
8 | * https://docs.oracle.com/javase/tutorial/java/javaOO/lambdaexpressions.html#approach6
9 | * @author aWa
10 | */
11 | public class CrearHiloUsandoLambda {
12 | public static void main(String[] args) {
13 | //(parameters) -> {method body}
14 | Runnable runnable = () -> {System.out.println("Hola desde el hilo creado con Lambda ");};
15 | Thread hilo = new Thread( runnable);
16 | hilo.start();
17 |
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/Tema_05_ejemplos/src/t05/ejemplo02/HiloCuentaAtras.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
3 | * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template
4 | */
5 | package t05.ejemplo02;
6 |
7 | /**
8 | *
9 | * @author aWa
10 | */
11 | public class HiloCuentaAtras implements Runnable {
12 | private int cuenta = 10;
13 | private int id = 0;
14 |
15 | public HiloCuentaAtras(int c) {
16 | this.cuenta = c;
17 | this.id = (int)(Math.random() * 101); // 0 to 100
18 | }
19 | @Override
20 | public void run() {
21 | while(this.cuenta > 0) {
22 | System.out.println("#" + id + "# valor (" + this.cuenta + ") " +
23 | " Hilo en ejecucion: " + Thread.currentThread().getName());
24 | this.cuenta = this.cuenta - 1;
25 | }
26 | }
27 |
28 | }
29 |
--------------------------------------------------------------------------------
/Tema_05_ejemplos/src/t05/ejemplo02/Main.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
3 | * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template
4 | */
5 | package t05.ejemplo02;
6 |
7 | /**
8 | *
9 | * @author aWa
10 | */
11 | public class Main {
12 | public static void main(String[] args) {
13 |
14 |
15 | HiloCuentaAtras hca1 = new HiloCuentaAtras(10);
16 | HiloCuentaAtras hca2 = new HiloCuentaAtras(10);
17 |
18 | //Llamando a la función run()
19 | System.out.println("--Empiezo--");
20 | hca1.run();
21 | System.out.println("--Ejecuto el siguiente--");
22 | hca2.run();
23 |
24 | //Llamando a la función start()
25 | Thread uno = new Thread(new HiloCuentaAtras(10));
26 | Thread dos = new Thread(new HiloCuentaAtras(10));
27 |
28 | System.out.println("--Empiezo--");
29 | uno.start();
30 | //Llamo a un hilo que ya está en ejecucion // uno.start();
31 | System.out.println("--Ejecuto el siguiente--");
32 | dos.start();
33 |
34 | }
35 |
36 | }
37 |
--------------------------------------------------------------------------------
/Tema_05_ejemplos/src/t05/ejemplo03/Clock.java:
--------------------------------------------------------------------------------
1 |
2 | package t05.ejemplo03;
3 |
4 | import java.util.logging.Level;
5 | import java.util.logging.Logger;
6 |
7 | /**
8 | * https://codegym.cc/es/quests/lectures/es.questmultithreading.level05.lecture06
9 | * @author aWa
10 | */
11 | public class Clock implements Runnable {
12 |
13 | @Override
14 | public void run() {
15 | try {
16 | Thread hiloactual = Thread.currentThread();
17 | while (!hiloactual.isInterrupted()) {
18 | Thread.sleep(1000);
19 | System.out.println("Tick!");
20 | }
21 | } catch (InterruptedException ex) {
22 | Logger.getLogger(Clock.class.getName()).log(Level.SEVERE, null, ex);
23 | }
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/Tema_05_ejemplos/src/t05/ejemplo03/Main.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
3 | * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template
4 | */
5 | package t05.ejemplo03;
6 |
7 | import java.util.logging.Level;
8 | import java.util.logging.Logger;
9 |
10 | /**
11 | *
12 | * @author aWa
13 | */
14 | public class Main {
15 | public static void main(String[] args) {
16 | try {
17 | Clock reloj = new Clock();
18 |
19 | Thread hilo = new Thread(reloj);
20 | hilo.start();
21 | //Quiero interrumpit la ejecución del hilo después de 10 segundos
22 | Thread.sleep(10000);
23 | hilo.interrupt();
24 | } catch (InterruptedException ex) {
25 | Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex);
26 | }
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/Tema_05_ejemplos/src/t05/ejemplo04/EscritorLibro.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
3 | * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template
4 | */
5 | package t05.ejemplo04;
6 |
7 | import java.util.logging.Level;
8 | import java.util.logging.Logger;
9 |
10 | /**
11 | *
12 | * @author aWa
13 | */
14 | public class EscritorLibro implements Runnable {
15 | private final Libro libro;
16 | public EscritorLibro(Libro libro) {
17 | this.libro = libro;
18 | }
19 |
20 | @Override
21 | public void run() {
22 | synchronized (libro) {
23 | System.out.println("[Escritor] El escritor comienza el libro: " + libro.getTitulo());
24 | try {
25 | Thread.sleep(7000);
26 | } catch (InterruptedException ex) {
27 | Logger.getLogger(EscritorLibro.class.getName()).log(Level.SEVERE, null, ex);
28 | }
29 | libro.setCompleted(true);
30 | System.out.println("[Escritor] El escritor finaliza el libro!!! ");
31 | libro.notify(); //notifica
32 | //libro.notifyAll(); //notifica
33 | System.out.println("[Escritor] Notificacion al lector");
34 | }
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/Tema_05_ejemplos/src/t05/ejemplo04/Libro.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
3 | * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template
4 | */
5 | package t05.ejemplo04;
6 |
7 | /**
8 | *
9 | * @author aWa
10 | */
11 | public class Libro {
12 | private String titulo;
13 | private boolean isCompleted;
14 | public Libro(String titulo) {
15 | this.titulo = titulo;
16 | }
17 |
18 | /**
19 | * @return the titulo
20 | */
21 | public String getTitulo() {
22 | return titulo;
23 | }
24 |
25 | /**
26 | * @param titulo the titulo to set
27 | */
28 | public void setTitulo(String titulo) {
29 | this.titulo = titulo;
30 | }
31 |
32 | /**
33 | * @return the isCompleted
34 | */
35 | public boolean isCompleted() {
36 | return isCompleted;
37 | }
38 |
39 | /**
40 | * @param isCompleted the isCompleted to set
41 | */
42 | public void setCompleted(boolean isCompleted) {
43 | this.isCompleted = isCompleted;
44 | }
45 | }
46 |
--------------------------------------------------------------------------------
/Tema_05_ejemplos/src/t05/ejemplo04/Main.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
3 | * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template
4 | */
5 | package t05.ejemplo04;
6 |
7 | /**
8 | *
9 | * @author aWa
10 | */
11 | public class Main {
12 | public static void main(String[] args) {
13 | Libro libro = new Libro("Don Quijote");
14 |
15 | LectorLibro lector1 = new LectorLibro(libro);
16 | LectorLibro lector2 = new LectorLibro(libro);
17 |
18 | Thread lector1Hilo = new Thread(lector1, "[Lector 1]");
19 | Thread lector2Hilo = new Thread(lector2, "[Lector 2]");
20 |
21 | lector1Hilo.start();
22 | lector2Hilo.start();
23 |
24 |
25 | EscritorLibro escritor = new EscritorLibro(libro);
26 |
27 | Thread escritorHilo = new Thread(escritor);
28 |
29 | escritorHilo.start();
30 |
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/Tema_06_ejemplos/build/classes/t06/ejemplo01/MainEjemplo01.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Tema_06_ejemplos/build/classes/t06/ejemplo01/MainEjemplo01.class
--------------------------------------------------------------------------------
/Tema_06_ejemplos/build/classes/t06/ejemplo01/Timbre.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Tema_06_ejemplos/build/classes/t06/ejemplo01/Timbre.class
--------------------------------------------------------------------------------
/Tema_06_ejemplos/build/classes/t06/ejemplo01/Visitante.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Tema_06_ejemplos/build/classes/t06/ejemplo01/Visitante.class
--------------------------------------------------------------------------------
/Tema_06_ejemplos/build/classes/t06/ejemplo02/MainEjemplo02.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Tema_06_ejemplos/build/classes/t06/ejemplo02/MainEjemplo02.class
--------------------------------------------------------------------------------
/Tema_06_ejemplos/build/classes/t06/ejemplo02/Timbre.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Tema_06_ejemplos/build/classes/t06/ejemplo02/Timbre.class
--------------------------------------------------------------------------------
/Tema_06_ejemplos/build/classes/t06/ejemplo02/Visitante.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Tema_06_ejemplos/build/classes/t06/ejemplo02/Visitante.class
--------------------------------------------------------------------------------
/Tema_06_ejemplos/build/classes/t06/ejemplo03/Hilo.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Tema_06_ejemplos/build/classes/t06/ejemplo03/Hilo.class
--------------------------------------------------------------------------------
/Tema_06_ejemplos/build/classes/t06/ejemplo03/MainEjemplo03.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Tema_06_ejemplos/build/classes/t06/ejemplo03/MainEjemplo03.class
--------------------------------------------------------------------------------
/Tema_06_ejemplos/build/classes/t06/ejemplo03/Secuencia.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Tema_06_ejemplos/build/classes/t06/ejemplo03/Secuencia.class
--------------------------------------------------------------------------------
/Tema_06_ejemplos/nbproject/genfiles.properties:
--------------------------------------------------------------------------------
1 | build.xml.data.CRC32=4aa6197f
2 | build.xml.script.CRC32=c7228166
3 | build.xml.stylesheet.CRC32=f85dc8f2@1.110.0.48
4 | # This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
5 | # Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
6 | nbproject/build-impl.xml.data.CRC32=4aa6197f
7 | nbproject/build-impl.xml.script.CRC32=c2d2082d
8 | nbproject/build-impl.xml.stylesheet.CRC32=12e0a6c2@1.110.0.48
9 |
--------------------------------------------------------------------------------
/Tema_06_ejemplos/nbproject/private/private.properties:
--------------------------------------------------------------------------------
1 | compile.on.save=true
2 | user.properties.file=C:\\Users\\aWa\\AppData\\Roaming\\NetBeans\\21\\build.properties
3 |
--------------------------------------------------------------------------------
/Tema_06_ejemplos/nbproject/project.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | org.netbeans.modules.java.j2seproject
4 |
5 |
6 | Tema_06_ejemplos
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/Tema_06_ejemplos/src/t06/ejemplo01/MainEjemplo01.java:
--------------------------------------------------------------------------------
1 | package t06.ejemplo01;
2 |
3 | /**
4 | * Ejemplo de uso del modificador synchronized a nivel de método
5 | *
6 | */
7 | public class MainEjemplo01 {
8 |
9 | public static void main(String[] args) {
10 |
11 | //Objeto timbre donde solo existe uno para anunciar que
12 | //alguien quiere entrar.
13 | //Solamente un visitante puede tocar el timbre, es decir,
14 | //dos visitantes no podrían activar el timbre a la vez
15 | Timbre timbre = new Timbre();
16 |
17 | //Construimos 3 hilos que represntan las visitas que llegan
18 | Thread visita1 = new Thread(new Visitante(timbre));
19 | Thread visita2 = new Thread(new Visitante(timbre));
20 | Thread visita3 = new Thread(new Visitante(timbre));
21 |
22 | //Las visitan están en la puerta y quieren entrar
23 | //comienza la carrera para tocar el timbre
24 | visita1.start();
25 | visita2.start();
26 | visita3.start();
27 | }
28 |
29 | }
30 |
--------------------------------------------------------------------------------
/Tema_06_ejemplos/src/t06/ejemplo01/Timbre.java:
--------------------------------------------------------------------------------
1 | package t06.ejemplo01;
2 |
3 | import java.util.logging.Level;
4 | import java.util.logging.Logger;
5 |
6 | /**
7 | * Clase representativa de un recurso.
8 | * La instancia de este recurso es un monitor.
9 | *
10 | */
11 | public class Timbre {
12 |
13 | /**
14 | * Función del objeto Timbre que hace sonar.
15 | * Esto se representa con dos mensajes por consola, un Ding... Dong...
16 | * Pasan 2 seguntos entre el Ding... y el Dong...
17 | * Utilizamos synchronized a nivel de función.
18 | * Probar a.- sin synchronized y b.- con synchronized
19 | */
20 | //public void tocar() {
21 | public synchronized void tocar() {
22 | System.out.print("Ding ...");
23 | try {
24 | //Espera 2 segundos
25 | Thread.sleep(2000);
26 | } catch (InterruptedException ex) {
27 | Logger.getLogger(Timbre.class.getName()).log(Level.SEVERE, null, ex);
28 | }
29 | System.out.println("Dong ...");
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/Tema_06_ejemplos/src/t06/ejemplo01/Visitante.java:
--------------------------------------------------------------------------------
1 | package t06.ejemplo01;
2 |
3 | /**
4 | * Clase representativa de un visitante que usará el timbre
5 | * Implemnta Runnable
6 | */
7 | public class Visitante implements Runnable{
8 | //Recurso que será utilizado. Debe ser final
9 | final Timbre timbre;
10 |
11 | public Visitante(Timbre t) {
12 | this.timbre = t;
13 | }
14 |
15 | @Override
16 | public void run() {
17 | //Usa el recurso compartido Timbre para hacerlo sonar
18 | //y anunciar que el visitante ha llegado
19 | timbre.tocar();
20 | }
21 |
22 | }
23 |
--------------------------------------------------------------------------------
/Tema_06_ejemplos/src/t06/ejemplo02/MainEjemplo02.java:
--------------------------------------------------------------------------------
1 | package t06.ejemplo02;
2 |
3 |
4 | /**
5 | * Ejemplo de uso del modificador synchronized a nivel de método
6 | *
7 | */
8 | public class MainEjemplo02 {
9 |
10 | public static void main(String[] args) {
11 |
12 | //Objeto timbre donde solo existe uno para anunciar que
13 | //alguien quiere entrar.
14 | //Solamente un visitante puede tocar el timbre, es decir,
15 | //dos visitantes no podrían activar el timbre a la vez
16 | Timbre timbre = new Timbre();
17 |
18 | //Construimos 3 hilos que represntan las visitas que llegan
19 | Thread visita1 = new Thread(new Visitante(timbre));
20 | Thread visita2 = new Thread(new Visitante(timbre));
21 | Thread visita3 = new Thread(new Visitante(timbre));
22 |
23 | //Las visitan están en la puerta y quieren entrar
24 | //comienza la carrera para tocar el timbre
25 | visita1.start();
26 | visita2.start();
27 | visita3.start();
28 | }
29 |
30 | }
31 |
--------------------------------------------------------------------------------
/Tema_06_ejemplos/src/t06/ejemplo02/Timbre.java:
--------------------------------------------------------------------------------
1 | package t06.ejemplo02;
2 |
3 | import java.util.logging.Level;
4 | import java.util.logging.Logger;
5 |
6 | /**
7 | * Clase representativa de un recurso.
8 | * La instancia de este recurso es un monitor.
9 | *
10 | */
11 | public class Timbre {
12 |
13 | /**
14 | * Función del objeto Timbre que hace sonar.
15 | * Esto se representa con dos mensajes por consola, un Ding... Dong...
16 | * Pasan 2 seguntos entre el Ding... y el Dong...
17 | * Utilizamos synchronized a nivel de bloque.
18 | * Al utilizar synchronized(this) {... obtengo el mismo resultado
19 | * que sincronizando a nivel de función ya que this representa la instancia
20 | * de la clase timbre
21 | */
22 | public void tocar() {
23 | //System.out.println("Este codigo no es critico - No esta en bloque sincronizado");
24 | synchronized(this) { /***ver línea 19 de Visitante **/
25 | System.out.print("Ding ...");
26 | try {
27 | //Espera 2 segundos
28 | Thread.sleep(2000);
29 | } catch (InterruptedException ex) {
30 | Logger.getLogger(Timbre.class.getName()).log(Level.SEVERE, null, ex);
31 | }
32 | System.out.println("Dong ...");
33 | }
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/Tema_06_ejemplos/src/t06/ejemplo02/Visitante.java:
--------------------------------------------------------------------------------
1 | package t06.ejemplo02;
2 |
3 | /**
4 | * Clase representativa de un visitante que usará el timbre
5 | * Implemnta Runnable
6 | */
7 | public class Visitante implements Runnable{
8 | //Recurso que será utilizado. Debe ser final
9 | final Timbre timbre;
10 |
11 | public Visitante(Timbre t) {
12 | this.timbre = t;
13 | }
14 |
15 | @Override
16 | public void run() {
17 | //Usa el recurso compartido Timbre para hacerlo sonar
18 | //y anunciar que el visitante ha llegado
19 | //probar esto, quitando synchronized de Timbre
20 | //synchronized(this) {
21 | timbre.tocar();
22 | //}
23 | }
24 |
25 | }
26 |
--------------------------------------------------------------------------------
/Tema_06_ejemplos/src/t06/ejemplo03/Hilo.java:
--------------------------------------------------------------------------------
1 | package t06.ejemplo03;
2 |
3 | /**
4 | * Clase representativa de una tarea que utilizará la secuencia para
5 | * incrementar su valor llamando a getSiguiente() de la clase Secuencia.
6 | *
7 | */
8 | public class Hilo implements Runnable {
9 |
10 | private final Secuencia secuencia;
11 | private final int id;
12 | public Hilo(int id, Secuencia recursoCompartido) {
13 | this.id = id;
14 | this.secuencia = recursoCompartido;
15 | }
16 |
17 | @Override
18 | public void run() {
19 | System.out.println("Id hilo [" + this.id + "]" +
20 | " valor secuencia: " + secuencia.getSiguiente());
21 |
22 | }
23 |
24 |
25 | }
26 |
--------------------------------------------------------------------------------
/Tema_06_ejemplos/src/t06/ejemplo03/MainEjemplo03.java:
--------------------------------------------------------------------------------
1 | package t06.ejemplo03;
2 |
3 | /**
4 | * Ejemplo de uso de semaforo
5 | *
6 | */
7 | public class MainEjemplo03 {
8 | public static void main(String[] args) {
9 | Secuencia secuencia = new Secuencia();
10 |
11 | for(int i = 0; i < 100; i++) {
12 | Thread hilo1 = new Thread(new Hilo(i, secuencia));
13 | hilo1.start();
14 | }
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/Tema_06_ejemplos/src/t06/ejemplo03/Secuencia.java:
--------------------------------------------------------------------------------
1 | package t06.ejemplo03;
2 |
3 | import java.util.concurrent.Semaphore;
4 | import java.util.logging.Level;
5 | import java.util.logging.Logger;
6 |
7 | /**
8 | * Clase que contiene el número de la secuencia que es una variable
9 | * compartida por todos los hilos que la usen, pero utiliza
10 | * la clase Semáforo para gestionar su acceso
11 | *
12 | */
13 | public class Secuencia {
14 |
15 | //Valor que se va a ir incrementando
16 | private int valor = 0;
17 |
18 | //Objeto semaforo binario para que se modifique el valor nada mas
19 | private final Semaphore semaforo = new Semaphore(1);
20 |
21 | public int getSiguiente() {
22 | try {
23 | //Si un hilo ha aquirido permiso del semáforo,
24 | //el siguiente hilo se queda esperando aquí hasta
25 | //que se produce una semaforo.release
26 | semaforo.acquire();
27 | //Esta modificación de la variable se realiza
28 | //en exclusión mutua ya que adquiero el permito
29 | //en la sentencia anterior con semaforo. acquire()
30 | valor = valor + 1;
31 | } catch (InterruptedException ex) {
32 | Logger.getLogger(Secuencia.class.getName()).log(Level.SEVERE, null, ex);
33 | } finally {
34 | //Liberar el permito
35 | semaforo.release();
36 | }
37 | return valor;
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/Tema_07_ejemplos/build/classes/t07/domain/Constantes$EJEMPLO_01.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Tema_07_ejemplos/build/classes/t07/domain/Constantes$EJEMPLO_01.class
--------------------------------------------------------------------------------
/Tema_07_ejemplos/build/classes/t07/domain/Constantes$EJEMPLO_02.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Tema_07_ejemplos/build/classes/t07/domain/Constantes$EJEMPLO_02.class
--------------------------------------------------------------------------------
/Tema_07_ejemplos/build/classes/t07/domain/Constantes.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Tema_07_ejemplos/build/classes/t07/domain/Constantes.class
--------------------------------------------------------------------------------
/Tema_07_ejemplos/build/classes/t07/ejemplo01/MiDatagramEmisor$1.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Tema_07_ejemplos/build/classes/t07/ejemplo01/MiDatagramEmisor$1.class
--------------------------------------------------------------------------------
/Tema_07_ejemplos/build/classes/t07/ejemplo01/MiDatagramEmisor.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Tema_07_ejemplos/build/classes/t07/ejemplo01/MiDatagramEmisor.class
--------------------------------------------------------------------------------
/Tema_07_ejemplos/build/classes/t07/ejemplo01/MiDatagramReceptor.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Tema_07_ejemplos/build/classes/t07/ejemplo01/MiDatagramReceptor.class
--------------------------------------------------------------------------------
/Tema_07_ejemplos/build/classes/t07/ejemplo02/EjemploTCPCliente.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Tema_07_ejemplos/build/classes/t07/ejemplo02/EjemploTCPCliente.class
--------------------------------------------------------------------------------
/Tema_07_ejemplos/build/classes/t07/ejemplo02/EjemploTCPServer.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Tema_07_ejemplos/build/classes/t07/ejemplo02/EjemploTCPServer.class
--------------------------------------------------------------------------------
/Tema_07_ejemplos/build/classes/t07/ejemplo02/MainEjemploTCP.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Tema_07_ejemplos/build/classes/t07/ejemplo02/MainEjemploTCP.class
--------------------------------------------------------------------------------
/Tema_07_ejemplos/build/classes/t07/ejemplo03/PingHost.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Tema_07_ejemplos/build/classes/t07/ejemplo03/PingHost.class
--------------------------------------------------------------------------------
/Tema_07_ejemplos/nbproject/genfiles.properties:
--------------------------------------------------------------------------------
1 | build.xml.data.CRC32=05bc76fd
2 | build.xml.script.CRC32=af6e1304
3 | build.xml.stylesheet.CRC32=f85dc8f2@1.110.0.48
4 | # This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
5 | # Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
6 | nbproject/build-impl.xml.data.CRC32=05bc76fd
7 | nbproject/build-impl.xml.script.CRC32=24a204e8
8 | nbproject/build-impl.xml.stylesheet.CRC32=12e0a6c2@1.110.0.48
9 |
--------------------------------------------------------------------------------
/Tema_07_ejemplos/nbproject/private/private.properties:
--------------------------------------------------------------------------------
1 | compile.on.save=true
2 | user.properties.file=C:\\Users\\aWa\\AppData\\Roaming\\NetBeans\\21\\build.properties
3 |
--------------------------------------------------------------------------------
/Tema_07_ejemplos/nbproject/private/private.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | file:/C:/Users/aWa/Documents/NetBeansProjects/Tema_07_ejemplos/src/t07/ejemplo03/PingHost.java
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/Tema_07_ejemplos/nbproject/project.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | org.netbeans.modules.java.j2seproject
4 |
5 |
6 | Tema_07_ejemplos
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/Tema_07_ejemplos/src/t07/domain/Constantes.java:
--------------------------------------------------------------------------------
1 | package t07.domain;
2 |
3 | /**
4 | * Interfaz que almacena los valores de las distintas constantes necesarias
5 | * para los ejemplos o aplicación.
6 | */
7 | public interface Constantes {
8 | public static interface EJEMPLO_01 {
9 | public static final int PUERTO = 1050;
10 | public static final String HOST = "localhost";
11 | public static final int NUM_BYTES = 100;
12 | }
13 | public static interface EJEMPLO_02 {
14 | public static final int PUERTO = 6666;
15 | public static final String HOST = "127.0.0.1";
16 | }
17 |
18 | }
19 |
--------------------------------------------------------------------------------
/Tema_07_ejemplos/src/t07/ejemplo01/MiDatagramEmisor.java:
--------------------------------------------------------------------------------
1 | package t07.ejemplo01;
2 |
3 | import t07.domain.Constantes;
4 | import java.io.IOException;
5 | import java.net.DatagramPacket;
6 | import java.net.DatagramSocket;
7 | import java.net.InetAddress;
8 | import java.util.Timer;
9 | import java.util.TimerTask;
10 |
11 | /**
12 | *
13 | *
14 | */
15 | public class MiDatagramEmisor {
16 |
17 | private String host;
18 | private int port;
19 |
20 | public MiDatagramEmisor(String host, int port) {
21 | this.host = host;
22 | this.port = port;
23 | }
24 |
25 | private void enviarMensaje(String mes) {
26 | try {
27 | byte[] data = mes.getBytes();
28 | InetAddress address = InetAddress.getByName(host);
29 | DatagramPacket pack = new DatagramPacket(data, data.length, address, port);
30 | DatagramSocket ds = new DatagramSocket();
31 | ds.send(pack);
32 | ds.close();
33 | } catch (IOException e) {
34 | System.err.println(e);
35 | }
36 | }
37 |
38 | public static void main(String[] args) {
39 | MiDatagramEmisor cliente = new MiDatagramEmisor(
40 | Constantes.EJEMPLO_01.HOST,
41 | Constantes.EJEMPLO_01.PUERTO);
42 |
43 | String message = "Emisor enviando dato ...";
44 |
45 | Timer timer = new Timer();
46 | timer.scheduleAtFixedRate(new TimerTask() {
47 | @Override
48 | public void run() {
49 | cliente.enviarMensaje(message);
50 | }
51 | }, 1000, 1000);
52 | }
53 |
54 | }
55 |
--------------------------------------------------------------------------------
/Tema_07_ejemplos/src/t07/ejemplo01/MiDatagramReceptor.java:
--------------------------------------------------------------------------------
1 | package t07.ejemplo01;
2 |
3 | import t07.domain.Constantes;
4 | import java.io.IOException;
5 | import java.net.DatagramPacket;
6 | import java.net.DatagramSocket;
7 |
8 | /**
9 | * Clase representativa del receptor de los datagramas. Se queda escuchando en
10 | * el puerto Constantes.EJEMPLO_01.PUERTO
Cuando recibe un mensaje,
11 | * lo imprime en la consola
12 | *
13 | */
14 | public class MiDatagramReceptor {
15 |
16 | public static void main(String[] args) {
17 |
18 | try {
19 | System.out.println("Receptor escuchando .... ");
20 | //Clase servidor basado en DatagramSocket para recibir datos
21 | DatagramSocket ds = new DatagramSocket(Constantes.EJEMPLO_01.PUERTO);
22 |
23 | while (Boolean.TRUE) { //Por siempre
24 | //Recogemos el paquete de datos
25 | //Constructor de DatagramPacket para recibir paquetes de una longitud
26 | DatagramPacket pack = new DatagramPacket(
27 | new byte[Constantes.EJEMPLO_01.NUM_BYTES],
28 | Constantes.EJEMPLO_01.NUM_BYTES);
29 | //Recibe un paquete datagram desde el socket
30 | ds.receive(pack);
31 | //Muesta los datos por consola
32 | System.out.println(new String(pack.getData()));
33 | }
34 | } catch (IOException e) {
35 | System.out.println(e.getMessage());
36 | }
37 | }
38 | }
39 |
--------------------------------------------------------------------------------
/Tema_07_ejemplos/src/t07/ejemplo02/MainEjemploTCP.java:
--------------------------------------------------------------------------------
1 | package t07.ejemplo02;
2 |
3 | import java.util.logging.Level;
4 | import java.util.logging.Logger;
5 | import t07.domain.Constantes;
6 |
7 | /**
8 | * Clase principal con la isntancia de las clases necesarias para una conexión
9 | * entre cliente y servidor TCP
10 | */
11 | public class MainEjemploTCP {
12 |
13 | public static void main(String[] args) {
14 |
15 | for (int i = 0; i < 5; i++) {
16 | EjemploTCPCliente cliente = new EjemploTCPCliente();
17 | cliente.iniciarConexion(
18 | Constantes.EJEMPLO_02.HOST,
19 | Constantes.EJEMPLO_02.PUERTO);
20 | String response = cliente.enviarMensaje(" comando " + i);
21 | System.out.println(response);
22 | cliente.pararConexion();
23 | try {
24 | Thread.sleep(4000);
25 | } catch (InterruptedException ex) {
26 | Logger.getLogger(MainEjemploTCP.class.getName()).log(Level.SEVERE, null, ex);
27 | }
28 | }
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/Tema_07_ejemplos/src/t07/ejemplo03/PingHost.java:
--------------------------------------------------------------------------------
1 | package t07.ejemplo03;
2 |
3 | import java.io.IOException;
4 | import java.net.InetAddress;
5 | import java.net.UnknownHostException;
6 |
7 | /**
8 | * Clase que usa InetAddress apra realizar un ping a un host remoto.
9 | * De esta forma podemos verificar que exista una conexión.
10 | */
11 | public class PingHost {
12 |
13 | public static final String HOST = "www.google.com";
14 |
15 | public static void main(String[] args) {
16 | PingHost ph = new PingHost();
17 |
18 | ph.ping("www.google.com");
19 | ph.ping("www.googssss.es");
20 |
21 | }
22 | public void ping(String host) {
23 | try {
24 | System.out.println("Haciendo ping a ... " + host);
25 |
26 | //Usamos InetAddress para hacer ping a un host
27 | InetAddress direccion = InetAddress.getByName(host);
28 |
29 | //Con el método podemos saber si se puede acceder despues de un tiempo determinado
30 | boolean alcanzable = direccion.isReachable(5000);
31 |
32 | if (alcanzable) {
33 | System.out.println("Direccion accesible!");
34 | } else {
35 | System.out.println("La dirección indicada es inaccesible");
36 | }
37 |
38 | } catch (UnknownHostException ex) {
39 | System.err.println(PingHost.class.getName() + ex.getMessage());
40 | } catch (IOException ex) {
41 | System.err.println(PingHost.class.getName() + ex.getMessage());
42 | }
43 | }
44 | }
45 |
--------------------------------------------------------------------------------
/Tema_08_ejemplos/build/built-jar.properties:
--------------------------------------------------------------------------------
1 | #Wed, 27 Nov 2024 11:28:33 +0100
2 |
3 |
4 | C\:\\Users\\aWa\\Documents\\NetBeansProjects\\Tema_08_ejemplos=
5 |
--------------------------------------------------------------------------------
/Tema_08_ejemplos/build/classes/t08/ejemplo01/Cliente.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Tema_08_ejemplos/build/classes/t08/ejemplo01/Cliente.class
--------------------------------------------------------------------------------
/Tema_08_ejemplos/build/classes/t08/ejemplo01/Servidor.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Tema_08_ejemplos/build/classes/t08/ejemplo01/Servidor.class
--------------------------------------------------------------------------------
/Tema_08_ejemplos/build/classes/t08/ejemplo02/ServidorHTTP.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Tema_08_ejemplos/build/classes/t08/ejemplo02/ServidorHTTP.class
--------------------------------------------------------------------------------
/Tema_08_ejemplos/dist/README.TXT:
--------------------------------------------------------------------------------
1 | ========================
2 | BUILD OUTPUT DESCRIPTION
3 | ========================
4 |
5 | When you build an Java application project that has a main class, the IDE
6 | automatically copies all of the JAR
7 | files on the projects classpath to your projects dist/lib folder. The IDE
8 | also adds each of the JAR files to the Class-Path element in the application
9 | JAR files manifest file (MANIFEST.MF).
10 |
11 | To run the project from the command line, go to the dist folder and
12 | type the following:
13 |
14 | java -jar "Tema_08_ejemplos.jar"
15 |
16 | To distribute this project, zip up the dist folder (including the lib folder)
17 | and distribute the ZIP file.
18 |
19 | Notes:
20 |
21 | * If two JAR files on the project classpath have the same name, only the first
22 | JAR file is copied to the lib folder.
23 | * Only JAR files are copied to the lib folder.
24 | If the classpath contains other types of files or folders, these files (folders)
25 | are not copied.
26 | * If a library on the projects classpath also has a Class-Path element
27 | specified in the manifest,the content of the Class-Path element has to be on
28 | the projects runtime path.
29 | * To set a main class in a standard Java project, right-click the project node
30 | in the Projects window and choose Properties. Then click Run and enter the
31 | class name in the Main Class field. Alternatively, you can manually type the
32 | class name in the manifest Main-Class element.
33 |
--------------------------------------------------------------------------------
/Tema_08_ejemplos/dist/Tema_08_ejemplos.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Tema_08_ejemplos/dist/Tema_08_ejemplos.jar
--------------------------------------------------------------------------------
/Tema_08_ejemplos/nbproject/genfiles.properties:
--------------------------------------------------------------------------------
1 | build.xml.data.CRC32=26ca08e1
2 | build.xml.script.CRC32=997e75f9
3 | build.xml.stylesheet.CRC32=f85dc8f2@1.110.0.48
4 | # This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
5 | # Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
6 | nbproject/build-impl.xml.data.CRC32=26ca08e1
7 | nbproject/build-impl.xml.script.CRC32=a425575c
8 | nbproject/build-impl.xml.stylesheet.CRC32=12e0a6c2@1.110.0.48
9 |
--------------------------------------------------------------------------------
/Tema_08_ejemplos/nbproject/private/private.properties:
--------------------------------------------------------------------------------
1 | compile.on.save=true
2 | user.properties.file=C:\\Users\\aWa\\AppData\\Roaming\\NetBeans\\21\\build.properties
3 |
--------------------------------------------------------------------------------
/Tema_08_ejemplos/nbproject/private/private.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | file:/C:/Users/aWa/Documents/NetBeansProjects/Tema_08_ejemplos/src/t08/ejemplo01/Cliente.java
7 | file:/C:/Users/aWa/Documents/NetBeansProjects/Tema_08_ejemplos/src/t08/ejemplo02/ServidorHTTP.java
8 | file:/C:/Users/aWa/Documents/NetBeansProjects/Tema_08_ejemplos/src/t08/ejemplo01/Servidor.java
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/Tema_08_ejemplos/nbproject/project.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | org.netbeans.modules.java.j2seproject
4 |
5 |
6 | Tema_08_ejemplos
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/Tema_08_ejemplos/src/t08/ejemplo01/Cliente.java:
--------------------------------------------------------------------------------
1 | package t08.ejemplo01;
2 |
3 | import java.io.DataOutputStream;
4 | import java.io.IOException;
5 | import java.net.Socket;
6 |
7 | /**
8 | *
9 | * @author
10 | */
11 | public class Cliente {
12 |
13 | private final String HOST = "localhost"; //Host para la conexión
14 | private final int PUERTO = 6666; //Puerto para la conexión
15 |
16 | public void startClient() //Método para iniciar el cliente
17 | {
18 | try {
19 | //Socket del cliente
20 | Socket clientSocket = new Socket(HOST, PUERTO); //Socket para el cliente en localhost en puerto 1234
21 |
22 | //Flujo de datos hacia el servidor
23 | DataOutputStream salidaServidor = new DataOutputStream(clientSocket.getOutputStream());
24 |
25 | //Se enviarán dos mensajes
26 | for (int i = 0; i < 5; i++) {
27 | //Se escribe en el servidor usando su flujo de datos
28 | salidaServidor.writeUTF("Este es el mensaje número " + (i + 1) + "\n");
29 | }
30 |
31 | clientSocket.close();//Fin de la conexión
32 |
33 | } catch (IOException e) {
34 | System.out.println(e.getMessage());
35 | }
36 | }
37 | public static void main(String[] args) {
38 | Cliente cli = new Cliente(); //Se crea el cliente
39 |
40 | System.out.println("Iniciando cliente\n");
41 | cli.startClient(); //Se inicia el cliente
42 | }
43 | }
44 |
--------------------------------------------------------------------------------
/Tema_09_ejemplos/build/classes/t09/ejemplo01/ClienteFTP01.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Tema_09_ejemplos/build/classes/t09/ejemplo01/ClienteFTP01.class
--------------------------------------------------------------------------------
/Tema_09_ejemplos/build/classes/t09/ejemplo01/ClienteFTP02.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Tema_09_ejemplos/build/classes/t09/ejemplo01/ClienteFTP02.class
--------------------------------------------------------------------------------
/Tema_09_ejemplos/build/classes/t09/ejemplo01/ClienteFTP03.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Tema_09_ejemplos/build/classes/t09/ejemplo01/ClienteFTP03.class
--------------------------------------------------------------------------------
/Tema_09_ejemplos/build/classes/t09/ejemplo02/ClienteSmtpSocker.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Tema_09_ejemplos/build/classes/t09/ejemplo02/ClienteSmtpSocker.class
--------------------------------------------------------------------------------
/Tema_09_ejemplos/nbproject/genfiles.properties:
--------------------------------------------------------------------------------
1 | build.xml.data.CRC32=69d06763
2 | build.xml.script.CRC32=f132e79b
3 | build.xml.stylesheet.CRC32=f85dc8f2@1.110.0.48
4 | # This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
5 | # Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
6 | nbproject/build-impl.xml.data.CRC32=69d06763
7 | nbproject/build-impl.xml.script.CRC32=42555b99
8 | nbproject/build-impl.xml.stylesheet.CRC32=12e0a6c2@1.110.0.48
9 |
--------------------------------------------------------------------------------
/Tema_09_ejemplos/nbproject/private/config.properties:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Tema_09_ejemplos/nbproject/private/config.properties
--------------------------------------------------------------------------------
/Tema_09_ejemplos/nbproject/private/private.properties:
--------------------------------------------------------------------------------
1 | compile.on.save=true
2 | do.depend=false
3 | do.jar=true
4 | do.jlink=false
5 | javac.debug=true
6 | javadoc.preview=true
7 | jlink.strip=false
8 | user.properties.file=C:\\Users\\aWa\\AppData\\Roaming\\NetBeans\\21\\build.properties
9 |
--------------------------------------------------------------------------------
/Tema_09_ejemplos/nbproject/project.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | org.netbeans.modules.java.j2seproject
4 |
5 |
6 | Tema_09_ejemplos
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/Tema_10_ejemplos/build/classes/t10/ejemplo01/Cliente$1.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Tema_10_ejemplos/build/classes/t10/ejemplo01/Cliente$1.class
--------------------------------------------------------------------------------
/Tema_10_ejemplos/build/classes/t10/ejemplo01/Cliente$2.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Tema_10_ejemplos/build/classes/t10/ejemplo01/Cliente$2.class
--------------------------------------------------------------------------------
/Tema_10_ejemplos/build/classes/t10/ejemplo01/Cliente.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Tema_10_ejemplos/build/classes/t10/ejemplo01/Cliente.class
--------------------------------------------------------------------------------
/Tema_10_ejemplos/build/classes/t10/ejemplo01/Servidor$1.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Tema_10_ejemplos/build/classes/t10/ejemplo01/Servidor$1.class
--------------------------------------------------------------------------------
/Tema_10_ejemplos/build/classes/t10/ejemplo01/Servidor$2.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Tema_10_ejemplos/build/classes/t10/ejemplo01/Servidor$2.class
--------------------------------------------------------------------------------
/Tema_10_ejemplos/build/classes/t10/ejemplo01/Servidor.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Tema_10_ejemplos/build/classes/t10/ejemplo01/Servidor.class
--------------------------------------------------------------------------------
/Tema_10_ejemplos/build/classes/t10/ejemplo02/clienteimprime/Cliente$1.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Tema_10_ejemplos/build/classes/t10/ejemplo02/clienteimprime/Cliente$1.class
--------------------------------------------------------------------------------
/Tema_10_ejemplos/build/classes/t10/ejemplo02/clienteimprime/Cliente.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Tema_10_ejemplos/build/classes/t10/ejemplo02/clienteimprime/Cliente.class
--------------------------------------------------------------------------------
/Tema_10_ejemplos/build/classes/t10/ejemplo02/clienteimprime/Servidor.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Tema_10_ejemplos/build/classes/t10/ejemplo02/clienteimprime/Servidor.class
--------------------------------------------------------------------------------
/Tema_10_ejemplos/build/classes/t10/ejemplo02/servidorimrime/Cliente.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Tema_10_ejemplos/build/classes/t10/ejemplo02/servidorimrime/Cliente.class
--------------------------------------------------------------------------------
/Tema_10_ejemplos/build/classes/t10/ejemplo02/servidorimrime/Servidor.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Tema_10_ejemplos/build/classes/t10/ejemplo02/servidorimrime/Servidor.class
--------------------------------------------------------------------------------
/Tema_10_ejemplos/build/classes/t10/ejemplo03/ClienteUDP.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Tema_10_ejemplos/build/classes/t10/ejemplo03/ClienteUDP.class
--------------------------------------------------------------------------------
/Tema_10_ejemplos/build/classes/t10/ejemplo03/ServidorUDP.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Tema_10_ejemplos/build/classes/t10/ejemplo03/ServidorUDP.class
--------------------------------------------------------------------------------
/Tema_10_ejemplos/nbproject/genfiles.properties:
--------------------------------------------------------------------------------
1 | build.xml.data.CRC32=30738651
2 | build.xml.script.CRC32=ce2ca68d
3 | build.xml.stylesheet.CRC32=f85dc8f2@1.110.0.48
4 | # This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
5 | # Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
6 | nbproject/build-impl.xml.data.CRC32=30738651
7 | nbproject/build-impl.xml.script.CRC32=11896e43
8 | nbproject/build-impl.xml.stylesheet.CRC32=12e0a6c2@1.110.0.48
9 |
--------------------------------------------------------------------------------
/Tema_10_ejemplos/nbproject/private/private.properties:
--------------------------------------------------------------------------------
1 | compile.on.save=true
2 | user.properties.file=C:\\Users\\aWa\\AppData\\Roaming\\NetBeans\\21\\build.properties
3 |
--------------------------------------------------------------------------------
/Tema_10_ejemplos/nbproject/private/private.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | file:/C:/Users/aWa/Documents/NetBeansProjects/Tema_10_ejemplos/src/t10/ejemplo03/ServidorUDP.java
7 | file:/C:/Users/aWa/Documents/NetBeansProjects/Tema_10_ejemplos/src/t10/ejemplo03/ClienteUDP.java
8 | file:/C:/Users/aWa/Documents/NetBeansProjects/Tema_10_ejemplos/src/t10/ejemplo01/Cliente.java
9 | file:/C:/Users/aWa/Documents/NetBeansProjects/Tema_10_ejemplos/src/t10/ejemplo01/Servidor.java
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/Tema_10_ejemplos/nbproject/project.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | org.netbeans.modules.java.j2seproject
4 |
5 |
6 | Tema_10_ejemplos
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/Tema_10_ejemplos/src/t10/ejemplo02/clienteimprime/Cliente.java:
--------------------------------------------------------------------------------
1 | package t10.ejemplo02.clienteimprime;
2 |
3 | import java.io.DataInputStream;
4 | import java.io.IOException;
5 | import java.io.InputStream;
6 | import java.net.Socket;
7 | import java.util.Timer;
8 | import java.util.TimerTask;
9 |
10 | /**
11 | *
12 | * @author aWa
13 | */
14 | public class Cliente {
15 | public static void main(String[] args) {
16 |
17 | Timer timer = new Timer();
18 | timer.scheduleAtFixedRate(new TimerTask() {
19 | @Override
20 | public void run() {
21 | new Cliente().ejecutar();
22 | }
23 | }, 1000, 1000);
24 |
25 |
26 |
27 | }
28 |
29 | public void ejecutar() {
30 | try {
31 |
32 | //Construimos el Socket para la comunicación
33 | Socket socket = new Socket("localhost", 6666);
34 |
35 | //Flujo de datos desde el servidor
36 | InputStream aux = socket.getInputStream();
37 | DataInputStream flujoEntradaCliente = new DataInputStream(aux);//Flujo de salida
38 |
39 | String mensaje = flujoEntradaCliente.readUTF();
40 | System.out.println("[Cliente] " + mensaje);
41 |
42 | socket.close();
43 |
44 |
45 | } catch (IOException ex) {
46 | System.out.println(ex.getMessage());
47 | }
48 | }
49 | }
--------------------------------------------------------------------------------
/Tema_10_ejemplos/src/t10/ejemplo02/clienteimprime/Servidor.java:
--------------------------------------------------------------------------------
1 | package t10.ejemplo02.clienteimprime;
2 |
3 | import java.io.DataOutputStream;
4 | import java.io.IOException;
5 | import java.io.OutputStream;
6 | import java.net.ServerSocket;
7 | import java.net.Socket;
8 |
9 | /**
10 | *
11 | * @author
12 | */
13 | public class Servidor {
14 | public static void main(String[] args) {
15 | new Servidor(6666).iniciar();
16 | }
17 |
18 | private final int puerto;
19 |
20 | public Servidor(int puerto) {
21 | this.puerto = puerto;
22 | }
23 |
24 | public void iniciar() {
25 |
26 | try {
27 | //escuchando();
28 | //Puesto a la escucha
29 | ServerSocket servidor = new ServerSocket(this.puerto);
30 | System.out.println("[Servidor] arrancado...");
31 |
32 | int cnt = 0;
33 | while (Boolean.TRUE) {//Por siempre
34 |
35 | //Aceptamos la comunicación
36 | Socket misocket = servidor.accept();
37 |
38 | //Flujo de entrada
39 | OutputStream aux = misocket.getOutputStream();
40 | DataOutputStream flujoSalidaServidor = new DataOutputStream(aux);
41 |
42 | System.out.println("\t[Servidor] enviando... " + cnt + " mensajes");
43 | flujoSalidaServidor.writeUTF("Mensaje " + cnt + ", desde el servidor");
44 |
45 |
46 | misocket.close();
47 | cnt = cnt + 1;//contador
48 |
49 | }//fin del while
50 |
51 | } catch (IOException ex) {
52 | System.out.println(ex.getMessage());
53 | }
54 |
55 | }
56 | }
57 |
--------------------------------------------------------------------------------
/Tema_10_ejemplos/src/t10/ejemplo02/servidorimrime/Cliente.java:
--------------------------------------------------------------------------------
1 |
2 | package t10.ejemplo02.servidorimrime;
3 |
4 | import java.io.DataOutputStream;
5 | import java.io.IOException;
6 | import java.io.OutputStream;
7 | import java.net.Socket;
8 |
9 | /**
10 | *
11 | * @author aWa
12 | */
13 | public class Cliente extends Thread {
14 |
15 | public static void main(String[] args) {
16 | new Cliente().ejecutar();
17 | }
18 |
19 | public void ejecutar() {
20 | try {
21 | String texto = "Mensaje desde el cliente";
22 | System.out.println("[Cliente] ejecutado");
23 | //Construimos el Socket para la comunicación
24 | Socket socket = new Socket("localhost", 6666);
25 |
26 | //Flujo de datos hacia el servidor
27 | OutputStream aux = socket.getOutputStream();
28 | DataOutputStream flujoSalidaCliente = new DataOutputStream(aux);//Flujo de salida
29 |
30 | flujoSalidaCliente.writeUTF(texto + "\n");
31 |
32 | socket.close();
33 |
34 |
35 | } catch (IOException ex) {
36 | System.out.println(ex.getMessage());
37 | }
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/Tema_10_ejemplos/src/t10/ejemplo02/servidorimrime/Servidor.java:
--------------------------------------------------------------------------------
1 | package t10.ejemplo02.servidorimrime;
2 |
3 | import java.io.DataInputStream;
4 | import java.io.IOException;
5 | import java.io.InputStream;
6 | import java.net.ServerSocket;
7 | import java.net.Socket;
8 |
9 | /**
10 | *
11 | * @author aWa
12 | */
13 | public class Servidor {
14 |
15 | public static void main(String[] args) {
16 | new Servidor(6666).iniciar();
17 | }
18 |
19 | private final int puerto;
20 |
21 | public Servidor(int puerto) {
22 | this.puerto = puerto;
23 | }
24 |
25 | public void iniciar() {
26 |
27 | try {
28 | //escuchando();
29 | //Puesto a la escucha
30 | ServerSocket servidor = new ServerSocket(this.puerto);
31 | System.out.println("[Servidor] escuchando...");
32 |
33 | while (Boolean.TRUE) {//Por siempre
34 |
35 | //Aceptamos la comunicación
36 | Socket misocket = servidor.accept();
37 |
38 | //Flujo de entrada
39 | InputStream aux = misocket.getInputStream();
40 | DataInputStream flujoEntradaServidor = new DataInputStream(aux);
41 |
42 | String mensaje = flujoEntradaServidor.readUTF();
43 |
44 | System.out.println("[Servidor] " + mensaje);
45 |
46 | misocket.close();
47 |
48 | }//fin del while
49 |
50 | } catch (IOException ex) {
51 | System.out.println(ex.getMessage());
52 | }
53 |
54 | }
55 | }
56 |
--------------------------------------------------------------------------------
/Tema_11_ejemplos_maven/pom.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 4.0.0
4 | com.medac
5 | Tema_11_ejemplos_maven
6 | 1.0-SNAPSHOT
7 | jar
8 |
9 | UTF-8
10 | 22
11 | 22
12 | com.medac.t11.Tema_11_ejemplos_maven
13 |
14 |
15 |
16 | com.github.mwiede
17 | jsch
18 | 0.2.16
19 |
20 |
21 | com.hierynomus
22 | sshj
23 | 0.38.0
24 |
25 |
26 | commons-net
27 | commons-net
28 | 3.11.1
29 |
30 |
31 | javax.mail
32 | mail
33 | 1.4.7
34 |
35 |
36 |
--------------------------------------------------------------------------------
/Tema_11_ejemplos_maven/src/main/java/com/medac/t11/Tema_11_ejemplos_maven.java:
--------------------------------------------------------------------------------
1 |
2 | package com.medac.t11;
3 |
4 | /**
5 | *
6 | * @author aWa
7 | */
8 | public class Tema_11_ejemplos_maven {
9 |
10 | public static void main(String[] args) {
11 | System.out.println("Hello World!");
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/Tema_11_ejemplos_maven/src/main/java/com/medac/t11/ejemplo01/html/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Actividad - DAM - Tema 11
6 |
7 |
8 |
9 |
12 |
13 |
14 |
15 | Actividad Tema 11 - new
16 |
17 |
22 |
23 |
26 |
27 |
28 |
29 |
--------------------------------------------------------------------------------
/Tema_11_ejemplos_maven/src/main/java/com/medac/t11/ejemplo01/html/pages/formulario.php:
--------------------------------------------------------------------------------
1 |
10 |
--------------------------------------------------------------------------------
/Tema_11_ejemplos_maven/src/main/java/com/medac/t11/ejemplo01/html/pages/pagina1.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Actividad - DAM - Tema 11
6 |
7 |
8 |
9 |
10 |
11 | Actividad Tema 11
12 |
13 | Página 1
14 |
15 |
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/Tema_11_ejemplos_maven/src/main/java/com/medac/t11/ejemplo02/recursos/mifichero.php:
--------------------------------------------------------------------------------
1 |
10 |
--------------------------------------------------------------------------------
/Tema_11_ejemplos_maven/src/main/java/com/medac/t11/ejemplo02/recursos/sample.txt:
--------------------------------------------------------------------------------
1 | Hola desde fichero de ejemplo
2 |
--------------------------------------------------------------------------------
/Tema_11_ejemplos_maven/src/main/java/com/medac/t11/ejemplo02/recursos/sshjFile.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Actividad - DAM - Tema 11
6 |
7 |
8 |
9 |
10 |
11 | Actividad Tema 11
12 |
13 | Página 1
14 |
15 |
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/Tema_11_ejemplos_maven/target/classes/com/medac/t11/Tema_11_ejemplos_maven.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Tema_11_ejemplos_maven/target/classes/com/medac/t11/Tema_11_ejemplos_maven.class
--------------------------------------------------------------------------------
/Tema_11_ejemplos_maven/target/classes/com/medac/t11/ejemplo01/ServidorHTTP.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Tema_11_ejemplos_maven/target/classes/com/medac/t11/ejemplo01/ServidorHTTP.class
--------------------------------------------------------------------------------
/Tema_11_ejemplos_maven/target/classes/com/medac/t11/ejemplo01/URL_Ej01_Conecta.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Tema_11_ejemplos_maven/target/classes/com/medac/t11/ejemplo01/URL_Ej01_Conecta.class
--------------------------------------------------------------------------------
/Tema_11_ejemplos_maven/target/classes/com/medac/t11/ejemplo01/URL_Ej02_Reader.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Tema_11_ejemplos_maven/target/classes/com/medac/t11/ejemplo01/URL_Ej02_Reader.class
--------------------------------------------------------------------------------
/Tema_11_ejemplos_maven/target/classes/com/medac/t11/ejemplo01/URL_Ej03_ConectaParametros.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Tema_11_ejemplos_maven/target/classes/com/medac/t11/ejemplo01/URL_Ej03_ConectaParametros.class
--------------------------------------------------------------------------------
/Tema_11_ejemplos_maven/target/classes/com/medac/t11/ejemplo02/FTPConexion.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Tema_11_ejemplos_maven/target/classes/com/medac/t11/ejemplo02/FTPConexion.class
--------------------------------------------------------------------------------
/Tema_11_ejemplos_maven/target/classes/com/medac/t11/ejemplo02/SFTPConexionJSCH.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Tema_11_ejemplos_maven/target/classes/com/medac/t11/ejemplo02/SFTPConexionJSCH.class
--------------------------------------------------------------------------------
/Tema_11_ejemplos_maven/target/classes/com/medac/t11/ejemplo02/SFTPConexionSSHJ.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Tema_11_ejemplos_maven/target/classes/com/medac/t11/ejemplo02/SFTPConexionSSHJ.class
--------------------------------------------------------------------------------
/Tema_11_ejemplos_maven/target/classes/com/medac/t11/ejemplo03/noui/Cliente.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Tema_11_ejemplos_maven/target/classes/com/medac/t11/ejemplo03/noui/Cliente.class
--------------------------------------------------------------------------------
/Tema_11_ejemplos_maven/target/classes/com/medac/t11/ejemplo03/noui/Servidor.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Tema_11_ejemplos_maven/target/classes/com/medac/t11/ejemplo03/noui/Servidor.class
--------------------------------------------------------------------------------
/Tema_11_ejemplos_maven/target/classes/com/medac/t11/ejemplo03/noui/ServidorHilo.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Tema_11_ejemplos_maven/target/classes/com/medac/t11/ejemplo03/noui/ServidorHilo.class
--------------------------------------------------------------------------------
/Tema_11_ejemplos_maven/target/classes/com/medac/t11/ejemplo03/ui/ClienteUI$1.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Tema_11_ejemplos_maven/target/classes/com/medac/t11/ejemplo03/ui/ClienteUI$1.class
--------------------------------------------------------------------------------
/Tema_11_ejemplos_maven/target/classes/com/medac/t11/ejemplo03/ui/ClienteUI$2.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Tema_11_ejemplos_maven/target/classes/com/medac/t11/ejemplo03/ui/ClienteUI$2.class
--------------------------------------------------------------------------------
/Tema_11_ejemplos_maven/target/classes/com/medac/t11/ejemplo03/ui/ClienteUI$3.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Tema_11_ejemplos_maven/target/classes/com/medac/t11/ejemplo03/ui/ClienteUI$3.class
--------------------------------------------------------------------------------
/Tema_11_ejemplos_maven/target/classes/com/medac/t11/ejemplo03/ui/ClienteUI.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Tema_11_ejemplos_maven/target/classes/com/medac/t11/ejemplo03/ui/ClienteUI.class
--------------------------------------------------------------------------------
/Tema_11_ejemplos_maven/target/classes/com/medac/t11/ejemplo03/ui/ServidorHiloUI.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Tema_11_ejemplos_maven/target/classes/com/medac/t11/ejemplo03/ui/ServidorHiloUI.class
--------------------------------------------------------------------------------
/Tema_11_ejemplos_maven/target/classes/com/medac/t11/ejemplo03/ui/ServidorUI$1.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Tema_11_ejemplos_maven/target/classes/com/medac/t11/ejemplo03/ui/ServidorUI$1.class
--------------------------------------------------------------------------------
/Tema_11_ejemplos_maven/target/classes/com/medac/t11/ejemplo03/ui/ServidorUI.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Tema_11_ejemplos_maven/target/classes/com/medac/t11/ejemplo03/ui/ServidorUI.class
--------------------------------------------------------------------------------
/Tema_11_ejemplos_maven/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst:
--------------------------------------------------------------------------------
1 | com\medac\t11\ejemplo03\noui\ServidorHilo.class
2 | com\medac\t11\ejemplo02\SFTPConexionSSHJ.class
3 | com\medac\t11\ejemplo03\noui\Servidor.class
4 | com\medac\t11\Tema_11_ejemplos_maven.class
5 | com\medac\t11\ejemplo03\ui\ServidorUI$1.class
6 | com\medac\t11\ejemplo03\ui\ClienteUI$1.class
7 | com\medac\t11\ejemplo01\URL_Ej01_Conecta.class
8 | com\medac\t11\ejemplo03\ui\ClienteUI$2.class
9 | com\medac\t11\ejemplo02\SFTPConexionJSCH.class
10 | com\medac\t11\ejemplo01\URL_Ej02_Reader.class
11 | com\medac\t11\ejemplo01\URL_Ej03_ConectaParametros.class
12 | com\medac\t11\ejemplo01\ServidorHTTP.class
13 | com\medac\t11\ejemplo03\ui\ServidorHiloUI.class
14 | com\medac\t11\ejemplo03\ui\ClienteUI$3.class
15 | com\medac\t11\ejemplo03\noui\Cliente.class
16 | com\medac\t11\ejemplo02\FTPConexion.class
17 | com\medac\t11\ejemplo03\ui\ServidorUI.class
18 | com\medac\t11\ejemplo03\ui\ClienteUI.class
19 |
--------------------------------------------------------------------------------
/Tema_11_ejemplos_maven/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst:
--------------------------------------------------------------------------------
1 | C:\Users\aWa\Documents\NetBeansProjects\Tema_11_ejemplos_maven\src\main\java\com\medac\t11\ejemplo02\SFTPConexionJSCH.java
2 | C:\Users\aWa\Documents\NetBeansProjects\Tema_11_ejemplos_maven\src\main\java\com\medac\t11\ejemplo03\noui\ServidorHilo.java
3 | C:\Users\aWa\Documents\NetBeansProjects\Tema_11_ejemplos_maven\src\main\java\com\medac\t11\ejemplo02\SFTPConexionSSHJ.java
4 | C:\Users\aWa\Documents\NetBeansProjects\Tema_11_ejemplos_maven\src\main\java\com\medac\t11\ejemplo03\ui\ClienteUI.java
5 | C:\Users\aWa\Documents\NetBeansProjects\Tema_11_ejemplos_maven\src\main\java\com\medac\t11\ejemplo03\noui\Servidor.java
6 | C:\Users\aWa\Documents\NetBeansProjects\Tema_11_ejemplos_maven\src\main\java\com\medac\t11\ejemplo01\URL_Ej02_Reader.java
7 | C:\Users\aWa\Documents\NetBeansProjects\Tema_11_ejemplos_maven\src\main\java\com\medac\t11\ejemplo02\FTPConexion.java
8 | C:\Users\aWa\Documents\NetBeansProjects\Tema_11_ejemplos_maven\src\main\java\com\medac\t11\ejemplo01\ServidorHTTP.java
9 | C:\Users\aWa\Documents\NetBeansProjects\Tema_11_ejemplos_maven\src\main\java\com\medac\t11\ejemplo01\URL_Ej01_Conecta.java
10 | C:\Users\aWa\Documents\NetBeansProjects\Tema_11_ejemplos_maven\src\main\java\com\medac\t11\Tema_11_ejemplos_maven.java
11 | C:\Users\aWa\Documents\NetBeansProjects\Tema_11_ejemplos_maven\src\main\java\com\medac\t11\ejemplo03\noui\Cliente.java
12 | C:\Users\aWa\Documents\NetBeansProjects\Tema_11_ejemplos_maven\src\main\java\com\medac\t11\ejemplo01\URL_Ej03_ConectaParametros.java
13 | C:\Users\aWa\Documents\NetBeansProjects\Tema_11_ejemplos_maven\src\main\java\com\medac\t11\ejemplo03\ui\ServidorHiloUI.java
14 | C:\Users\aWa\Documents\NetBeansProjects\Tema_11_ejemplos_maven\src\main\java\com\medac\t11\ejemplo03\ui\ServidorUI.java
15 |
--------------------------------------------------------------------------------
/Tema_11_ejemplos_maven/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Tema_11_ejemplos_maven/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst
--------------------------------------------------------------------------------
/Tema_13_ejemplos/nbproject/project.properties:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Tema_13_ejemplos/nbproject/project.properties
--------------------------------------------------------------------------------
/Tema_13_ejemplos/pom.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 4.0.0
4 | com.medac
5 | Tema_13_ejemplos
6 | 1.0-SNAPSHOT
7 | jar
8 |
9 | UTF-8
10 | 22
11 | 22
12 |
13 |
14 |
15 |
16 | junit
17 | junit
18 | 4.13.2
19 | test
20 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/Tema_13_ejemplos/target/Tema_13_ejemplos-1.0-SNAPSHOT.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Tema_13_ejemplos/target/Tema_13_ejemplos-1.0-SNAPSHOT.jar
--------------------------------------------------------------------------------
/Tema_13_ejemplos/target/classes/com/medac/t13/ExpresionesRegulares.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Tema_13_ejemplos/target/classes/com/medac/t13/ExpresionesRegulares.class
--------------------------------------------------------------------------------
/Tema_13_ejemplos/target/maven-archiver/pom.properties:
--------------------------------------------------------------------------------
1 | artifactId=Tema_13_ejemplos
2 | groupId=com.medac
3 | version=1.0-SNAPSHOT
4 |
--------------------------------------------------------------------------------
/Tema_13_ejemplos/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst:
--------------------------------------------------------------------------------
1 | com\medac\t13\ExpresionesRegulares.class
2 |
--------------------------------------------------------------------------------
/Tema_13_ejemplos/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst:
--------------------------------------------------------------------------------
1 | C:\Users\aWa\Documents\NetBeansProjects\Tema_13_ejemplos\src\main\java\com\medac\t13\ExpresionesRegulares.java
2 |
--------------------------------------------------------------------------------
/Tema_13_ejemplos/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/createdFiles.lst:
--------------------------------------------------------------------------------
1 | TestEpresionesRegulares.class
2 |
--------------------------------------------------------------------------------
/Tema_13_ejemplos/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst:
--------------------------------------------------------------------------------
1 | C:\Users\aWa\Documents\NetBeansProjects\Tema_13_ejemplos\src\test\java\TestEpresionesRegulares.java
2 |
--------------------------------------------------------------------------------
/Tema_13_ejemplos/target/surefire-reports/2025-01-21T20-11-31_388-jvmRun1-commands.bin:
--------------------------------------------------------------------------------
1 | :maven-surefire-command::noop::maven-surefire-command::noop::maven-surefire-command::noop::maven-surefire-command::bye-ack:
--------------------------------------------------------------------------------
/Tema_13_ejemplos/target/surefire-reports/2025-01-21T20-11-31_388-jvmRun1.dump:
--------------------------------------------------------------------------------
1 | # Created at 2025-01-21T20:11:31.824
2 | Found Maven process ID 649120 for the fork 1.
3 |
4 |
--------------------------------------------------------------------------------
/Tema_13_ejemplos/target/surefire-reports/2025-01-22T15-17-30_291-jvmRun1-commands.bin:
--------------------------------------------------------------------------------
1 | :maven-surefire-command::noop::maven-surefire-command::noop::maven-surefire-command::bye-ack:
--------------------------------------------------------------------------------
/Tema_13_ejemplos/target/surefire-reports/2025-01-22T15-17-30_291-jvmRun1.dump:
--------------------------------------------------------------------------------
1 | # Created at 2025-01-22T15:17:30.661
2 | Found Maven process ID 26684 for the fork 1.
3 |
4 |
--------------------------------------------------------------------------------
/Tema_13_ejemplos/target/surefire-reports/TestEpresionesRegulares.txt:
--------------------------------------------------------------------------------
1 | -------------------------------------------------------------------------------
2 | Test set: TestEpresionesRegulares
3 | -------------------------------------------------------------------------------
4 | Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 17.09 s -- in TestEpresionesRegulares
5 |
--------------------------------------------------------------------------------
/Tema_13_ejemplos/target/test-classes/TestEpresionesRegulares.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Tema_13_ejemplos/target/test-classes/TestEpresionesRegulares.class
--------------------------------------------------------------------------------
/Tema_14_ejemplos/nbproject/project.properties:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Tema_14_ejemplos/nbproject/project.properties
--------------------------------------------------------------------------------
/Tema_14_ejemplos/pom.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 4.0.0
4 | com.medac
5 | Tema_14_ejemplos
6 | 1.0-SNAPSHOT
7 | jar
8 |
9 | UTF-8
10 | 22
11 | 22
12 |
13 |
14 |
15 |
16 | junit
17 | junit
18 | 4.13.2
19 | test
20 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/Tema_14_ejemplos/target/Tema_14_ejemplos-1.0-SNAPSHOT.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Tema_14_ejemplos/target/Tema_14_ejemplos-1.0-SNAPSHOT.jar
--------------------------------------------------------------------------------
/Tema_14_ejemplos/target/classes/com/medac/t14/MessageDigestAlgorithms.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Tema_14_ejemplos/target/classes/com/medac/t14/MessageDigestAlgorithms.class
--------------------------------------------------------------------------------
/Tema_14_ejemplos/target/maven-archiver/pom.properties:
--------------------------------------------------------------------------------
1 | artifactId=Tema_14_ejemplos
2 | groupId=com.medac
3 | version=1.0-SNAPSHOT
4 |
--------------------------------------------------------------------------------
/Tema_14_ejemplos/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst:
--------------------------------------------------------------------------------
1 | com\medac\t14\MessageDigestAlgorithms.class
2 |
--------------------------------------------------------------------------------
/Tema_14_ejemplos/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst:
--------------------------------------------------------------------------------
1 | C:\Users\aWa\Documents\NetBeansProjects\Tema_14_ejemplos\src\main\java\com\medac\t14\MessageDigestAlgorithms.java
2 |
--------------------------------------------------------------------------------
/Tema_14_ejemplos/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/createdFiles.lst:
--------------------------------------------------------------------------------
1 | MessageDigestAlgorithmsTest.class
2 |
--------------------------------------------------------------------------------
/Tema_14_ejemplos/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst:
--------------------------------------------------------------------------------
1 | C:\Users\aWa\Documents\NetBeansProjects\Tema_14_ejemplos\src\test\java\MessageDigestAlgorithmsTest.java
2 |
--------------------------------------------------------------------------------
/Tema_14_ejemplos/target/surefire-reports/MessageDigestAlgorithmsTest.txt:
--------------------------------------------------------------------------------
1 | -------------------------------------------------------------------------------
2 | Test set: MessageDigestAlgorithmsTest
3 | -------------------------------------------------------------------------------
4 | Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.083 s -- in MessageDigestAlgorithmsTest
5 |
--------------------------------------------------------------------------------
/Tema_14_ejemplos/target/test-classes/MessageDigestAlgorithmsTest.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Tema_14_ejemplos/target/test-classes/MessageDigestAlgorithmsTest.class
--------------------------------------------------------------------------------
/Tema_15_ejemplos/src/main/java/certs/client/ClientPublicKey.cer:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Tema_15_ejemplos/src/main/java/certs/client/ClientPublicKey.cer
--------------------------------------------------------------------------------
/Tema_15_ejemplos/src/main/java/certs/client/clientKey.jks:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Tema_15_ejemplos/src/main/java/certs/client/clientKey.jks
--------------------------------------------------------------------------------
/Tema_15_ejemplos/src/main/java/certs/client/clientTrustedCerts.jks:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Tema_15_ejemplos/src/main/java/certs/client/clientTrustedCerts.jks
--------------------------------------------------------------------------------
/Tema_15_ejemplos/src/main/java/certs/info.txt:
--------------------------------------------------------------------------------
1 | //Creación de certificados
2 | //(https://chuidiang.org/index.php?title=Socket_SSL_con_Java)
3 |
4 | //Paso 1:
5 | //Crear certificado del servidor
6 | //Se genera el fichero serverKey.jks, que es un almacén de certificados y dentro tiene el certificado de nuestro servidor.
7 | keytool -genkey -keyalg RSA -alias serverKey -keystore serverKey.jks -storepass servpass
8 |
9 | //Crear certificado del cliente
10 | //Deberíamos hacer ahora lo mismo para generar un certificado de cliente en un almacén distinto (con otro nombre).
11 | keytool -genkey -keyalg RSA -alias clientKey -keystore clientKey.jks -storepass clientpass
12 |
13 | //Paso 2:
14 | //Vamos a generar el almacén de confianza para el cliente.
15 | //Este almacen debe contener el certificado de servidor.
16 | //Como el certificado del servidor está dentro de un almacén, tenemos que sacarlo de ahí a un fichero.
17 | keytool -export -keystore serverKey.jks -alias serverKey -file ServerPublicKey.cer
18 |
19 | //Una vez que tenemos el fichero ServerPublicKey.cer con el certificado, debemos meterlo dentro de un
20 | //almacén de certificados de confianza del cliente.
21 | keytool -import -alias serverKey -file ServerPublicKey.cer -keystore clientTrustedCerts.jks -keypass clientpass -storepass clientpass
22 |
23 | //ya tenemos el almacén de certificados de confianza clientTrustedCerts.jks
24 |
25 | // repetir todo el proceso para crear el almacén de certificados de confianza para el servidor, metiendo en él el certificado del cliente
26 | Comando 1:
27 | keytool -export -keystore clientKey.jks -alias clientKey -file ClientPublicKey.cer
28 | Comando 2:
29 | keytool -import -alias clientKey -file ClientPublicKey.cer -keystore serverTrustedCerts.jks -keypass serverpass -storepass serverpass
30 |
--------------------------------------------------------------------------------
/Tema_15_ejemplos/src/main/java/certs/server/ServerPublicKey.cer:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Tema_15_ejemplos/src/main/java/certs/server/ServerPublicKey.cer
--------------------------------------------------------------------------------
/Tema_15_ejemplos/src/main/java/certs/server/serverKey.jks:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Tema_15_ejemplos/src/main/java/certs/server/serverKey.jks
--------------------------------------------------------------------------------
/Tema_15_ejemplos/src/main/java/certs/server/serverTrustedCerts.jks:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Tema_15_ejemplos/src/main/java/certs/server/serverTrustedCerts.jks
--------------------------------------------------------------------------------
/Tema_15_ejemplos/src/main/java/certs2/cliente/certificadoCliente.jks:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Tema_15_ejemplos/src/main/java/certs2/cliente/certificadoCliente.jks
--------------------------------------------------------------------------------
/Tema_15_ejemplos/src/main/java/certs2/cliente/clientTrustedCerts.jks:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Tema_15_ejemplos/src/main/java/certs2/cliente/clientTrustedCerts.jks
--------------------------------------------------------------------------------
/Tema_15_ejemplos/src/main/java/certs2/servidor/certificadoServidor.jks:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Tema_15_ejemplos/src/main/java/certs2/servidor/certificadoServidor.jks
--------------------------------------------------------------------------------
/Tema_15_ejemplos/src/main/java/certs2/servidor/serverTrustedCerts.jks:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Tema_15_ejemplos/src/main/java/certs2/servidor/serverTrustedCerts.jks
--------------------------------------------------------------------------------
/Tema_15_ejemplos/src/main/java/com/medac/t15/Ejemplo02_AlgoritmosCifrado.java:
--------------------------------------------------------------------------------
1 | package com.medac.t15;
2 |
3 | import java.security.Security;
4 | import java.util.Set;
5 | import java.util.stream.Collectors;
6 |
7 | /**
8 | *
9 | * @author
10 | */
11 | public class Ejemplo02_AlgoritmosCifrado {
12 |
13 | public static void main(String[] args) {
14 | Set keyGenerators = Security.getAlgorithms("KeyGenerator");
15 | System.out.println("Generadores de claves soportados: " + keyGenerators.stream().sorted().collect(Collectors.joining(",")));
16 |
17 | Set secretKeyFactories = Security.getAlgorithms("SecretKeyFactory");
18 | System.out.println("Factoria de Generadores de claves soportadas: " + secretKeyFactories.stream().sorted().collect(Collectors.joining(",")));
19 |
20 | Set chipers = Security.getAlgorithms("Cipher");
21 | System.out.println("Cifradores soportados: " + chipers.stream().sorted().collect(Collectors.joining(",")));
22 |
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/Tema_15_ejemplos/src/main/java/com/medac/t15/cifrado/Main.java:
--------------------------------------------------------------------------------
1 | package com.medac.t15.cifrado;
2 |
3 | import java.security.SecureRandom;
4 |
5 | /**
6 | *
7 | * @author
8 | */
9 | public class Main {
10 | public static void main(String[] args) {
11 | String clavePrivada = "en1LugarD3LaMancha";
12 |
13 | String textoPlano = "Esto es un texto con datos privados";
14 |
15 | //String iv = "0123456789ABCDEF";
16 | byte[] iv = new byte[16];
17 | new SecureRandom().nextBytes(iv);
18 |
19 |
20 | var util = new StringEncrypt();
21 | String textoEncriptado = util.encriptar(clavePrivada, iv, textoPlano);
22 | String resultado = String.format("Texto encriptado {%s}", textoEncriptado);
23 | System.out.println(resultado);
24 |
25 | String textoDesencriptado = util.desencriptar(clavePrivada, iv, textoEncriptado);
26 | String resultado2 =String.format("Texto plano {%s}", textoDesencriptado);
27 | System.out.println(resultado2);
28 |
29 |
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/Tema_15_ejemplos/src/main/java/com/medac/t15/socketseguro/Main.java:
--------------------------------------------------------------------------------
1 | package com.medac.t15.socketseguro;
2 |
3 | /**
4 | *
5 | * @author
6 | */
7 | public class Main {
8 | public static void main(String[] args) {
9 | try {
10 | new SSLServidor(5557).arrancarServidor();
11 | new SSLCliente("localhost",5557).lanzarCliente();
12 |
13 | } catch (Exception ex) {
14 | System.out.println(ex.getMessage());
15 | }
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/Tema_15_ejemplos/src/main/java/com/medac/t15/socketseguro2/AppSSLServer.java:
--------------------------------------------------------------------------------
1 | package com.medac.t15.socketseguro2;
2 |
3 | import com.medac.t15.socketseguro.SSLCliente;
4 | import com.medac.t15.socketseguro.SSLServidor;
5 |
6 | /**
7 | *
8 | * @author
9 | */
10 | public class AppSSLServer {
11 | public static void main(String[] args) {
12 | try {
13 | new SSLServidor2(5557).arrancarServidor2();
14 | new SSLCliente2("localhost",5557).lanzarCliente2();
15 |
16 | } catch (Exception ex) {
17 | System.out.println(ex.getMessage());
18 | }
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/Tema_15_ejemplos/target/Tema_15_ejemplos-1.0-SNAPSHOT.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Tema_15_ejemplos/target/Tema_15_ejemplos-1.0-SNAPSHOT.jar
--------------------------------------------------------------------------------
/Tema_15_ejemplos/target/classes/com/medac/t15/Ejemplo01_ProveedoresSeguridad.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Tema_15_ejemplos/target/classes/com/medac/t15/Ejemplo01_ProveedoresSeguridad.class
--------------------------------------------------------------------------------
/Tema_15_ejemplos/target/classes/com/medac/t15/Ejemplo02_AlgoritmosCifrado.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Tema_15_ejemplos/target/classes/com/medac/t15/Ejemplo02_AlgoritmosCifrado.class
--------------------------------------------------------------------------------
/Tema_15_ejemplos/target/classes/com/medac/t15/Ejemplo03_CriptoClaveSimetrica.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Tema_15_ejemplos/target/classes/com/medac/t15/Ejemplo03_CriptoClaveSimetrica.class
--------------------------------------------------------------------------------
/Tema_15_ejemplos/target/classes/com/medac/t15/cifrado/Main.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Tema_15_ejemplos/target/classes/com/medac/t15/cifrado/Main.class
--------------------------------------------------------------------------------
/Tema_15_ejemplos/target/classes/com/medac/t15/cifrado/StringEncrypt.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Tema_15_ejemplos/target/classes/com/medac/t15/cifrado/StringEncrypt.class
--------------------------------------------------------------------------------
/Tema_15_ejemplos/target/classes/com/medac/t15/socketseguro/Main.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Tema_15_ejemplos/target/classes/com/medac/t15/socketseguro/Main.class
--------------------------------------------------------------------------------
/Tema_15_ejemplos/target/classes/com/medac/t15/socketseguro/SSLCliente$1.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Tema_15_ejemplos/target/classes/com/medac/t15/socketseguro/SSLCliente$1.class
--------------------------------------------------------------------------------
/Tema_15_ejemplos/target/classes/com/medac/t15/socketseguro/SSLCliente.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Tema_15_ejemplos/target/classes/com/medac/t15/socketseguro/SSLCliente.class
--------------------------------------------------------------------------------
/Tema_15_ejemplos/target/classes/com/medac/t15/socketseguro/SSLServidor$1.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Tema_15_ejemplos/target/classes/com/medac/t15/socketseguro/SSLServidor$1.class
--------------------------------------------------------------------------------
/Tema_15_ejemplos/target/classes/com/medac/t15/socketseguro/SSLServidor.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Tema_15_ejemplos/target/classes/com/medac/t15/socketseguro/SSLServidor.class
--------------------------------------------------------------------------------
/Tema_15_ejemplos/target/classes/com/medac/t15/socketseguro2/AppSSLServer.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Tema_15_ejemplos/target/classes/com/medac/t15/socketseguro2/AppSSLServer.class
--------------------------------------------------------------------------------
/Tema_15_ejemplos/target/classes/com/medac/t15/socketseguro2/SSLCliente2$1.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Tema_15_ejemplos/target/classes/com/medac/t15/socketseguro2/SSLCliente2$1.class
--------------------------------------------------------------------------------
/Tema_15_ejemplos/target/classes/com/medac/t15/socketseguro2/SSLCliente2.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Tema_15_ejemplos/target/classes/com/medac/t15/socketseguro2/SSLCliente2.class
--------------------------------------------------------------------------------
/Tema_15_ejemplos/target/classes/com/medac/t15/socketseguro2/SSLServidor2$1.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Tema_15_ejemplos/target/classes/com/medac/t15/socketseguro2/SSLServidor2$1.class
--------------------------------------------------------------------------------
/Tema_15_ejemplos/target/classes/com/medac/t15/socketseguro2/SSLServidor2.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Tema_15_ejemplos/target/classes/com/medac/t15/socketseguro2/SSLServidor2.class
--------------------------------------------------------------------------------
/Tema_15_ejemplos/target/maven-archiver/pom.properties:
--------------------------------------------------------------------------------
1 | artifactId=Tema_15_ejemplos
2 | groupId=com.medac
3 | version=1.0-SNAPSHOT
4 |
--------------------------------------------------------------------------------
/Tema_15_ejemplos/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst:
--------------------------------------------------------------------------------
1 | com\medac\t15\Ejemplo03_CriptoClaveSimetrica.class
2 | com\medac\t15\socketseguro\SSLServidor.class
3 | com\medac\t15\cifrado\Main.class
4 | com\medac\t15\socketseguro\SSLServidor$1.class
5 | com\medac\t15\Ejemplo02_AlgoritmosCifrado.class
6 | com\medac\t15\socketseguro2\AppSSLServer.class
7 | com\medac\t15\socketseguro\SSLCliente.class
8 | com\medac\t15\socketseguro\Main.class
9 | com\medac\t15\socketseguro2\SSLCliente2$1.class
10 | com\medac\t15\socketseguro2\SSLServidor2$1.class
11 | com\medac\t15\socketseguro2\SSLServidor2.class
12 | com\medac\t15\cifrado\StringEncrypt.class
13 | com\medac\t15\Ejemplo01_ProveedoresSeguridad.class
14 | com\medac\t15\socketseguro\SSLCliente$1.class
15 | com\medac\t15\socketseguro2\SSLCliente2.class
16 |
--------------------------------------------------------------------------------
/Tema_15_ejemplos/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst:
--------------------------------------------------------------------------------
1 | C:\Users\aWa\Documents\NetBeansProjects\Tema_15_ejemplos\src\main\java\com\medac\t15\socketseguro\SSLServidor.java
2 | C:\Users\aWa\Documents\NetBeansProjects\Tema_15_ejemplos\src\main\java\com\medac\t15\cifrado\Main.java
3 | C:\Users\aWa\Documents\NetBeansProjects\Tema_15_ejemplos\src\main\java\com\medac\t15\socketseguro\SSLCliente.java
4 | C:\Users\aWa\Documents\NetBeansProjects\Tema_15_ejemplos\src\main\java\com\medac\t15\socketseguro2\AppSSLServer.java
5 | C:\Users\aWa\Documents\NetBeansProjects\Tema_15_ejemplos\src\main\java\com\medac\t15\Ejemplo02_AlgoritmosCifrado.java
6 | C:\Users\aWa\Documents\NetBeansProjects\Tema_15_ejemplos\src\main\java\com\medac\t15\socketseguro2\SSLCliente2.java
7 | C:\Users\aWa\Documents\NetBeansProjects\Tema_15_ejemplos\src\main\java\com\medac\t15\socketseguro2\SSLServidor2.java
8 | C:\Users\aWa\Documents\NetBeansProjects\Tema_15_ejemplos\src\main\java\com\medac\t15\cifrado\StringEncrypt.java
9 | C:\Users\aWa\Documents\NetBeansProjects\Tema_15_ejemplos\src\main\java\com\medac\t15\Ejemplo03_CriptoClaveSimetrica.java
10 | C:\Users\aWa\Documents\NetBeansProjects\Tema_15_ejemplos\src\main\java\com\medac\t15\Ejemplo01_ProveedoresSeguridad.java
11 | C:\Users\aWa\Documents\NetBeansProjects\Tema_15_ejemplos\src\main\java\com\medac\t15\socketseguro\Main.java
12 |
--------------------------------------------------------------------------------
/Tema_15_ejemplos/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/createdFiles.lst:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Tema_15_ejemplos/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/createdFiles.lst
--------------------------------------------------------------------------------
/Tema_15_ejemplos/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tecnogredos/PSP/efd8ac377b9f6ea73aa491b131c0f05065d68f06/Tema_15_ejemplos/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst
--------------------------------------------------------------------------------