Example usage for com.squareup.okhttp FormEncodingBuilder FormEncodingBuilder

List of usage examples for com.squareup.okhttp FormEncodingBuilder FormEncodingBuilder

Introduction

In this page you can find the example usage for com.squareup.okhttp FormEncodingBuilder FormEncodingBuilder.

Prototype

FormEncodingBuilder

Source Link

Usage

From source file:edd.practica2_201503422.TestWebServer.java

public static void InsertarMatriz(String Valor) {
    RequestBody formBody = new FormEncodingBuilder().add("dato", Valor).build();
    String r = getString("InsertarMatriz", formBody);
    System.out.println(r);/*w  w w  .j  a v a  2  s  . com*/
}

From source file:edd.practica2_201503422.TestWebServer.java

public static void BuscarLetra(String Valor) {
    RequestBody formBody = new FormEncodingBuilder().add("dato", Valor).build();
    String r = getString("BuscarLetra", formBody);
    System.out.println(r);/*from  www  .j  ava  2 s .  co  m*/
}

From source file:edd.practica2_201503422.TestWebServer.java

public static void EliminarMatriz(String Valor) {
    RequestBody formBody = new FormEncodingBuilder().add("dato", Valor).build();
    String r = getString("EliminarMatriz", formBody);
    System.out.println(r);/*  w ww . ja v a 2  s. c om*/
}

From source file:edd.practica2_201503422.TestWebServer.java

public static void BuscarDominio(String Valor) {
    RequestBody formBody = new FormEncodingBuilder().add("dato", Valor).build();
    String r = getString("BuscarDominio", formBody);
    System.out.println(r);/*w  w w .  j  a va 2s.c  o m*/
}

From source file:edd.webclient.Client.java

public static void addToList(String data) {

    RequestBody body = new FormEncodingBuilder().add("data", data).build();

    String method = "List/add";

    System.out.println(Client.getString(method, body));

}

From source file:edd.webclient.Client.java

public static void searchInList(String data) {

    RequestBody body = new FormEncodingBuilder().add("data", data).build();

    String method = "List/search";

    System.out.println(Client.getString(method, body));

}

From source file:edd.webclient.Client.java

public static void removeFromList(String index) {

    RequestBody body = new FormEncodingBuilder().add("index", index).build();

    String method = "List/remove";

    System.out.println(Client.getString(method, body));

}

From source file:edd.webclient.Client.java

public static void enqueue(String data) {

    RequestBody body = new FormEncodingBuilder().add("data", data).build();

    String method = "Queue/enqueue";

    System.out.println(Client.getString(method, body));

}

From source file:edd.webclient.Client.java

public static void push(String data) {

    RequestBody body = new FormEncodingBuilder().add("data", data).build();

    String method = "Stack/push";

    System.out.println(Client.getString(method, body));

}

From source file:edd.webclient.Client.java

public static void insert(String mail) {

    String data[] = mail.split("@");

    RequestBody body = new FormEncodingBuilder().add("domain", data[1]).add("name", data[0]).build();

    String method = "Matrix/insert";

    System.out.println(Client.getString(method, body));

}