Skip to content

Instantly share code, notes, and snippets.

Working from home

Samuel Catalano samuelcatalano

Working from home
Block or report user

Report or block samuelcatalano

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
final ObjectMapper mapper = new ObjectMapper();
try {
usuario = mapper.writeValueAsString(usuarioRaichu);
final Client client = ClientBuilder.newClient();
response = client
.request().header("Authorization", authToken)
.post(Entity.entity(usuario, "application/json"));
public class ConsumidorBuilder {
private Consumidor consumidor;
public ConsumidorBuilder() {
this.consumidor = new Consumidor();
public ConsumidorBuilder idExterno(String idExterno) {
samuelcatalano /
Last active Nov 28, 2018
Returning message error using
// return message error
// catch Expection
JsonObject error = new JsonObject();
error.put("erro", e.getMessage());
return Response.status(HttpStatus.SC_BAD_REQUEST).entity(error.toString()).type(MediaType.APPLICATION_JSON).build();
import java.util.Scanner;
* {@link RGBColors}.
* @author Samuel Catalano
public class RGBColors{
You can’t perform that action at this time.