List of usage examples for com.squareup.okhttp FormEncodingBuilder FormEncodingBuilder
FormEncodingBuilder
From source file:practica2s12017_201403877.Cola.java
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed //Dequeue//from w ww .j a va2s. c o m String numero = jTextField1.getText(); RequestBody formBody = new FormEncodingBuilder().add("dato", numero).build(); String r = getString("MeterCola", formBody); jTextField1.setText(""); jLabel2.setText("Estado -> " + r); System.out.println(r); g.generarGrafica("C:\\txt\\cola.txt", "cola"); }
From source file:practica2s12017_201403877.Cola.java
private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton2ActionPerformed //Queue//from w ww . j av a2 s . c om String numero = "5"; RequestBody formBody = new FormEncodingBuilder().add("dato", numero).build(); String r = getString("SacarCola", formBody); jTextField1.setText(""); jLabel2.setText("Estado -> " + r); System.out.println(r); g.generarGrafica("C:\\txt\\cola.txt", "cola"); }
From source file:practica2s12017_201403877.Lista.java
private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton3ActionPerformed String palabra = jTextField3.getText(); RequestBody formBody = new FormEncodingBuilder().add("dato", palabra).build(); String r = getString("BuscarLista", formBody); jTextField3.setText(""); jLabel3.setText("Estado -> " + r); System.out.println(r);/* w ww . j ava2s . c om*/ }
From source file:practica2s12017_201403877.Lista.java
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed String palabra = jTextField1.getText(); RequestBody formBody = new FormEncodingBuilder().add("dato", palabra).build(); String r = getString("AgregarLista", formBody); jTextField1.setText(""); jLabel1.setText("Estado -> " + r); System.out.println(r);//from w w w .ja v a2s .c o m g.generarGrafica("C:\\txt\\lista.txt", "lista"); }
From source file:practica2s12017_201403877.Lista.java
private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton2ActionPerformed String palabra = jTextField2.getText(); RequestBody formBody = new FormEncodingBuilder().add("dato", palabra).build(); String r = getString("EliminarLista", formBody); jTextField2.setText(""); jLabel2.setText("Estado -> " + r); System.out.println(r);// ww w . ja va 2 s . co m g.generarGrafica("C:\\txt\\lista.txt", "lista"); }
From source file:practica2s12017_201403877.Matriz.java
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed String texto = jTextField1.getText().toLowerCase(); String e[] = texto.split("@"); String f[] = e[1].split("\\."); RequestBody formBody = new FormEncodingBuilder().add("letra", String.valueOf(e[0].charAt(0))) .add("nombre", e[0]).add("dominio", f[0]).build(); String r = getString("MeterMatriz", formBody); jTextField1.setText(""); jLabel1.setText("Estado -> " + r); System.out.println(r);//from w w w . j ava 2 s . c o m g.generarGrafica("C:\\txt\\Matriz.txt", "Matriz"); }
From source file:practica2s12017_201403877.Matriz.java
private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton2ActionPerformed String texto = jTextField2.getText().toLowerCase(); String e[] = texto.split("@"); String f[] = e[1].split("\\."); RequestBody formBody = new FormEncodingBuilder().add("letra", String.valueOf(e[0].charAt(0))) .add("nombre", e[0]).add("dominio", f[0]).build(); String r = getString("SacarMatriz", formBody); jTextField2.setText(""); jLabel1.setText("Estado -> " + r); System.out.println(r);//from w w w . j a va2s . co m g.generarGrafica("C:\\txt\\Matriz.txt", "Matriz"); }
From source file:practica2s12017_201403877.Matriz.java
private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton3ActionPerformed String texto = jTextField3.getText().toLowerCase(); RequestBody formBody = new FormEncodingBuilder().add("letra", texto).build(); String r = getString("ObtenerLetra", formBody); jTextField3.setText(""); jLabel1.setText("Estado -> " + r); System.out.println(r);/*from ww w.j a v a 2 s. c o m*/ g.generarGrafica("C:\\txt\\Letra.txt", "Letra"); }
From source file:practica2s12017_201403877.Matriz.java
private void jButton4ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton4ActionPerformed String texto = jTextField4.getText().toLowerCase(); RequestBody formBody = new FormEncodingBuilder().add("dominio", texto).build(); String r = getString("ObtenerDominio", formBody); jTextField4.setText(""); jLabel1.setText("Estado -> " + r); System.out.println(r);//from w w w . j a v a 2s . c o m g.generarGrafica("C:\\txt\\Dominio.txt", "Dominio"); }
From source file:practica2s12017_201403877.Pila.java
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed //Push//from w ww . jav a2s.c om String numero = jTextField1.getText(); RequestBody formBody = new FormEncodingBuilder().add("dato", numero).build(); String r = getString("MeterPila", formBody); jTextField1.setText(""); jLabel2.setText("Estado -> " + r); System.out.println(r); g.generarGrafica("C:\\txt\\pila.txt", "pila"); }